Skip to content

ngit release asset add

attach an existing asset and explicitly replace a release

Parent command: ngit release asset

Related guide: Releases

Preview command surface

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

Usage

text
Usage: ngit release asset add [OPTIONS] --edit <RELEASE>

Arguments and options

InputDescriptionDetails
<RELEASE>Release app@version, naddr, event-id, nevent, or unambiguous versionrequired
--app <APP>Application context for a bare release version
--url <URL>URL of a new asset to download, hash, and publishconflicts with --blossom-server <URL>, --event <ASSET>, --file <PATH>
--file <PATH>Local asset to upload to Blossomconflicts with --event <ASSET>, --url <URL>
--event <ASSET>Existing kind 3063 asset event to attachconflicts with --android-certificate-sha256 <SHA256>, --android-min-allowed-version-code <CODE>, --android-version-code <CODE>, --asset-id <ID>, --asset-version <VERSION>, --blossom-server <URL>, --commit <COMMIT>, --file <PATH>, --filename <NAME>, --mime <MIME>, --min-allowed-version <VERSION>, --min-platform-version <VERSION>, --original-url <URL>, --platform <PLATFORM>, --supported-nip <NIP>, --target-platform-version <VERSION>, --url <URL>, --variant <VARIANT>
--platform <PLATFORM>Target platform (repeatable)repeatable; conflicts with --event <ASSET>, --platform-agnostic
--platform-agnosticExplicitly acknowledge that the asset has no target platformconflicts with --platform <PLATFORM>
--asset-id <ID>Asset identifier (defaults to the application identifier)conflicts with --event <ASSET>
--asset-version <VERSION>Asset version (defaults to the release version)conflicts with --event <ASSET>
--filename <NAME>Published filename overrideconflicts with --event <ASSET>
--mime <MIME>MIME type overrideconflicts with --event <ASSET>
--min-platform-version <VERSION>Minimum supported platform versionconflicts with --event <ASSET>
--target-platform-version <VERSION>Target platform versionconflicts with --event <ASSET>
--supported-nip <NIP>Supported NIP number (repeatable)repeatable; conflicts with --event <ASSET>
--variant <VARIANT>Build variantconflicts with --event <ASSET>
--commit <COMMIT>Source commit identifierconflicts with --event <ASSET>
--min-allowed-version <VERSION>Minimum allowed asset versionconflicts with --event <ASSET>
--android-version-code <CODE>Android version codeconflicts with --event <ASSET>
--android-min-allowed-version-code <CODE>Minimum allowed Android version codeconflicts with --event <ASSET>
--android-certificate-sha256 <SHA256>Android signing certificate SHA-256 (repeatable)repeatable; conflicts with --event <ASSET>
--original-url <URL>Original web source when it differs from the asset URLconflicts with --event <ASSET>
--add-application-platformsAdd release-only platforms to the replaceable application event
--allow-partial-platformsPermit a non-main release to omit application platforms
--blossom-server <URL>Override kind-10063 discovery with an ordered Blossom server (repeatable)repeatable; conflicts with --event <ASSET>, --url <URL>
--editConfirm replacement of the existing release eventrequired
--strict-metadataTreat metadata warnings as errors
--relay <URL>Extend discovery and publication with a relay (repeatable)repeatable
--zapstore-relayAlso publish to the Zapstore catalog relay; does not change Blossom
--jsonOutput as JSON
-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
-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
-h, --helpPrint help (see a summary with '-h')
-V, --versionPrint version

Git collaboration, without the platform.