packslip create
- Usage:
packslip create [FLAGS] [ARTIFACTS]…
Create and sign the release bundle for a release
Hash local artifacts, infer each one's platform and format from its file name, and write the signed bundle into the --out directory. No files are uploaded. A release.toml passed with --manifest describes per-artifact executables, formats, requirements, and resources. Scalar flags, such as --project, --version, --url-base, and --source-repo, override its release-level values. --bin, --resource, --require, and --provenance add to its values. A file given as an argument that release.toml also lists keeps its release.toml entry.
Signing is keyless by default, with the OIDC token in SIGSTORE_ID_TOKEN or else the CI job's own identity, which on GitHub Actions needs the id-token: write permission. --key signs with a key from packslip keygen instead. Every signature is recorded in the Rekor transparency log unless --no-log is passed with --key.
See https://packslip.dev/docs/describing-releases/ for release.toml and more examples.
Arguments
[ARTIFACTS]…— Files to describe, each as PATH, PATH:OS/ARCH[/LIBC], or PATH:any, with an optional @VARIANTWithout a platform suffix, create infers the platform from the file name. Give any as ARCH or LIBC to leave that field out, for a build that runs on every architecture or C library; PATH:any leaves out OS, ARCH, and LIBC. These files join release.toml's artifacts; a file it lists under the same file name keeps its release.toml entry, and the platform suffix and @VARIANT given here are ignored.
Flags
-h --help— Print help
Input
--project <PROJECT>— The project's name, such as github.com/owner/repo; required unless release.toml sets itGive github.com/owner/repo, github.com/owner/repo/TOOL for one tool of a monorepo, gitlab.com/GROUP/PROJECT, or a domain project, one named after a host, such as mytool.example.com[/PATH]. Consumers can verify a gitlab.com project's releases, but
packslip installrefuses it.--version <VERSION>— The release's semver version, such as 1.2.3; required unless release.toml sets it-m --manifest <MANIFEST>— A release.toml describing the artifacts and the release's resourcesIt gives per-artifact executables, formats, requirements, and platforms. Its artifact and asset paths are relative to the working directory, not to the file. See https://packslip.dev/docs/describing-releases/#use-a-toml-manifest and, for every key, https://packslip.dev/docs/release-toml/
Signing
-k --key <KEY>— Sign with this secret key, frompackslip keygen, instead of signing keyless--sign <SIGN>— How to sign: oidc (keyless, with the CI job's identity) or key (with --key)Defaults to key when --key is given, else oidc. sigstore-oidc and sigstore-key are other spellings. --sign key needs --key; --sign oidc conflicts with --key.
--no-log— Record no Rekor transparency log entry for a key signatureNeeds --key, since keyless signatures are always logged. Consumers must then pass --allow-unlogged.
--no-pin-workflow— Write identity.pin_workflow: false, so consumers do not hold later releases to this release's workflow fileUse it when more than one workflow of your repository signs releases; consumers then hold later releases to the signing repository instead. The signing certificate must still record that repository as its source. A consumer that last accepted a release without the flag refuses the first one with it until a person approves it. Conflicts with --key, since only a keyless signer has a workflow. See https://packslip.dev/release/v1/#workflow-pinning
Output
-o --out <OUT>— Directory to write the bundle into, created if missingThe bundle is packslip.sigstore.json, or packslip.TOOL.sigstore.json for a tool in a GitHub monorepo, such as github.com/owner/repo/TOOL (a deeper path has each / replaced by -). An existing bundle is replaced. Artifacts are not copied.
Default:
.
Download URLs
--url-base <URL_BASE>— Download URL prefix: each artifact and resource asset gets PREFIX/FILENAME unless --url or release.toml gives its URL--url <URL>— Download URL of one artifact or resource asset, as FILENAME=URL (repeatable)A URL release.toml gives for an artifact wins.
Artifacts
--format <FORMAT>— Format of an artifact whose file name does not say, as FILENAME=FORMAT (repeatable)FORMAT is an archive (tar.xz, tar.gz, tar.zst, tar.bz2, tgz, tar, zip, 7z), a single compressed executable (gz, xz, zst, bz2), an installer (deb, rpm, dmg, pkg, msi, msix, exe, appimage), raw for a bare executable, or a type of your own. A format release.toml gives for an artifact wins.
--bin <BIN>— Executable the artifacts hold, as NAME, PATH, or NAME=PATH (repeatable)A NAME is found inside each archive. A PATH starts at the archive root and includes any top-level directory. NAME=PATH names the command when it differs from the file's name. For a bare executable, give the command name it installs as. These join release.toml's top-level bin; an artifact that release.toml gives its own bin list keeps only that list.
--provenance <PROVENANCE>— Provenance URL for an artifact, as FILENAME=URL, or bare URLs in the order of the ARTIFACTS arguments (repeatable)--no-sha512— Record only sha256 digests; by default create records sha256 and sha512--require <REQUIRE>— A command the executables need on PATH, as bin:NAME or bin:NAME@MIN (repeatable)MIN is the lowest version that works, such as bin:java@17. Needs an executable from --bin or release.toml. Each requirement is added to every artifact that has an executable.
--no-libs— Do not read the executables for the shared libraries and C library they load from the hostWith this flag, create still finds each --bin inside the archives but does not derive requires.libs; a libs list in release.toml is recorded as written, unchecked. A Linux artifact whose platform and file name give no C library is recorded as gnu, even a static build.
Source
--source-repo <SOURCE_REPO>— Source repository URL, such as https://github.com/owner/repo--commit <COMMIT>— Commit the release was built from; needs --source-repo or release.toml's source.repoA resource with a repo: source requires it, and consumers read that file at this commit.
--tag <TAG>— Git tag of the release, such as v1.2.3; needs --source-repo or release.toml's source.repoConsumers that list a GitHub project's versions from its tags do not see the release when the tag does not name the release's version, unless a signed release list names the release. create warns when that happens.
Release metadata
--published-at <PUBLISHED_AT>— RFC 3339 publish time; defaults to nowThe statement records it in UTC: 2026-09-01T14:00:00+02:00 is written as 2026-09-01T12:00:00Z.
--notes-url <NOTES_URL>— URL of the release notes--extension <EXTENSION>— Release-level extension as NAME=JSON (repeatable)NAME is who defines it, a consumer such as mise or a domain the vendor controls, and JSON is its value, such as 'example.com={"build_id":"20260901.3"}'. A flag replaces release.toml's extension of the same NAME.
Resources
--resource <RESOURCE>— Another file the release ships, such as a completion script, man page, or SBOM, as KIND[/QUALIFIER][@OS[/ARCH[/LIBC]]]=SOURCE:VALUE (repeatable)SOURCE is archive (a path inside the artifact, from its root), asset (a separate release file, by local path), repo (a path in the source repository at --commit), or exec (a command whose stdout is the file; leading NAME=value words set its environment).
Known kinds: completion/SHELL[/BIN] (completion/SHELL,SHELL[/BIN] with exec and a {shell} placeholder), man[/BIN], cli-spec/FORMAT[/BIN], skill/NAME, sbom/FORMAT, desktop, icon, app. Any other kind takes at most one qualifier, its name.
An @ scope limits the entry to the artifacts of that platform, for a layout that differs across them; release.toml can also limit an entry to one artifact. Examples: 'completion/zsh=archive:share/zsh/site-functions/_tool', 'man@linux=archive:share/man/man1/tool.1'. See https://packslip.dev/docs/resources/#write-a-resource-entry
Repackagers
--attested-by <ATTESTED_BY>— Who makes the claim: vendor (the default) or repackager--evidence <EVIDENCE>— What a repackager checked, as KIND or KIND=DETAIL (repeatable); needs --attested-by repackager
Examples
Sign keyless in a CI job
packslip create \
--project github.com/owner/mytool \
--version 1.2.3 \
--bin mytool \
--url-base https://github.com/owner/mytool/releases/download/v1.2.3 \
--out dist \
dist/mytool-1.2.3-linux-x64.tar.gz \
dist/mytool-1.2.3-darwin-arm64.tar.gz
Describe the artifacts in release.toml
packslip create --manifest release.toml --out dist
Sign with a key from packslip keygen
packslip create \
--project mytool.example.com \
--version 1.2.3 \
--bin mytool \
--url-base https://mytool.example.com/v1.2.3 \
--key release.key \
--out dist \
dist/mytool-1.2.3-linux-x64.tar.gz