Nostr command line tool and relay setup.
- Generate a private-public key pair.
ncli key -gen
- Set the generated private key as an environment variable.
export NSEC=<nsec>
- Add a configuration file
export CONFIG_NOSTR=$HOME/.config/nostr/alice.json
touch $CONFIG_NOSTR
- Before you can fetch notes you have to add atleast one relay
ncli relay -add ws://localhost:8080
- Add users to follow, including yourself
ncli follow -add <npub>
- Finally, echo your timeline of events pulled from the defined relays and follow list.
ncli home -following