CLI reference
Use packslip to sign a release in your release job, check an artifact you downloaded, or install an upstream tool without its installer script. Below, its commands are grouped by task, each with its reference page and the guide that uses it. To install packslip with mise, a script, a package, the container image, a direct download, or a source build, see Install packslip.
Publish a release
| Command | What it does | Guide |
|---|---|---|
packslip create | Create and sign the release bundle for a release | Publish with GitHub Actions or Try packslip locally |
packslip keygen | Generate a key pair for key-signed releases | Publish from other CI |
packslip releases | Create and sign a release list, which lists a project's releases and can withdraw or recommend them; a domain project needs one | Manage release lists |
Verify a release
| Command | What it does | Guide |
|---|---|---|
packslip verify | Check a release bundle or release list, and the files you downloaded | Verify a release |
packslip pin | Print the signer fingerprint of a release you trust | Pin a signer with its fingerprint |
packslip show | Print a bundle's statement without verifying it | Read the signed statement |
show reads a statement without checking anything. verify checks a bundle
and the local files you give it.
Install a tool
| Command | What it does | Guide |
|---|---|---|
packslip install | Install a tool from its verified release, as in packslip install github.com/jdx/hk | Bootstrap a tool |
Beyond what verify checks, install finds the release, selects and
downloads the artifact for this host, remembers which signer it trusted, and
installs the commands the release declares.
Utilities
| Command | What it does | Guide |
|---|---|---|
packslip schema | Print the JSON schema of a statement or of a verify --json report | JSON schemas |
packslip completion | Print a shell completion script | Set up shell completions |
packslip version | Print packslip's version |
Set up shell completions
Two install methods set up completions for you:
- The APT and DNF packages install completions for bash, zsh, and fish.
- With mise activated in bash, zsh, fish, or PowerShell, packslip's completions follow its active version; see Use packslip with mise.
Otherwise, packslip completion SHELL prints a script that asks the
installed packslip for candidates, so it keeps working after upgrades. Save
it where your shell loads completions, then start a new shell.
For bash, with the bash-completion package installed:
mkdir -p ~/.local/share/bash-completion/completions
packslip completion bash > ~/.local/share/bash-completion/completions/packslip
For zsh, write the script to a directory of your own:
mkdir -p ~/.zfunc
packslip completion zsh > ~/.zfunc/_packslip
Then add fpath=(~/.zfunc $fpath) to ~/.zshrc, above the line that runs
compinit.
For fish:
mkdir -p ~/.config/fish/completions
packslip completion fish > ~/.config/fish/completions/packslip.fish
For Elvish, add this line to ~/.config/elvish/rc.elv:
eval (packslip completion elvish | slurp)
For Nushell, run this in Nushell to write the script to its autoload
directory. The shell name can be nu or nushell.
mkdir ($nu.default-config-dir | path join autoload)
packslip completion nu | save --force ($nu.default-config-dir | path join autoload packslip.nu)
For PowerShell, run this to load the script from your profile. The shell
name can be powershell or pwsh.
New-Item -ItemType Directory -Force (Split-Path $PROFILE) | Out-Null
Add-Content -Path $PROFILE -Value 'packslip completion powershell | Out-String | Invoke-Expression'
Get help
packslip --helpdescribes packslip and lists its commands.packslip <command> --help, such aspackslip install --help, prints a command's full help, and-hprints a shorter version. Help goes to stdout with exit code 0.packslip --version,packslip -V, andpackslip versionprintpackslip X.Y.Zand exit with code 0.packslip version --jsonadds the OS and architecture.- An invalid command line, such as a command missing a required argument,
prints an error and the command's usage to stderr and exits with code 2.
packslipalone prints its help to stderr, also with exit code 2. - A command that fails exits with code 1. The
verifyandpinpages list what each exit code means.
The command pages are generated from the development branch's help, so they
can include options added after the latest release. Run
packslip <command> --help for the options your installed version supports.