➤ git-nostr-setup -h
git-nostr-setup / npm run init -- … — interactive wizard (default)
Non-interactive (--non-interactive or -N):
Identity (pick one):
--generate-identity New random keypair (commits + updater)
--identity-nsec <nsec|hex> Existing key (also: GNS_IDENTITY_NSEC)
--bunker-url <bunker://…> Amber NIP-46 (approve on phone; GNS_BUNKER_URL)
--reuse-identity Keep identity.json, refresh signing + git only
Signing override (optional — at most one):
--signing-nsec … Different local key for commits
--signing-bunker-url … Different Amber bunker for commits
Git (pick one):
--git-global Global gpg.program + signing
--git-local This repo only (must be inside a git work tree)
--no-git-config Only write config.json / identity.json
--no-pre-push-hook Skip core.hooksPath .githooks
Examples:
git-nostr-setup -N --generate-identity --git-global
git-nostr-setup -N --identity-nsec "$GNS_IDENTITY_NSEC" --git-global
git-nostr-setup -N --bunker-url 'bunker://…' --git-local
NIP-46 still needs Amber approval the first time. QR: set GNS_QR_SMALL=1 for a smaller pattern.
Secrets in argv hit shell history — prefer env vars.
That's true. Appreciate the feedback.
0.3.0:
➤ git-nostr-setup -h git-nostr-setup / npm run init -- … — interactive wizard (default) Non-interactive (--non-interactive or -N): Identity (pick one): --generate-identity New random keypair (commits + updater) --identity-nsec <nsec|hex> Existing key (also: GNS_IDENTITY_NSEC) --bunker-url <bunker://…> Amber NIP-46 (approve on phone; GNS_BUNKER_URL) --reuse-identity Keep identity.json, refresh signing + git only Signing override (optional — at most one): --signing-nsec … Different local key for commits --signing-bunker-url … Different Amber bunker for commits Git (pick one): --git-global Global gpg.program + signing --git-local This repo only (must be inside a git work tree) --no-git-config Only write config.json / identity.json --no-pre-push-hook Skip core.hooksPath .githooks Examples: git-nostr-setup -N --generate-identity --git-global git-nostr-setup -N --identity-nsec "$GNS_IDENTITY_NSEC" --git-global git-nostr-setup -N --bunker-url 'bunker://…' --git-local NIP-46 still needs Amber approval the first time. QR: set GNS_QR_SMALL=1 for a smaller pattern. Secrets in argv hit shell history — prefer env vars.