Command line client for Nostr.
Compile with go install github.com/fiatjaf/noscl@latest
or download a binary.
noscl
Usage:
noscl home
noscl setprivate <key>
noscl public
noscl publish [--reference=<id>...] [--profile=<id>...] <content>
noscl message [--reference=<id>...] <id> <content>
noscl metadata --name=<name> [--about=<about>] [--picture=<picture>]
noscl profile <key>
noscl follow <key> [--name=<name>]
noscl unfollow <key>
noscl following
noscl event <id>
noscl share-contacts
noscl key-gen
noscl relay
noscl relay add <url>
noscl relay remove <url>
noscl relay recommend <url>
The basic flow is something like
- Add some relays with
noscl relay add <relay url>
(see https://nostr.watch/relays/find for some publicly available relays) - Follow some people with
noscl follow <pubkey>
- Browse some profiles from people (you don't have to be following) with
noscl profile <pubkey>
- See the feed of people you follow with
noscl home
- Set your own private key with
noscl setprivate <hex private key>
- Get your public key with
noscl public
so you can share it with others - Publish some notes with
noscl publish <my note content>
$ noscl key-gen
seed: crowd coconut donate calm position chuckle update friend ball gospel sudden answer bitter dinosaur wise express jaguar file praise pact defy system struggle offer
private key: 5a860fa953c9162611f2e2813ee0526370664534412f31611a4a89149c6bbc9d
$ noscl setprivate 5a860fa953c9162611f2e2813ee0526370664534412f31611a4a89149c6bbc9d
noscl sign '{...event as JSON}'