-
Notifications
You must be signed in to change notification settings - Fork 7
/
help.help.txt
117 lines (117 loc) · 4.73 KB
/
help.help.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
Welcome to "nostr-commander-rs", a Nostr CLI client. ─── On the first run use
--create-user to create a user. On further runs you can publish notes, send
private DM messages, etc. Alternatively, you can skip creating a user and do a
fire-and-forget publish like this: nostr-commander-rs --nsec
nsec1SomeStrangeString --add-relay "wss://some.relay.net/" --publish "test".
─── Have a look at the repo "https://github.com/8go/nostr-commander-rs/" and
see if you can contribute code to improve this tool. Safe!
Usage: nostr-commander-rs [OPTIONS]
Options:
--contribute
Please contribute
-v, --version [<CHECK>]
Print version number or check if a newer version exists on crates.io.
--usage
Prints a very short help summary.
-h, --help
Prints short help displaying about one line per argument.
--manual
Prints long help.
--readme
Prints README.md file, the documenation in Markdown.
-d, --debug...
Overwrite the default log level.
--log-level <LOG_LEVEL>...
Set the log level by overwriting the default log level.
--verbose...
Set the verbosity level.
-c, --credentials <PATH_TO_FILE>
Specify a path to a file containing credentials.
--create-user
Create a new user, i.e. a new key pair.
--delete-user
Delete the current user, i.e. delete the current key pair.
--name <USER_NAME>
Specify an optional user name.
--display-name <DISPLAY_NAME>
Specify an optional display name.
--about <DESCRIPTION>
Specify an optional description.
--picture <URL>
Specify an optional picture or avatar.
--nip05 <NIP05_ID>
Specify an optional nip05 name.
--nsec <PRIVATE_KEY>
Provide one private key.
-p, --publish [<NOTE>...]
Publish one or multiple notes.
--publish-pow [<NOTE>...]
Publish one or multiple notes with proof-of-work (POW).
--dm [<KEY+MSGS>...]
Send one or multiple DMs to one given user.
--send-channel-message [<HASH+MSGS>...]
Send one or multiple messages to one given channel.
--add-relay [<RELAY_URI>...]
Add one or multiple relays.
--proxy <PROXY>
Specify a proxy for relays.
--remove-relay [<RELAY_URI>...]
Remove one or multiple relays from local config file.
--tag <TAG>
Specify one or multiple tags to attach to notes or DMs.
--show-metadata
Display current metadata.
--change-metadata
Modify existing metadata of the user.
--pow-difficulty <DIFFICULTY>
Specify optional proof-of-work (POW) difficulty.
--show-public-key
Show public key.
--show-secret-key
Show private, secret key.
--whoami
Print the user name used by "nostr-commander-rs".
-o, --output <OUTPUT_FORMAT>
Select an output format.
-l, --listen
Listen to events, notifications and messages.
--add-contact
Add one or more contacts.
--remove-contact
Remove one or more contacts.
--show-contacts
Display current contacts.
--alias [<ALIAS>...]
Provide one or multiple aliases (nicknames).
--key [<KEY>...]
Provide one or multiple public keys.
--relay [<RELAY>...]
Provide one or multiple relays.
--npub-to-hex [<KEY>...]
Convert one or multiple public keys from Npub to Hex.
--hex-to-npub [<KEY>...]
Convert one or multiple public keys from Hex to Npub.
--subscribe-pubkey [<KEY>...]
Subscribe to one or more public keys.
--subscribe-author [<KEY>...]
Subscribe to authors with to one or more public keys of accounts.
--subscribe-channel [<HASH>...]
Subscribe to public channels with one or more hashes of channels.
--unsubscribe-pubkey [<KEY>...]
Unsubscribe from public key.
--unsubscribe-author [<KEY>...]
Unsubscribe from author.
--unsubscribe-channel [<KEY>...]
Unsubscribe from public channel.
--limit-number <NUMBER>
Limit the number of past messages to receive when subscribing.
--limit-days <DAYS>
Limit the messages received to the last N days when subscribing.
--limit-hours <HOURS>
Limit the messages received to the last N hours when subscribing.
--limit-future-days <DAYS>
Limit the messages received to the next N days when subscribing.
--limit-future-hours <HOURS>
Limit the messages received to the last N hours when subscribing.
PS: Also have a look at scripts/nostr-commander-tui.
Use --manual to get more detailed help information.