ngit account connect
connect interactively (alias for login -i)
Parent command: ngit account
Related guide: Accounts and keys
Preview command surface
This page is generated from a tagged ngit prerelease. Test it before relying on it in production.
Usage
text
Usage: ngit account connect [OPTIONS] [ACCOUNT]Arguments and options
| Input | Description | Details |
|---|---|---|
<ACCOUNT> | stored account to activate (full npub, alias, or exact Nostr profile name) | conflicts with --bunker-url <BUNKER_URL>, --nbunksec <NBUNKSEC>, --nbunksec-file <PATH>, -n, --nsec <NSEC>, --nsec-file <PATH>, --signer <NPUB|ALIAS|NAME> |
--local | login to the local git repository only | — |
--offline | don't fetch user metadata and relay list from relays | — |
--signer-relay <SIGNER_RELAYS> | signer relay for nostrconnect (can be used multiple times) | repeatable |
--bunker-url <BUNKER_URL> | bunker:// URL from signer app for non-interactive remote signer login | conflicts with <ACCOUNT>, --nbunksec <NBUNKSEC>, --nbunksec-file <PATH>, -n, --nsec <NSEC>, --nsec-file <PATH>, --signer <NPUB|ALIAS|NAME> |
--secret-storage <auto|file|git-config> | where to store the account secret: auto (OS credential store, falling back to ngit's file store), file, or git-config (plaintext) | — |
--alias <ALIAS> | save or reactivate a reusable name for an account | — |
-n, --nsec <NSEC> | nsec or hex private key | global; conflicts with <ACCOUNT>, --bunker-url <BUNKER_URL>, --nbunksec <NBUNKSEC>, --nbunksec-file <PATH>, --nsec-file <PATH>, --signer <NPUB|ALIAS|NAME> |
--nsec-file <PATH> | read an nsec or hex private key from a path resolving to a regular file | global; conflicts with <ACCOUNT>, --bunker-url <BUNKER_URL>, --nbunksec <NBUNKSEC>, --nbunksec-file <PATH>, -n, --nsec <NSEC>, --signer <NPUB|ALIAS|NAME> |
--nbunksec <NBUNKSEC> | established remote signer connection encoded as nbunksec | global; conflicts with <ACCOUNT>, --bunker-url <BUNKER_URL>, --nbunksec-file <PATH>, -n, --nsec <NSEC>, --nsec-file <PATH>, --signer <NPUB|ALIAS|NAME> |
--nbunksec-file <PATH> | read an nbunksec connection from a path resolving to a regular file | global; conflicts with <ACCOUNT>, --bunker-url <BUNKER_URL>, --nbunksec <NBUNKSEC>, -n, --nsec <NSEC>, --nsec-file <PATH>, --signer <NPUB|ALIAS|NAME> |
--signer <NPUB|ALIAS|NAME> | use a configured signer by npub, alias, or cached profile name for this command | global; conflicts with <ACCOUNT>, --bunker-url <BUNKER_URL>, --nbunksec <NBUNKSEC>, --nbunksec-file <PATH>, -n, --nsec <NSEC>, --nsec-file <PATH> |
-c, --customize | show customization options via git config | global |
-d, --defaults | Use default values without prompting (non-interactive mode) | global; conflicts with -i, --interactive |
-i, --interactive | Enable interactive prompts (default behavior) | global; conflicts with -d, --defaults, --json |
-f, --force | Force operations, bypass safety guards | global |
-q, --quiet | Suppress progress and other non-essential output | global; conflicts with -v, --verbose |
-v, --verbose | Enable verbose output | global; conflicts with -q, --quiet |
--repo-relay-only | Only publish nostr events to repository relays, not user or default relays | global |
--repo <REMOTE|NADDR|NOSTR-URL> | Target repository for repo-scoped operations. Accepts a configured nostr:// remote name, an naddr, or a nostr:// URL. Overrides nostr.repo, tracked-upstream, and remote-based auto-detection. Available at any command position: ngit --repo upstream send ngit issue --repo upstream create ngit issue create --repo upstream | global |
--json | Output one machine-readable JSON document on stdout | global; conflicts with -i, --interactive |
-h, --help | Print help (see a summary with '-h') | — |
-V, --version | Print version | — |