Skip to the cargo

CLI reference: the bosun's calls ​

The hook, the helm and the harbour-master all muster the self-same crew. Run the same configured steps locally, in Git hooks, and in CI.

What ye're afterThe call
Rig a ship (set up a project)hk init and hk install
Inspect or mend the cargo (check or fix code)hk check and hk fix
Pipe up a named hook (run a named hook)hk run
Look over the charts (inspect configuration)hk config and hk validate
Put a hand through its drills (test a step definition)hk test
Bring a clockwork hand aboard (integrate a coding agent)hk agent and hk mcp
Open the ship's tool chest (use included file checks)hk util

New aboard, sailor? Get under way with getting started, a setup from stem to stern. Each call's own flags are listed on its page; the flags below fly on every call.

How to hail it: hk [FLAGS] <SUBCOMMAND>

Version: 2.4.0

Flags flown on every call ​

  • --cd <DIRECTORY> — Run as if hk was started in this directory
  • -j --jobs <JOBS> — Number of jobs to run in parallel: how many hands haul at once
  • -p --profile <PROFILE> — Profiles to enable or disable, the watches ye call up or stand down. Prefix a profile with ! to disable it, e.g. --profile slow --profile !fast
  • -s --slow — Shorthand for --profile=slow: call up the slow watch
  • -v --verbose — Enable verbose (debug) output, a fuller ship's log. Pass it twice for trace output
  • -n --no-progress — Disable progress output, keeping it off the deck
  • -q --quiet — Quiet on deck: suppress non-essential output (info messages, progress indicators). Diagnostics for failed steps are still shown
  • --silent — Silent running: suppress all output except errors. Warnings are suppressed too
  • --trace — Enable tracing spans and performance diagnostics: every leg of the passage, traced and timed
  • --json — Output in JSON format, for machines to read

Flags to fly ​

  • --format <FORMAT> — Select human or machine-readable execution output: for a sailor's eyes, or for machines to read

    Choose from: human, json, jsonl

    Unless ye say otherwise: human

  • -h --help — Print help, for when ye've lost yer bearings

  • -V --version — Print the version aboard

Lesser calls ​

Further charts ​

Getting started: get under way · Troubleshooting: the ship's log

MIT LicenseCopyright © 2026jdx.dev