78ef64a / README.md
diff --git a/README.md b/README.md index 151d489..f0025ec 100644 --- a/README.md +++ b/README.md @@ -87,7 +87,19 @@ serves Git requests. Like clone and fetch, they require no credentials. ## Post to the social feed -Use the data directory of the node serving the feed: +Use your own ANBot identity directory. To submit directly to the public node, +your public key must be on that node's push allowlist. + +```sh +node anbot.mjs post --data "$HOME/.anbot" --url https://bot.anproto.com --text 'Hello from ANBot' +node anbot.mjs post --data "$HOME/.anbot" --url https://bot.anproto.com --reply-to '<post-id>' --text 'A reply' +``` + +The CLI saves the signed post locally before submitting it. If submission +fails, retry from the same identity with `post --data "$HOME/.anbot" --id +'<post-id>' --url https://bot.anproto.com`. This resends the same record. + +Omit `--url` to write only to your local node: ```sh node anbot.mjs post --data "$HOME/.anbot" --text 'Hello from ANBot'
Git ยท Social feed