Skip to content

Latest commit

 

History

History
52 lines (40 loc) · 6.35 KB

cli.md

File metadata and controls

52 lines (40 loc) · 6.35 KB

CLI reference (zharf-code)

The zharf-code command runs and manages Zharf Code servers, background services, remote access, threads, workflows, and diagnostics. Run zharf-code --help or zharf-code <command> --help for full flags.

See Install Zharf Code for installation (curl -fsSL https://platform.zharf.ai/code/install.sh | sh, irm https://platform.zharf.ai/code/install.ps1 | iex, or npx zharf-code@latest).

Running and connecting

Command Description
zharf-code [path] / zharf-code start Start a foreground server and open the web app (optionally in a project directory).
zharf-code serve Start the server without opening a browser (--lan, --tailscale-serve, --host, --port, --base-dir).
zharf-code app [path] Open a directory as a project/thread in the running desktop app.
zharf-code up Interactive setup for remote access (Zharf Connect and/or LAN) plus background service (--connect, --lan, --no-lan, --yes).
zharf-code connect Manage Zharf Connect (zharf-code connect, status, login, logout, link, unlink).
zharf-code status Show how other devices can reach this host (--json).
zharf-code pair Generate a one-time pairing URL / QR code (--tailscale, --scope <scope>).

Background service and updates

Command Description
zharf-code service Manage the background service (install, status, restart, uninstall, protect [--undo]). See Background service.
zharf-code update [version] Update zharf-code and the service (--channel nightly, --allow-downgrade, --yes).
zharf-code install / zharf-code uninstall Install or remove the zharf-code launcher and background service (keeps ~/.zharf-code/userdata).

Threads, projects, and workflows

Command Description
zharf-code thread Script threads on the host (start, send, show, list; supports --wait, --json, --worktree, --provider, --model, --option). See Host scripts.
zharf-code project Manage projects on the host (e.g. zharf-code project add <path> --track <folder>).
zharf-code workflow Start and steer durable workflows (start, list, show, resume, cancel, questions, signal, withdraw, hooks, store). See Workflows.

Environments, auth, themes, and policy

Command Description
zharf-code environment Link or manage peer environments (zharf-code environment link <addr> --pairing-code <code> --access <mode>, --from <file>).
zharf-code auth Manage pairing codes, sessions, and Zharf Connect device approvals (pairing create, session list/revoke/issue, connect-device list/approve/revoke).
zharf-code theme Manage server-published themes (set <id>, clear, show). See Appearance.
zharf-code policy Validate, inspect, and generate MDM/GPO templates for managed policies (check, show, settings, templates).

Diagnostics and maintenance

Command Description
zharf-code doctor Inspect database size and reclaim disk space (--dry-run, --fix).
zharf-code browser setup One-time Linux host setup (AppArmor sandbox profile, libraries, fonts) for the headless preview browser.
zharf-code trace summary Summarize local server trace latency and errors (--since 30m, --limit 50).
zharf-code triage Launch Claude Code, Codex, or Antigravity in your terminal with the Zharf Code triage playbook.
zharf-code feedback Send or inspect agent feedback reports (list [--json], --kind, --subject, --expected, --actual).