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:

CommandDoesRead
pekit buildBuilds targets.Building a First Program
pekit testRuns tests, every test below this directory by default.Writing and Running Tests
pekit runRuns a script, or the program a build gives.Running Scripts and Programs
pekit query depsLists the steps and files targets reach.Querying What Targets Reach
pekit query rdepsLists the targets that read a file.Querying What Targets Reach
pekit lockPins the libraries the workspace imports.Pinning Libraries
pekit sourcesRecords what each recipe's packages are built from in pekit.sources.Recording Corresponding Source
pekit packagePacks packages with the workspace's packagers.Packaging
pekit publishPacks packages and publishes them into a store.Packaging
pekit releaseBuilds a package from HEAD strictly, publishes it, and tags it.Releasing
pekit cleanRemoves pekit-out/, and with --cache the store.Managing the Store
pekit store statsShows the store's size, its limit, and whether a build is using it.Managing the Store
pekit store evictEvicts the store to within its limit now.Managing the Store
pekit store verifyHashes 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:

OptionDoesRead
--jobsLimits how many programs this build runs at once.Targets and Steps, Sharing the Machine
--evaluatingLimits how many targets this build evaluates at once.Sharing the Machine
--platformBuilds for another platform.Building for Another Platform
--profileChooses the keychain's profile.Using Secrets
--rebuildRuns every step, reusing nothing from the store.Reuse and the Store
--check-reproducibleRuns every step twice and compares the outputs.Checking That a Build Is Reproducible
--strictBuilds as a release does.Hermetic and Strict Builds
--fail-fastStops the build at the first target that fails.Naming Targets
--no-dynamicFails a target that waits for a step's result.Targets and Steps
--traceWrites a timeline of the build.Profiling a Build
--gcsl-profileWrites a profile of the build's GCSL code.Profiling a Build
--remote-cache, --remote-instance, --remote-headerLooks for steps in a remote cache.Sharing a Remote Cache
--remote-uploadWrites the steps a build records to the remote cache.Sharing a Remote Cache

Edit this page