Skip to content

ngit

nostr plugin for git

Related guide: Guides

Preview command surface

This page is generated from a tagged ngit prerelease. Test it before relying on it in production.

Usage

text
Usage: ngit [OPTIONS] [COMMAND]

Subcommands

CommandDescription
ngit initcreate and publish a new repository on nostr
ngit repomanage repository metadata and maintainership
ngit sendsubmit PR with advanced options
ngit prwork with pull requests
ngit mergemerge a PR into its declared target, or the default branch, as a no-ff merge commit (does not push)
ngit issuework with issues
ngit ciinspect CI results and the trust context behind them
ngit releasework with software applications, releases, and release assets
ngit nsitepublish static websites through Nostr and Blossom
ngit containerpublish OCI container images through Nostr and Blossom
ngit syncupdate repo git servers to reflect nostr state (add, update or delete remote refs)
ngit skillinstall and update ngit's repository skill for coding agents
ngit updateinspect and update the ngit installation
ngit accountlist accounts, create an account, login, logout or export keys

Arguments and options

InputDescriptionDetails
-n, --nsec <NSEC>nsec or hex private keyglobal; conflicts with --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 fileglobal; conflicts with --nbunksec <NBUNKSEC>, --nbunksec-file <PATH>, -n, --nsec <NSEC>, --signer <NPUB|ALIAS|NAME>
--nbunksec <NBUNKSEC>established remote signer connection encoded as nbunksecglobal; conflicts with --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 fileglobal; conflicts with --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 commandglobal; conflicts with --nbunksec <NBUNKSEC>, --nbunksec-file <PATH>, -n, --nsec <NSEC>, --nsec-file <PATH>
-c, --customizeshow customization options via git configglobal
-d, --defaultsUse default values without prompting (non-interactive mode)global; conflicts with -i, --interactive
-i, --interactiveEnable interactive prompts (default behavior)global; conflicts with -d, --defaults, --json
-f, --forceForce operations, bypass safety guardsglobal
-q, --quietSuppress progress and other non-essential outputglobal; conflicts with -v, --verbose
-v, --verboseEnable verbose outputglobal; conflicts with -q, --quiet
--repo-relay-onlyOnly publish nostr events to repository relays, not user or default relaysglobal
--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 upstreamglobal
--jsonOutput one machine-readable JSON document on stdoutglobal; conflicts with -i, --interactive
-h, --helpPrint help (see a summary with '-h')
-V, --versionPrint version

Git collaboration, without the platform.