@pushpalsdev/cli
v1.2.64
Published
PushPals terminal client and local multi-service runtime supervisor
Readme
@pushpalsdev/cli
The PushPals CLI is the terminal client and optional local runtime supervisor. It submits messages through the Server session control plane, streams lifecycle events, and can start the packaged Server, LocalBuddy, RemoteBuddy, and SourceControlManager when no healthy runtime is already serving the current repository. Planning, execution, and publication remain owned by those services.
Install
npm install -g @pushpalsdev/clibun install -g @pushpalsdev/cli is also supported. On Windows hosts with a
managed certificate store, use
bun install -g --use-system-ca @pushpalsdev/cli so Bun trusts the system CAs.
The npm entrypoint requires Node.js 20+ and Bun 1.3.14+. Native binaries are also available from GitHub Releases.
Windows Bun resolution
It is possible to have more than one Bun installation on Windows, especially
after installing Bun both from bun.sh and npm. The CLI checks the Bun
executables reported by where.exe bun in PATH order and uses the first one
that satisfies its minimum version. Global and project-local npm bun and
bun.cmd shims are resolved to their native node_modules/bun/bin/bun.exe
target before launch.
To inspect or repair a runtime mismatch:
where.exe bun
Get-Command bun -All
bun upgradeFor an npm-managed installation, use npm install -g [email protected]. You can also
pin the launcher to a specific native executable for the current shell:
$env:PUSHPALS_BUN_BIN = "$env:APPDATA\npm\node_modules\bun\bin\bun.exe"
pushpals --versionCommon Commands
Run from inside the Git repository you want PushPals to manage.
| Command | Purpose |
| ----------------------------------- | ------------------------------------------------------------------------------------ |
| pushpals | Connect or auto-start, then open interactive chat and event streaming. |
| pushpals --runtime-tag vX.Y.Z | Pin embedded assets and binaries to a release. |
| pushpals --no-auto-start | Require an existing healthy runtime. |
| pushpals --runtime-only | Supervise the local runtime without interactive chat. |
| pushpals --status-once | Print endpoints and readiness once, then exit. |
| pushpals --version | Print CLI, Bun runtime, and platform versions, then exit. |
| pushpals --open-config | Open the active local runtime configuration. |
| pushpals --clear | Stop the repo's managed runtime and clear state, preserving reusable caches. |
| pushpals --clear --include-caches | Also remove the configured WorkerPal sandbox image and legacy host dependency cache. |
The CLI refuses to run outside a Git repository or against a Server attached to a different repository. Embedded release assets live under ~/.pushpals/runtime; repo-specific CLI state lives in the repository's Git metadata directory.
--clear removes runtime data, state files, the managed SourceControlManager worktree, bootstrap logs, and repo-labeled WorkerPal warm containers when Docker is configured. It preserves the reusable sandbox image and legacy host dependency cache; a matching image can be reused on the next start. Use --clear --include-caches when you also want those caches removed; the next start may need to rebuild the image. --include-caches requires --clear. Neither mode removes Docker named volumes, including WorkerPal dependency snapshots and Codex state, or installed runtime assets and configuration.
On Windows, directory cleanup uses up to four concurrent, disjoint subtree removals to reduce the cost of dependency-heavy worktrees. Planning is bounded, directory links are not followed, and all started removals finish before retrying or returning. Clear targets remain sequential because configured paths can overlap. Non-Windows platforms retain native recursive removal. Cleanup is not deferred into the background; progress messages continue until it finishes. To compare removal times safely on synthetic temporary fixtures, run bun run scripts/benchmark-cli-clear.ts from a PushPals source checkout (no path arguments).
Requested Docker cleanup remains strict: --clear exits with code 1 if warm-container cleanup cannot be confirmed, and --clear --include-caches also requires confirmed image cleanup. Docker unavailability or a cleanup timeout produces an incomplete summary even if local state was successfully removed; retry when Docker is responsive. Preserved caches are not cleanup failures. Startup and shutdown cleanup remain best-effort and warn without blocking indefinitely.
Implementation Map
bin/pushpals.cjs- npm shim, Bun version check, bootstrap watchdog, and signal forwarding.bin/bun-runtime.cjs- Windows Bun candidate discovery, version selection, and probe budgeting.../../scripts/pushpals-cli.ts- bundled CLI, preflights, runtime supervision, session transport, and interactive commands.../../scripts/sync-cli-runtime-assets.ts- packaged runtime mirror generation.package.json- package payload and build contract.
For startup flow, component boundaries, and troubleshooting, see Client Surfaces.
