Commands
The pekit command has a subcommand for each kind of work. This page says
what each is for and where to read about it. pekit(1) is the authority
for every command, option, exit status, environment variable, and file,
and pekit <command> --help summarizes one command.
The commands #
These are the commands, in the order you're likely to meet them:
| Command | Does | Read |
|---|---|---|
pekit build | Builds targets. | Building a First Program |
pekit test | Runs tests, every test below this directory by default. | Writing and Running Tests |
pekit run | Runs a script, or the program a build gives. | Running Scripts and Programs |
pekit query deps | Lists the steps and files targets reach. | Querying What Targets Reach |
pekit query rdeps | Lists the targets that read a file. | Querying What Targets Reach |
pekit lock | Pins the libraries the workspace imports. | Pinning Libraries |
pekit sources | Records what each recipe's packages are built from in pekit.sources. | Recording Corresponding Source |
pekit package | Packs packages with the workspace's packagers. | Packaging |
pekit publish | Packs packages and publishes them into a store. | Packaging |
pekit release | Builds a package from HEAD strictly, publishes it, and tags it. | Releasing |
pekit clean | Removes pekit-out/, and with --cache the store. | Managing the Store |
pekit store stats | Shows the store's size, its limit, and whether a build is using it. | Managing the Store |
pekit store evict | Evicts the store to within its limit now. | Managing the Store |
pekit store verify | Hashes every file of the store again, and with --repair repairs what is wrong. | Managing the Store |
Options the building commands share #
build, test, run, query, package, publish, and sources take
the same options for how they build:
| Option | Does | Read |
|---|---|---|
--jobs | Limits how many programs this build runs at once. | Targets and Steps, Sharing the Machine |
--evaluating | Limits how many targets this build evaluates at once. | Sharing the Machine |
--platform | Builds for another platform. | Building for Another Platform |
--profile | Chooses the keychain's profile. | Using Secrets |
--rebuild | Runs every step, reusing nothing from the store. | Reuse and the Store |
--check-reproducible | Runs every step twice and compares the outputs. | Checking That a Build Is Reproducible |
--strict | Builds as a release does. | Hermetic and Strict Builds |
--fail-fast | Stops the build at the first target that fails. | Naming Targets |
--no-dynamic | Fails a target that waits for a step's result. | Targets and Steps |
--trace | Writes a timeline of the build. | Profiling a Build |
--gcsl-profile | Writes a profile of the build's GCSL code. | Profiling a Build |
--remote-cache, --remote-instance, --remote-header | Looks for steps in a remote cache. | Sharing a Remote Cache |
--remote-upload | Writes the steps a build records to the remote cache. | Sharing a Remote Cache |