CLI Reference

This page is based on CAPSULE_CLI_SPEC v0.3 command definitions, separating implemented features from phase-planned features.

Status: Implemented

Display available Engine features.

Terminal window
capsule engine features

Status: Implemented

Register engine binary to ~/.capsule/config.toml.

Terminal window
capsule engine register --name <name> --path <path> [--default]

Status: Implemented

By default, fetches and registers nacelle binary.

Terminal window
capsule setup --engine nacelle [--version]

Status: Implemented

Execute .capsule or capsule.toml. If eager dependencies exist in [ipc.imports], capsule-cli starts Services first and waits for ready.

Terminal window
capsule open <path> [--watch] [--background] [--enforcement]

Status: Implemented

Generate new project from template.

Terminal window
capsule new <name> --template <python|node|hono|rust|go|shell>

Status: Implemented

Generate distribution using .capsuleignore and manifest settings.

Terminal window
capsule pack [dir] [--init] [--key] [--standalone] [--enforcement]

Status: Implemented

Generate signing key (Ed25519).

Terminal window
capsule keygen [--out] [--force] [--json]

Status: Implemented

Attach signature to artifact.

Terminal window
capsule sign <target> --key <path> [--out]

Status: Implemented

List running Capsules.

Terminal window
capsule ps [--all] [--json]

Status: Implemented

Stop and log tracking.

Terminal window
capsule close [--id|--name] [--all] [--force]
capsule logs [--id|--name] [--follow] [--tail]

Status: Implemented

Process .sync in Guest mode. Current implementation uses guest.v2 (JSON over stdio), migrating to JSON-RPC 2.0 in future.

Terminal window
capsule guest <sync_path>

Status: Implemented

Besides manifest syntax validation, handles IPC reserved prefix conflicts, circular dependencies, and remote = true warnings (v0.3+ requirement).

Terminal window
capsule validate [path]

Status: Implemented

Through Store API distribution resolution, only installs distributions meeting signature_status=verified and hash integrity.

Terminal window
capsule install <name|path>

IPC commands are specified by phase. status is v0.3, others are v0.4 planned.

CommandPhaseStatus
capsule ipc status [--json]v0.3Planned/Designed
capsule ipc servicesv0.4Planned
capsule ipc call <svc> <cap> --input '{...}'v0.4Planned
capsule ipc logs / inspectv0.4Planned

Status: Implemented

Register public GitHub repository as Store Source. Better Auth session (CAPSULE_SESSION_TOKEN) linkage recommended.

Terminal window
capsule source register <repo_url> [--registry] [--channel stable|beta]

Source: docs/specs/CAPSULE_CLI_SPEC.md (v0.3).