Skip to content

CLI

Command-line reference

Modes

ModeDescription
localManage the local machine.
check-localShow configuration differences on the local machine (no changes).
applyConverge multiple remote hosts over SSH to the declared state.
runSame converge path as apply, under a less-loaded name.
planShow intended operations over SSH without changing anything (dry-run).
checkRun syntax-check and inventory-check in one pass.
show-inventoryDisplay resolved inventory hosts and groups.
pullPull and apply configuration locally, with optional inventory for variables.
syntax-checkStatically validate playbooks/roles/tasks/templates (no execution).
inventory-checkValidate an inventory tree (groups, group_vars, host_vars).
docsBuild and serve this documentation site locally.
installInstall the running jetpack binary to /usr/local/bin/jetpack and symlink /usr/local/bin/jetp to it.

Flags

FlagTakes valueDescription
--allow-localhost-delegationno—
--ask-login-passwordno—
--asyncnoRun tasks asynchronously (per-host parallelism).
--batch-sizeyes—
--checkyes—
--chrootyes—
--configyes—
--environmentyes—
--extra-varsyesInject extra variables from a YAML file or quoted JSON.
--forward-agentnoEnable SSH agent forwarding for specific tasks (e.g. git).
--groupsyes—
--helpyes—
--inventoryyesInventory path; may be given multiple times (later paths overlay earlier ones).
--limit-groupsyesRestrict the run to these groups.
--limit-hostsyesRestrict the run to these hosts.
--modulesyes—
--no-browserno(docs mode) Print the local docs URL instead of opening a browser.
--no-secretsyes—
--playbookyesPlaybook path(s); the automation content to run.
--portyesSSH port (ssh modes) or HTTP port (docs mode).
--profileyes—
--rolesyes—
--show-groupsyes—
--show-hostsyes—
--sudoyesSudo to this user for all tasks by default.
--tagsyesOnly run tasks/roles with one of these tags.
--threadsyesNumber of parallel threads.
--urlyes—
--useryesSSH user (defaults to $JET_SSH_USER or $USER).
--versionyes—
-Eyes—
-eyesInject extra variables from a YAML file or quoted JSON.
-iyesInventory path; may be given multiple times (later paths overlay earlier ones).
-myes—
-pyesPlaybook path(s); the automation content to run.
-ryes—
-tyesNumber of parallel threads.
-uyesSSH user (defaults to $JET_SSH_USER or $USER).
-vnoIncrease verbosity (-v, -vv, -vvv).
-vvno—
-vvvno—