Python CLI for interacting with a Huly workspace from the terminal.
Full CRUD support for the core Huly entities:
| Command | list | get | create | update | delete | describe |
|---|---|---|---|---|---|---|
projects |
x | x | ||||
issues |
x | x | x | x | x | x |
documents |
x | x | x | x | x | x |
components |
x | x | x | x | x | |
milestones |
x | x | x | x | x | |
templates |
x | x | x | |||
labels |
x | x | x | x | x | |
members |
x |
Additional capabilities:
- Issue descriptions & document content: read and write rich-text content via the Collaborator RPC. Markdown is converted to/from ProseMirror JSON automatically.
- Issue fields: priority, status, assignee, due date, component, and labels
(repeatable
--labelflag on create/update) - Status filtering:
issues list --status <name>resolves against the live workspace status index, supporting custom statuses - Fulltext search:
huly search "query"searches titles and body content across every class in the workspace, with optional--classfilters and a class-scoped wrapper athuly issues search. - JSON mode:
huly --json <command>for machine-readable output - Full IDs in tables:
idandparentcolumns in list output never truncate to…— values are always copy-pasteable into subsequent commands - Agent-friendly markdown:
huly documents describe DOC_ID --markdownemits plain GFM with no Rich box or reflow - Self-upgrade:
huly upgradeto update from PyPI - Shell completion:
huly --install-completion
- Python
3.11+ uv(only needed for source-checkout development)- A Huly account with access to the target workspace
The package name is huly-cli. The executable is huly.
pipx creates an isolated environment per tool and
puts the executable on PATH automatically.
pipx install huly-cli
huly --helpUpgrade:
pipx upgrade huly-cli
# or: huly upgradepip install huly-cli- Install dependencies, including dev tools:
uv sync --extra dev- Copy the example environment file:
cp .env.example .env- Edit
.envwith at least:
HULY_URLHULY_WORKSPACE
- Run commands with
uv run hulyinstead ofhuly.
The CLI loads config in this order:
- CLI flags (
--url,--workspace) - Environment variables
.envin the current directory~/.config/huly/config.toml
Supported variables:
HULY_URLHULY_WORKSPACEHULY_EMAILHULY_PASSWORD
Auth cache location:
- Config:
~/.config/huly/config.toml - Tokens:
~/.config/huly/auth.json
The token cache is reused automatically. If the cached token expires, the CLI
needs HULY_EMAIL and HULY_PASSWORD available to re-authenticate.
Source checkout? Replace
hulybelow withuv run huly.
huly --url https://huly.example.com --workspace my-ws auth loginYou will be prompted for email and password. Then confirm:
huly auth statusPut all four values in .env:
HULY_URL=https://huly.example.com
HULY_WORKSPACE=my-ws
HULY_EMAIL=you@example.com
HULY_PASSWORD=your-passwordThen run:
huly auth login
huly auth statushuly projects list
huly projects get DEMO# List and filter
huly issues list --project DEMO --limit 10
huly issues list --status backlog --assignee john
# Create
huly issues create --project DEMO --title "Fix login bug" \
--priority high --status todo --assignee "Jane" \
--due-date 2025-06-01 --component "Auth" --label "bug"
# Update
huly issues update DEMO-1 --status done --priority low
huly issues update DEMO-1 --due-date 2025-07-01 --component "API"
huly issues update DEMO-1 --label "sprint-3"
# Read/write descriptions
huly issues describe DEMO-1
huly issues describe DEMO-1 --set "## Updated description"
huly issues describe DEMO-1 --set-file ./description.md
huly issues describe DEMO-1 --raw # show ProseMirror JSON
# Delete
huly issues delete DEMO-1# List and filter
huly documents list --space "Engineering"
huly documents list --title-contains "RAG" # case-insensitive substring
huly documents list --parent DOC_ID # direct children only
# Find a doc without knowing its ID
huly documents search "rag template" # alias for --title-contains
huly documents get --title "Design Doc" # errors if title is ambiguous
huly documents describe --title "Design Doc"
# Create / update / describe / delete by ID
huly documents create --space "Engineering" --title "Design Doc"
# Read content
huly documents describe DOC_ID # rendered markdown in a Rich panel
huly documents describe DOC_ID --markdown # plain GFM to stdout — safe to pipe, diff, or feed back into --set-file
huly documents describe DOC_ID --raw # raw ProseMirror JSON
# Write content
huly documents describe DOC_ID --set "# Design\n\nContent here."
huly documents describe DOC_ID --set-file ./doc.md
huly documents update DOC_ID --title "Updated Title"
huly documents duplicate DOC_ID --title "Weekly Status — 2026-04-19"
huly documents delete DOC_ID
# Hierarchical view via the parent field
huly documents tree # every space, grouped
huly documents tree --space "Engineering" # one teamspace
huly documents tree --root DOC_ID # subtree under one doc
huly documents tree --depth 2 # cap recursion
huly --json documents tree # nested JSON outputdocuments duplicate copies a source document into a new one in a single
command — useful for instantiating template-style docs. It inherits the
source's space and parent by default; pass --space or --parent to override.
Markdown tables (| a | b |\n| --- | --- |\n| 1 | 2 |) round-trip through
documents describe --set / --set-file — they are stored as real
ProseMirror table / tableRow / tableHeader / tableCell nodes, not
literal pipe characters, and the Huly UI renders them as styled tables.
For ProseMirror features the markdown parser does not cover (colspan, rowspan, custom node types), pass raw ProseMirror JSON directly:
# Inline JSON
huly documents describe DOC_ID --set-raw '{"type":"doc","content":[...]}'
# From a file
huly documents describe DOC_ID --set-raw-file ./doc.pm.jsonThe four write flags (--set, --set-file, --set-raw, --set-raw-file)
are mutually exclusive; invalid JSON or a non-doc root is rejected before
any network IO.
--markdown is the preferred read path for agents: no Rich box, no reflow, no
ellipsis truncation, and the output round-trips cleanly back into --set-file.
--raw and --markdown are mutually exclusive.
huly components list --project DEMO
huly components create --project DEMO --label "Auth Service" --description "Handles auth"
huly components update COMP_ID --label "Renamed" --description "Updated"
huly components delete COMP_IDhuly milestones list --project DEMO
huly milestones create --project DEMO --label "v1.0" --status planned --target-date 2025-06-01
huly milestones update MS_ID --status completed
huly milestones delete MS_IDhuly labels list
huly labels create --title "bug" --color 1
huly labels update LABEL_ID --title "critical-bug"
huly labels delete LABEL_IDhuly templates list --project DEMO
huly templates get TEMPLATE_ID
huly templates describe TEMPLATE_ID
huly templates describe TEMPLATE_ID --set "## Template description"huly members list# Fulltext search across every class in the workspace.
huly search "milestone 3"
# Limit results and filter client-side by fully qualified class.
huly search "roadmap" --limit 10 --class tracker:class:Issue
huly search "onboarding" --class document:class:Document --class tracker:class:Issue
# Class-scoped wrapper for issues.
huly issues search "login bug"
# JSON output for scripting.
huly --json search "project" --limit 5
huly search "project" --limit 5 --jsonNotes:
- The
--classfilter is applied client-side on the returneddoc._class; the server's equivalent query parameter is not reliable. - Results are ranked by descending relevance
score. Omitting--classreturns a mixed result set across issues, documents, templates, etc.
huly --json projects list
huly --json issues list --project DEMO --limit 5
huly --json issues describe DEMO-1The repo includes an automated smoke runner:
uv run python scripts/live_smoke.py # read-only checks
uv run python scripts/live_smoke.py --allow-writes # CRUD checks with cleanupuv run --extra dev pytest -qThe package is published on PyPI as huly-cli.
pipx install huly-cliOr with pip in a virtualenv or CI:
pip install huly-cliFor the maintainer release checklist, see RELEASE.md.
huly --help
huly issues --help
huly issues create --helpMIT