Piceli Command Line Interface (CLI) Guide¶
Maturity: preview
Every command here uses one engine: live discovery, a pure plan, server-side apply with preconditions, and a durable journal. Commands only reach a cluster through an explicit kubeconfig file and context. See the Roadmap for each feature’s maturity.
The piceli command (also available as python -m piceli) has seven command groups, the render, deploy, status and access commands and two contract commands:
Group |
Purpose |
Cluster access |
Output |
|---|---|---|---|
|
Print the manifests of a typed app or composition (preview); |
None |
YAML or JSON |
|
Run the whole pipeline for a typed app: verify inputs, build, deliver, plan, apply and run checks, skipping unchanged stages. See Deploy an app from source |
Explicit kubeconfig file + context from the target |
JSON + summary on stderr |
|
Plan, apply, roll back, resume and stop releases from a |
Explicit kubeconfig file + context from the spec |
JSON + summary on stderr |
|
Reconcile a session archive, logs, port forwards, local UI |
Explicit |
JSON |
|
Inventory, releases, approvals, backups, local UI |
Explicit |
JSON |
|
Generate a typed app module from live objects ( |
Explicit |
Python module + JSON |
|
Generate typed models from a CRD’s schema ( |
None, or explicit |
Python module + JSON |
|
Deterministic OCI builds, image delivery and explicit local import |
None, or an explicit target for |
JSON |
|
Record and verify the git identity of build sources |
None (local git only) |
JSON |
|
Whether the app is up and how to reach it: release, image digests, health, URLs (preview). See Reach your services from your laptop |
Explicit kubeconfig file + context from the target (reads only) |
Text, or JSON with |
|
Forward the ports the model declares to |
Explicit kubeconfig file + context from the target (port forwards) |
Text, or JSON lines with |
|
Explain an error code: cause, fix, whether a retry can succeed |
None |
Text, or JSON with |
|
The whole command tree with options, side effects and approval rules |
None |
JSON |
piceli deploy runs the whole pipeline (verify inputs, build, deliver, plan,
apply, checks) as one resumable command; see Deploy an app from source.
Every command, option and contract is listed in Command reference,
generated from piceli help-json. Refusal codes are explained in
Error codes. Agents should start with Using Piceli from an agent.
There are no global options: each command takes its own explicit options.
Note
Upgrading from 0.3.x: the model list and deploy run/plan/detail commands
and the global --namespace, --module-name, --module-path,
--folder-path and --sub-elements options (PICELI__* environment
variables, [tool.piceli] in pyproject.toml) were removed in 0.4.0. Use
piceli render to see what a model contains, piceli import to turn existing
objects into a typed app, and piceli release or piceli deploy to apply it.
Observe Command¶
Read-only reconciliation of a deployment session archive with a live namespace, plus bounded logs and saved loopback port forwards. See Operations Lens for examples.
Subcommand |
Description |
|---|---|
|
Print declared resources, live state, and objects absent from the archive. |
|
Print, or run, a bounded workload-log request. |
|
Save or list a user’s loopback port-forward preferences. |
|
Print, or run, one saved loopback-only port forward. |
|
Start and health-supervise every forward in an access profile, or probe them once. |
|
Open the local operations dashboard; |
Operator Command¶
Local release and operations management. See Operator Workflow.
Subcommand |
Description |
|---|---|
|
Print the classified inventory (managed, unmanaged, unknown) and releases. |
|
Promote an existing built digest to a new release name without rebuilding. |
|
Record an explicit operator approval for a pull request rollout. |
|
Create or restore a verified, mode-restricted backup of operator state. |
|
Launch the operator dashboard and REST API on loopback. |
Artifacts Command¶
Deterministic OCI image layouts from pinned sources, containerized builds and
image delivery. Nothing is pushed or imported without an explicit approval
(--approve-digest, --approve-plan). See Artifact delivery and operation telemetry.
Subcommand |
Description |
|---|---|
|
Capture a source pin for an explicitly public file. |
|
Preview a build plan, or build a deterministic OCI layout. |
|
Validate and describe an OCI layout. |
|
Containerized build from a declarative |
|
Import an approved layout into a local Docker engine (no tag, no push). |
|
Deliver an image approved by config digest: push to a registry with |
|
Preview or run a pinned external build tool under an explicit grant. |
Note
piceli artifacts does not appear in piceli --help yet. Run
piceli artifacts --help directly.