CLI commands
Dependency updates with strong defaults.
Examples
Section titled “Examples”Report updates for the current checkout
patchula lookupBrowse updates and apply selected ones
patchula tuiExit 3 in CI while updates are waiting
patchula apply --checkWrite only GitHub Actions updates
patchula apply --manager github-actionsRun this checkout’s repository on its remote server
patchula remote runRun the GitHub App webhook server
patchula serve --settings settings.pkl- Usage:
patchula [FLAGS] <SUBCOMMAND>
Global Flags
Section titled “Global Flags”| Flag | Description | Default |
|---|---|---|
-v --verbose |
Show cache details, request counts, and phase timings; repeat for debug logs. | |
--color <WHEN> |
Control ANSI color in output. One of auto, always, never. |
auto |
--json |
Emit command results and errors as JSON; configs stay Pkl. |
| Flag | Description | Default |
|---|---|---|
-h --help |
Print help | |
-V --version |
Print version |
patchula apply
Section titled “patchula apply”- Usage:
patchula apply [FLAGS]
Write available updates into the current working tree, without branches or pull requests.
Exit codes: 0 = nothing selected is left to apply; 1 = runtime error; 2 = usage or configuration error; 3 = selected updates are still waiting (--check or --dry-run found some, or some could not be written in place); 4 = a dependency’s lookup failed, so its updates are unknown. 4 takes precedence over 3.
| Flag | Description | Default |
|---|---|---|
--cache <DIR> |
Cache directory, shared across checkouts (default: patchula in the user cache directory: ~/Library/Caches on macOS, else XDG_CACHE_HOME or ~/.cache). |
|
--settings <FILE> |
Operator settings file; also PATCHULA_SETTINGS (default: patchula/settings.pkl in XDG_CONFIG_HOME or ~/.config, when present). |
|
--concurrency <N> |
Maximum concurrency (1–100), overriding the settings file; HTTP limits are per host (default: 8). | |
--config <FILE> |
Local Pkl config file to use instead of the working tree’s patchula.pkl. |
|
--default-config |
Use default configuration when the working tree has no patchula.pkl, instead of prompting. Conflicts with --config. |
|
--manager <MANAGER> |
Only updates from this manager; repeat for more. One of npm, bun, github-actions, mise, cargo, dockerfile, compose, go, terraform, kubernetes, kustomize, flux, helm-values, pyproject, pre-commit, helm, devcontainer, woodpecker, copier, maven, gradle, nuget, bundler, composer, gitlabci, gitlabci-include, nix, apm, pkl, regex. |
|
--dependency <PATTERN> |
Only dependencies matching this name or package, with config’s glob:, regex: and !; repeat for more. |
|
--type <TYPE> |
Only updates of this type; repeat for more. One of major, minor, patch, pin, digest. |
|
--dry-run |
Print the unified diff of what would be written, and write nothing. | |
--check |
Write nothing; exit 3 if any selected update is waiting, or 4 if a lookup failed. | |
--copier |
Also run copier update for each selected template before other updates. Template code runs locally as you; the tree must be clean and --trust is never passed. |
|
--copier-defaults |
With --copier, take default answers for copier prompts, for use without a terminal. |
|
-h --help |
Print help |
Examples
Section titled “Examples”Write every available update
patchula applyWrite nothing; exit 3 if updates are waiting
patchula apply --checkShow patch updates as a unified diff
patchula apply --dry-run --type patchWrite only actions/* updates
patchula apply --manager github-actions --dependency 'glob:actions/*'patchula cache
Section titled “patchula cache”- Usage:
patchula cache <SUBCOMMAND>
Inspect the cache directory’s database.
| Flag | Description | Default |
|---|---|---|
-h --help |
Print help |
Examples
Section titled “Examples”Print the cache schema this binary supports
patchula cache schemapatchula cache schema
Section titled “patchula cache schema”- Usage:
patchula cache schema
Print the cache database schema supported by this binary; newer caches are refused.
| Flag | Description | Default |
|---|---|---|
-h --help |
Print help |
patchula completion
Section titled “patchula completion”- Usage:
patchula completion [--install] [--force] <SHELL>
Print or install shell completion scripts.
Arguments
Section titled “Arguments”| Argument | Description | Default |
|---|---|---|
<SHELL> |
Shell to generate completions for. One of bash, elvish, fish, nu, nushell, powershell, pwsh, zsh. |
| Flag | Description | Default |
|---|---|---|
--install |
Write the script where the shell looks for it instead of printing it | |
--force |
With –install, replace a file that was not generated by usage. The file is overwritten without a backup, which is why this is labeled destructive. | |
-h --help |
Print help |
Examples
Section titled “Examples”Install fish completions
patchula completion fish --installPrint the zsh completion script
patchula completion zshpatchula config
Section titled “patchula config”- Usage:
patchula config <SUBCOMMAND>
Inspect and validate Pkl configuration.
| Flag | Description | Default |
|---|---|---|
-h --help |
Print help |
Examples
Section titled “Examples”Find and check this repository’s config
patchula config check .Check one config file
patchula config check patchula.pklSave the schema for your editor
patchula config schema > PatchulaConfig.pklCheck operator settings
patchula config check-settings settings.pklpatchula config check
Section titled “patchula config check”- Usage:
patchula config check <PATH>
Validate a Pkl config file or discover one in a repository directory.
Arguments
Section titled “Arguments”| Argument | Description | Default |
|---|---|---|
<PATH> |
Pkl file or repository directory to check. |
| Flag | Description | Default |
|---|---|---|
-h --help |
Print help |
patchula config schema
Section titled “patchula config schema”- Usage:
patchula config schema
Print the bundled PatchulaConfig.pkl schema as Pkl source.
| Flag | Description | Default |
|---|---|---|
-h --help |
Print help |
patchula config settings-schema
Section titled “patchula config settings-schema”- Usage:
patchula config settings-schema
Print the bundled PatchulaSettings.pkl operator schema.
| Flag | Description | Default |
|---|---|---|
-h --help |
Print help |
patchula config check-settings
Section titled “patchula config check-settings”- Usage:
patchula config check-settings <PATH>
Validate an operator settings file without credentials or network.
Arguments
Section titled “Arguments”| Argument | Description | Default |
|---|---|---|
<PATH> |
Settings file to check. |
| Flag | Description | Default |
|---|---|---|
-h --help |
Print help |
patchula lookup
Section titled “patchula lookup”- Usage:
patchula lookup [FLAGS] [OWNER/REPO]…
Report available updates without writing; omit repositories to scan the current working tree.
Arguments
Section titled “Arguments”| Argument | Description | Default |
|---|---|---|
[OWNER/REPO]… |
Repositories as owner/repo, read through the GitHub API; omit for the current checkout. |
| Flag | Description | Default |
|---|---|---|
--all-repos |
Scan every repository the token can reach. | |
--cache <DIR> |
Cache directory, shared across checkouts (default: patchula in the user cache directory: ~/Library/Caches on macOS, else XDG_CACHE_HOME or ~/.cache). |
|
--settings <FILE> |
Operator settings file; also PATCHULA_SETTINGS (default: patchula/settings.pkl in XDG_CONFIG_HOME or ~/.config, when present). |
|
--concurrency <N> |
Maximum concurrent repository scans (1–100), overriding the settings file; HTTP limits are per host (default: 8). | |
--config <FILE> |
Local Pkl config override applied to every selected repository. | |
--config-dir <DIR> |
Per-repository overrides: DIR/<owner>/<name>.pkl, then DIR/<name>.pkl; other repositories use their own patchula.pkl, or are skipped without one. Conflicts with --config. |
|
--default-config |
Use default configuration when the working tree has no patchula.pkl, instead of prompting. Conflicts with --config and --config-dir. |
|
-h --help |
Print help |
Examples
Section titled “Examples”Report updates for the current checkout
patchula lookupRead two repositories through the API
patchula lookup acme/app acme/apiEmit the report as JSON
patchula lookup --jsonpatchula remote
Section titled “patchula remote”- Usage:
patchula remote <SUBCOMMAND>
Run commands on a Count Patchula server with its credentials and warm caches.
| Flag | Description | Default |
|---|---|---|
-h --help |
Print help |
Examples
Section titled “Examples”Look up this checkout’s repository on its server
patchula remote lookupOpen or update pull requests on the server
patchula remote runPlan pull requests for acme/app on the server
patchula remote run --dry-run acme/appBrowse updates from the server in the terminal
patchula remote tuiSign in through the server’s GitHub App
patchula remote login --server https://patchula.example.compatchula remote login
Section titled “patchula remote login”- Usage:
patchula remote login [--server <URL>]
Sign in with the server’s GitHub App, replacing any stored token.
| Flag | Description | Default |
|---|---|---|
--server <URL> |
Server URL; overrides PATCHULA_SERVER. With neither set, uses the server remembered for, or advertised by, this checkout. | |
-h --help |
Print help |
patchula remote logout
Section titled “patchula remote logout”- Usage:
patchula remote logout [--server <URL>]
Forget the stored token for a server and any remembered repositories using it.
| Flag | Description | Default |
|---|---|---|
--server <URL> |
Server URL; overrides PATCHULA_SERVER. With neither set, uses the server remembered for this checkout. | |
-h --help |
Print help |
patchula remote lookup
Section titled “patchula remote lookup”- Usage:
patchula remote lookup [--server <URL>] [OWNER/REPO]…
Report available updates from a Count Patchula server without writing.
Arguments
Section titled “Arguments”| Argument | Description | Default |
|---|---|---|
[OWNER/REPO]… |
Repositories as owner/repo; omit for this checkout’s GitHub repository. |
| Flag | Description | Default |
|---|---|---|
--server <URL> |
Server URL; overrides PATCHULA_SERVER. With neither set, a single repository uses the server remembered for, or advertised by, it. | |
-h --help |
Print help |
patchula remote run
Section titled “patchula remote run”- Usage:
patchula remote run [--server <URL>] [--dry-run] [OWNER/REPO]…
Create or update dependency branches and pull requests on a Count Patchula server.
Arguments
Section titled “Arguments”| Argument | Description | Default |
|---|---|---|
[OWNER/REPO]… |
Repositories as owner/repo; omit for this checkout’s GitHub repository. |
| Flag | Description | Default |
|---|---|---|
--server <URL> |
Server URL; overrides PATCHULA_SERVER. With neither set, a single repository uses the server remembered for, or advertised by, it. | |
--dry-run |
Print planned branches, files and unified diffs without writing to GitHub. | |
-h --help |
Print help |
patchula remote tui
Section titled “patchula remote tui”- Usage:
patchula remote tui [--server <URL>] [--once] [OWNER/REPO]…
Browse dependencies and updates from a Count Patchula server in the terminal.
Arguments
Section titled “Arguments”| Argument | Description | Default |
|---|---|---|
[OWNER/REPO]… |
Repositories as owner/repo; omit for this checkout’s GitHub repository. |
| Flag | Description | Default |
|---|---|---|
--server <URL> |
Server URL; overrides PATCHULA_SERVER. With neither set, a single repository uses the server remembered for, or advertised by, it. | |
--once |
Print a plain-text snapshot of the updates and exit with lookup’s exit code, for pipes and CI logs. |
|
-h --help |
Print help |
patchula run
Section titled “patchula run”- Usage:
patchula run [FLAGS] [OWNER/REPO]…
Create or update dependency branches and pull requests on GitHub with verified API commits.
Reads GitHub rather than the working tree, even with --dry-run. With no repository, runs this checkout’s GitHub repository; --dir with --dry-run plans from a local directory instead.
Failed lookups are reported but the run still exits 0, since it keeps the pull requests it could plan; it holds off auto-merge and closing pull requests for that repository.
Arguments
Section titled “Arguments”| Argument | Description | Default |
|---|---|---|
[OWNER/REPO]… |
Repositories as owner/repo, read through the GitHub API; omit for this checkout’s GitHub repository. |
| Flag | Description | Default |
|---|---|---|
--all-repos |
Scan every repository the token can reach. | |
--cache <DIR> |
Cache directory, shared across checkouts (default: patchula in the user cache directory: ~/Library/Caches on macOS, else XDG_CACHE_HOME or ~/.cache). |
|
--settings <FILE> |
Operator settings file; also PATCHULA_SETTINGS (default: patchula/settings.pkl in XDG_CONFIG_HOME or ~/.config, when present). |
|
--concurrency <N> |
Maximum concurrent repository scans (1–100), overriding the settings file; HTTP limits are per host (default: 8). | |
--config <FILE> |
Local Pkl config override applied to every selected repository. | |
--config-dir <DIR> |
Per-repository overrides: DIR/<owner>/<name>.pkl, then DIR/<name>.pkl; other repositories use their own patchula.pkl, or are skipped without one. Conflicts with --config. |
|
--dir <DIR> |
Plan branches and diffs from a local directory instead of GitHub; requires --dry-run. |
|
--recheck <WHEN> |
When a ticked PR or dashboard checkbox takes effect; also PATCHULA_RECHECK (default: next-run). One of now, next-run. |
|
--dry-run |
Print planned branches, files and unified diffs without writing to GitHub. | |
-h --help |
Print help |
Examples
Section titled “Examples”Plan branches and diffs for acme/app, writing nothing
patchula run --dry-run acme/appOpen or update pull requests for acme/app
patchula run acme/appRun every repository the token can reach
patchula run --all-repos --config-dir overridespatchula serve
Section titled “patchula serve”- Usage:
patchula serve [FLAGS]
Run the API-only GitHub App webhook server.
| Flag | Description | Default |
|---|---|---|
--settings <FILE> |
Operator settings file; also PATCHULA_SETTINGS. | |
--listen <ADDR> |
Server bind address; also PATCHULA_LISTEN (default: 127.0.0.1:8080). | |
--cache <DIR> |
Server cache and queue directory; also PATCHULA_SERVER_CACHE (default: patchula/server in the user cache directory). |
|
--app-id <ID> |
GitHub App ID; also PATCHULA_APP_ID. | |
--private-key-file <FILE> |
PEM private key file; also PATCHULA_APP_PRIVATE_KEY_FILE. | |
--webhook-secret-file <FILE> |
Webhook secret file; also PATCHULA_WEBHOOK_SECRET_FILE. | |
--shutdown-timeout-secs <SECS> |
Graceful server drain deadline; also PATCHULA_SHUTDOWN_TIMEOUT_SECS (default: 60). | |
--recheck <WHEN> |
When a ticked PR or dashboard checkbox takes effect; also PATCHULA_RECHECK (default: now). One of now, next-run. |
|
-h --help |
Print help |
Examples
Section titled “Examples”Serve with operator settings
patchula serve --settings settings.pklListen on every interface
patchula serve --settings settings.pkl --listen 0.0.0.0:8080patchula tools
Section titled “patchula tools”- Usage:
patchula tools <SUBCOMMAND>
Manage the lockfile runner’s tool store (PATCHULA_TOOLS_DIR, or tools/ in the cache directory).
| Flag | Description | Default |
|---|---|---|
-h --help |
Print help |
Examples
Section titled “Examples”Install pinned toolchains ahead of time (e.g. in an image)
patchula tools installDrop versions unused for two weeks
patchula tools prune --days 14patchula tools install
Section titled “patchula tools install”- Usage:
patchula tools install [--cache <DIR>]
Install the pinned lockfile toolchains ahead of time, e.g. in an image build.
| Flag | Description | Default |
|---|---|---|
--cache <DIR> |
Cache directory holding the tool store (default: patchula in the user cache directory). |
|
-h --help |
Print help |
patchula tools prune
Section titled “patchula tools prune”- Usage:
patchula tools prune [--cache <DIR>] [--days <DAYS>]
Uninstall tool versions no run has used recently; pinned defaults stay.
| Flag | Description | Default |
|---|---|---|
--cache <DIR> |
Cache directory holding the tool store (default: patchula in the user cache directory). |
|
--days <DAYS> |
Remove versions unused for at least this many days. | 30 |
-h --help |
Print help |
patchula tui
Section titled “patchula tui”- Usage:
patchula tui [FLAGS] [OWNER/REPO]…
Browse dependencies and updates in the terminal; omit repositories to apply updates locally.
Arguments
Section titled “Arguments”| Argument | Description | Default |
|---|---|---|
[OWNER/REPO]… |
Repositories as owner/repo, read through the GitHub API; omit for the current checkout. |
| Flag | Description | Default |
|---|---|---|
--all-repos |
Scan every repository the token can reach. | |
--cache <DIR> |
Cache directory, shared across checkouts (default: patchula in the user cache directory: ~/Library/Caches on macOS, else XDG_CACHE_HOME or ~/.cache). |
|
--settings <FILE> |
Operator settings file; also PATCHULA_SETTINGS (default: patchula/settings.pkl in XDG_CONFIG_HOME or ~/.config, when present). |
|
--concurrency <N> |
Maximum concurrent repository scans (1–100), overriding the settings file; HTTP limits are per host (default: 8). | |
--config <FILE> |
Local Pkl config override applied to every selected repository. | |
--config-dir <DIR> |
Per-repository overrides: DIR/<owner>/<name>.pkl, then DIR/<name>.pkl; other repositories use their own patchula.pkl, or are skipped without one. Conflicts with --config. |
|
--default-config |
Use default configuration when the working tree has no patchula.pkl, instead of prompting. Conflicts with --config and --config-dir. |
|
--once |
Print a plain-text snapshot of the updates and exit with lookup’s exit code, for pipes and CI logs. |
|
-h --help |
Print help |
Examples
Section titled “Examples”Pick updates and apply them locally
patchula tuiBrowse a repository through the API
patchula tui acme/appPrint a plain snapshot, for pipes and CI logs
patchula tui --once© 2026 Sweepy