A command line tool for making a backup of your #nostr contact list.
(Also known as follows).
See nostr protocol.
- Support Linux / Mac / Windows
- Backup contacts as a flat .txt file
- Restore contacts from a backup
Download the release from github.
Unpack and run.
nostr-contacts --help
nostr-contacts backup --relay wss://nostr21.com --relay wss://nostr-pub.wellorder.net --pubkey npub1xxx
export NOSTR_PRIVATE=<your private key>
# this will prompt for confirmation before broadcasting
nostr-contacts restore --file <path to backup.txt> --relay wss://nostr-pub.wellorder.net
Contacts will be saved in contacts-(pubkey)-(unix timestamp).txt in the current directory.
This file contains a list of the pubkeys of your follows (one per line).