Skill v1.0.0
currentAutomated scan100/100version: "1.0.0" name: huly-cli description: Operate Huly through the @firfi/huly-cli executable. Use when a coding agent needs to authenticate, switch Huly workspaces or projects, discover commands, query structured Huly data, or perform confirmed Huly mutations from a shell or automation workflow.
Huly CLI
Use the CLI's own help and JSON contracts as the authority. Do not memorize or reproduce its complete command catalog.
Set up authentication
Install the package with pnpm add --global @firfi/huly-cli, then run:
huly auth loginhuly auth status --json
Use huly profile create|list|select|update for named URL, workspace, and default-project contexts. CLI selection uses --profile, then HULY_PROFILE, then the active profile. Stdio requires explicit HULY_PROFILE and never follows the active CLI selection. Saved tokens are bound to their exact URL/workspace: destination edits require login again. Complete environment destination and credentials may override them without being persisted; partial overrides fail. Never print, copy into chat, or persist a password; login stores only the returned token in the operating system's user config directory.
Key local command surfaces:
huly resident status [--state-directory <path>] [--json] huly resident stop --generation <uuid> [--state-directory <path>] [--json] huly auth import-token [--storage file|os] [--profile <name>] [--stdin] [--json] huly auth check [--profile <name>] [--json] huly auth login [--storage file|os] [--profile <name>] [--json] huly auth status [--profile <name>] [--json] huly auth logout [--profile <name>] [--json] huly profile create <name> --url <url> --workspace <workspace> [--default-project <project>] [--json] huly profile list [--json] huly profile select <name> [--json] huly profile update <name> [--url <url>] [--workspace <workspace>] [--default-project <project> | --clear-default-project] [--json]
Use huly resident status --json to inspect protected local ownership records. Add --state-directory <path> to inspect an explicit namespace. This command does not start a backend, acquire an adapter or change records. Authenticated generation observations report MCP readiness, admission, adapter/request counts and drain state. Unavailable observations leave recovery unverified. Neither live observations nor filesystem snapshots prove retirement; never infer permission to kill a PID, delete state or replay an operation from this output.
Use huly resident stop --generation <uuid> --json to request graceful stop of one exact managed generation. Exit zero means admission was fenced, with retirement still unconfirmed. A lost acknowledgment is a nonretryable conflict; preserve unresolved state. The command never resets ownership, starts a backend or replays Huly operations. Manual and foreground lifetimes refuse this control.
Discover before acting
- Run
huly --helpto discover groups. - Run
huly <group> --helpand then leaf--helpto learn exact fields. - Add
--jsonfor a lossless machine-readable result. - Inspect the target before a mutation.
- Add
--yesonly after checking commands marked as consequential.
Reusable identifiers in human tables are safe to copy, but prefer JSON for automation.
High-value workflows
List projects and issues:
huly projects list --jsonhuly issues list --project HULY --jsonhuly issues get HULY HULY-123 --json
Search broadly before choosing a specialized command:
huly search "release blocker" --json
For scripts, read references/automation.md before handling failures or retries.