Skip to content

Commit 8743faf

Browse files
authored
Update README.md
1 parent 94f3c00 commit 8743faf

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

README.md

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,8 +59,21 @@ nostr-command(lin)er. A word play.
5959
- Once program is compiled, the executable will be available in target/release/nostr-commander-rs.
6060
- `./target/release/nostr-commander-rs --version # run it and get version`
6161

62+
# No Config File
63+
64+
If desired, you can work without a config file. If you already have a private key (nsec)
65+
then you can do simple commands like this:
66+
67+
E.g. fire-and-forget: send a message without a config file and forget everything after message has been sent:
68+
69+
- `nostr-commander-rs --nsec nsec1SomeStrangeString --add-relay "wss://some.relay.net/" --publish "some text"`
70+
- `nostr-commander-rs --nsec $NSEC --add-relay "wss://some.relay.net/" --publish - < SOMETEXTFILE.txt`
71+
6272
# Config File
6373

74+
For more functionality or in order to create a new user you will want to
75+
work with a simple JSON credentials file.
76+
6477
You don't need to know any of this. This is just for the curious ones.
6578

6679
The default location of the config file is
@@ -70,7 +83,7 @@ $HOME/.local/share/nostr-commander-rs/credentials.json
7083
or equivalent for other platforms.
7184

7285
The config file looks something like this. If you want to do some quick testing,
73-
you can copy and paste this config file to get going real fast.
86+
you can copy and paste this config file to get going fast.
7487

7588
```
7689
{

0 commit comments

Comments
 (0)