Skip to content

command line tool to post text files to nostr

Notifications You must be signed in to change notification settings

plantimals/knob

Repository files navigation

knob

knob logo

named after Knob Noster, knob is a command line tool for generating new priv/pub key pairs and publishing new kind 1 messages to nostr. there are several options for input, from the --input command line flag to .json, .md, or .txt files.

check out the repo, then grab dependencies:

go mod download

then build:

make 

post a message from the command line directly with an existing private key (specified by NOSTR_KEY env variable):

NOSTR_KEY=fc6258cf0456c6ad658eab9f329a2fe7dda271ac08352e4256fd73f0b75c4dbf ./knob --input "this is my message"

post a message from the command line with newly generated keys:

./knob --genkeys --input "this is my message"

post a message from event(s) in a .json file. specify your own relay (default is nostr.drss.io):

NOSTR_KEY=fc6258cf0456c6ad658eab9f329a2fe7dda271ac08352e4256fd73f0b75c4dbf ./knob --file events.json --relay "wss://relay.damus.io"

About

command line tool to post text files to nostr

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published