gritpack publish

Publish the package or workspace in a directory, or a package file

Generated from gritpack publish --helpGritpack 1.2.63
gritpack publish [OPTIONS] [PACKAGE_FILE]

Arguments

[PACKAGE_FILE]A package file to publish as it is, instead of a directory

Options

--path <PATH>Workspace directory, workspace manifest, or single package directoryDefault: .
--repository <REPOSITORY>UUID of the hub repository to expect; defaults to the connected hub's
--cargo-registry <CARGO_REGISTRY>Cargo registry name used in Cargo package metadataDefault: gritpack
--package <CARGO_PACKAGES>Only these Cargo packages, by name; repeat as needed
--member <MEMBERS>Only these workspace members, by package name or path; repeat as needed
--cargo <CARGO>Cargo program used to package Cargo membersDefault: cargo
--rustc <RUSTC>Rust compiler whose version is recorded for Cargo membersDefault: rustc
--npm <NPM>npm program used to package npm packagesDefault: npm
--allow-dirtyLet Cargo package uncommitted changes
--version <VERSION>Go: version of a module given as go.mod, with its leading v
--published-at <GO_PUBLISHED_AT>Go: publication time recorded for that version, in RFC 3339 form
--without-readme <REASON>Publish new versions without a README of 100 words; your reason, in words of your own, is shown with each version that needs it
--without-license <REASON>Publish new versions without a license declaration; your reason, in words of your own, is shown with each version that needs it
--artifacts-dir <ARTIFACTS_DIR>Where built package files go, relative to the workspace rootDefault: .gritpack/publication/artifacts
--plan <PLAN>Where to write the plan, relative to the workspace rootDefault: .gritpack/publication-plan.json
--dry-runRun every check, locally and with the hub, but publish nothing
--yesPublish without asking for confirmation
--attestation <ATTESTATIONS>A publisher signature as NODE_ID=FILE; repeat when several are required
--format <FORMAT>Output format: human, json or ndjsonDefault: human · Values: human, json, ndjson
--json[=<FIELDS>]Same as --format json; --json=name,version keeps only those fields
--jq <EXPRESSION>Print the JSON output through a jq expression, strings unquoted
-h, --helpPrint help (see a summary with '-h')

Hub connection

--hub <HUB>The hub, as host[:port] or https://host[:port]Environment: GRITPACK_SERVER
--cert <CERT>Client certificate for the hubEnvironment: GRITPACK_CERT
--key <KEY>Private key for the client certificateEnvironment: GRITPACK_KEY
--ca <CA>Certificate authority used to authenticate the hubEnvironment: GRITPACK_CA
--profile <PROFILE>Login profile to use; cannot be combined with --hub, --cert, --key or --caEnvironment: GRITPACK_PROFILE
--config <CONFIG>Profile configuration fileEnvironment: GRITPACK_CONFIG · Default: ~/.frogfish/gritpack/config.toml
--credentials-dir <CREDENTIALS_DIR>With --hub alone: directory searched for your login; exactly one may be unexpiredEnvironment: GRITPACK_CREDENTIALS_DIR · Default: ~/.frogfish/gritpack/credentials
--cache-dir <CACHE_DIR>Directory of the shared cache of downloaded package filesEnvironment: GRITPACK_CACHE_DIR · Default: ~/.frogfish/gritpack/cache
--jobs <JOBS>How many package downloads to run at once (1-64)Environment: GRITPACK_JOBS · Default: 4

Examples

$ gritpack publish --dry-run
$ gritpack publish
$ gritpack publish --yes --format json