Skip to content

Latest commit

 

History

History
40 lines (28 loc) · 1.01 KB

README.md

File metadata and controls

40 lines (28 loc) · 1.01 KB

nostr-contacts

A command line tool for making a backup of your #nostr contact list.

(Also known as follows).

See nostr protocol.

Features

  • Support Linux / Mac / Windows
  • Backup contacts as a flat .txt file
  • Restore contacts from a backup

Unpack and run.

help:

nostr-contacts --help

example backing up contacts:

nostr-contacts backup --relay wss://nostr21.com --relay wss://nostr-pub.wellorder.net --pubkey npub1xxx

example restoring contacts:

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 Backup .txt file format

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).