CLI for Huly project management
Project description
huly-cli
Python CLI for interacting with a Huly workspace from the terminal.
Status
This repo is currently a Python typer CLI, not a Node or pnpm project.
It has been checked against hcengineering/platform@v0.6.504 and smoke-tested against
https://huly.ingenuity.ph workspace efs.
What is verified today:
- Authentication flow via
/_accounts - Read access for projects, issues, components, documents, templates, members, labels, and issue descriptions
- Live CRUD for issues, documents, components, and milestones on
https://huly.ingenuity.phworkspaceefs - Live template description update and restore flow
- Workspace-specific issue status display and status filtering
- Local unit/CLI test suite
- CI-equivalent local checks:
uv sync --extra dev,uv run ruff check .,uv run ruff format --check .,uv run pytest tests/ -v,uv run python -m build, anduv run twine check dist/*
What is not fully verified yet:
- Automated live-workspace CI has not been added
- You should still prefer a disposable project or disposable teamspace for release-time live smoke tests
Known live compatibility gaps at the time of writing:
- No known read-path breakage remains from the
v0.6.504comparison and smoke tests - No known CLI CRUD gap remains on the currently implemented issue, document, component, and milestone surfaces
- The test suite now patches auth correctly; it no longer depends on a developer's local cached login state
Compatibility Target
- Huly platform tag:
v0.6.504 - Example workspace URL used during verification:
https://huly.ingenuity.ph/workbench/efs/tracker/69cb986a2df46a01935af670/issues
Important distinction:
efsis the workspace slugROAis the project identifier in that workspace
If you run huly issues list --project EFS, it will fail because EFS is not a project ID.
Prerequisites
- Python
3.11+ uv- A Huly account with access to the target workspace
Install
Option 1: Install from PyPI
Use this if you only want the CLI and are not modifying the source:
pip install huly-cli
huly --help
Upgrade an existing install:
pip install --upgrade huly-cli
The package name is huly-cli. The executable is huly.
Option 2: Use from a source checkout
Use this if you are developing in this repository:
- 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
- Choose one auth approach:
- Interactive login: preferred for local use
- Environment-based login: useful for non-interactive runs and token refresh
Environment Variables
The CLI loads config in this order:
- CLI flags
- 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 in order to re-authenticate automatically.
Login Walkthrough
If you installed from PyPI, replace uv run huly below with huly.
Option 1: Interactive login
This is the simplest flow if you are testing locally and do not want to keep your password
in .env.
uv run huly --url https://huly.ingenuity.ph --workspace efs auth login
You will be prompted for:
- Password
- Workspace slug, if it was not passed on the command line or set in
.env
Then confirm auth is valid:
uv run huly auth status
Option 2: Login using .env
Put all four values in .env:
HULY_URL=https://huly.ingenuity.ph
HULY_WORKSPACE=efs
HULY_EMAIL=you@example.com
HULY_PASSWORD=your-password
Then run:
uv run huly auth login
uv run huly auth status
Agent Skill
This repo includes a Codex skill for agents that need to install or operate the CLI:
- skill path:
skills/huly-cli - explicit invocation:
$huly-cli
If you want to install that skill into a Codex skills directory outside this
repo, copy or symlink it into ${CODEX_HOME:-$HOME/.codex}/skills:
mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills"
ln -s "$(pwd)/skills/huly-cli" "${CODEX_HOME:-$HOME/.codex}/skills/huly-cli"
If you prefer a copy instead of a symlink:
mkdir -p "${CODEX_HOME:-$HOME/.codex}/skills"
cp -R skills/huly-cli "${CODEX_HOME:-$HOME/.codex}/skills/"
Hands-On Smoke Test
These commands are the safest live checks to run today.
If you want the repo to drive the same smoke pass for you:
uv run python scripts/live_smoke.py
To include live CRUD checks with automatic cleanup:
uv run python scripts/live_smoke.py --allow-writes
- Confirm auth:
uv run huly auth status
- List projects:
uv run huly projects list
- Inspect the verified sample project:
uv run huly projects get ROA
- List a few issues from that project:
uv run huly issues list --project ROA --limit 5
- Inspect one issue:
uv run huly issues get ROA-1
- Read the issue description:
uv run huly issues describe ROA-1
- List project components:
uv run huly components list --project ROA --limit 5
- Inspect a component by internal ID:
uv run huly components get 16e202fa79377835295c79eb
- List a few documents:
uv run huly documents list --limit 5
- List issue templates:
uv run huly templates list --limit 5
- Verify status filtering:
uv run huly issues list --status backlog --limit 5
- List workspace members:
uv run huly members list
- List labels:
uv run huly labels list
JSON mode
If you want machine-readable output for quick inspection:
uv run huly --json projects list
uv run huly --json issues list --project ROA --limit 5
uv run huly --json auth status
Commands That Currently Need Caution
The CLI write paths were exercised live during verification, but you should still prefer a disposable project or disposable teamspace when doing release-time smoke tests against a real workspace.
Local Test Suite
Run the unit and CLI regression tests with:
uv run --extra dev pytest -q
Expected result at the time of verification:
155 passed
Packaging And PyPI
The package is published on PyPI as huly-cli.
Install it with:
pip install huly-cli
The repo also builds a wheel and sdist cleanly and CI validates the distribution metadata.
For the maintainer release checklist and publisher configuration notes, see RELEASE.md.
CLI Help
Top-level help:
uv run huly --help
Auth help:
uv run huly auth login --help
License
MIT
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file huly_cli-0.1.1.tar.gz.
File metadata
- Download URL: huly_cli-0.1.1.tar.gz
- Upload date:
- Size: 99.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e8685e659514555f3d0565c266a771518ad4dd25ea2b476017018f08fc9ca5c9
|
|
| MD5 |
39adbf56047eaa802a9f3d467ee43f3e
|
|
| BLAKE2b-256 |
6985c9add73c2bbeec88eff6789509284aa0dca0237dacf7ddb473da1ebf3393
|
Provenance
The following attestation bundles were made for huly_cli-0.1.1.tar.gz:
Publisher:
publish-pypi.yml on teslakoile/huly-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
huly_cli-0.1.1.tar.gz -
Subject digest:
e8685e659514555f3d0565c266a771518ad4dd25ea2b476017018f08fc9ca5c9 - Sigstore transparency entry: 1280810786
- Sigstore integration time:
-
Permalink:
teslakoile/huly-cli@b9a0b77c6259c67054b0d1c499e0cfc1f27da9ea -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/teslakoile
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b9a0b77c6259c67054b0d1c499e0cfc1f27da9ea -
Trigger Event:
push
-
Statement type:
File details
Details for the file huly_cli-0.1.1-py3-none-any.whl.
File metadata
- Download URL: huly_cli-0.1.1-py3-none-any.whl
- Upload date:
- Size: 44.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.12
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
013daafe121c035cba6d4e3d78d70bbf2eeb4c61182e5d52c2b6e9c25e7e7e7a
|
|
| MD5 |
43e0a7f802b953fb7465db219008bfa5
|
|
| BLAKE2b-256 |
d1f1c12801d417db3ae5f5db7cb535f745fabf4f46b2524105874e3d6d7da299
|
Provenance
The following attestation bundles were made for huly_cli-0.1.1-py3-none-any.whl:
Publisher:
publish-pypi.yml on teslakoile/huly-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
huly_cli-0.1.1-py3-none-any.whl -
Subject digest:
013daafe121c035cba6d4e3d78d70bbf2eeb4c61182e5d52c2b6e9c25e7e7e7a - Sigstore transparency entry: 1280810804
- Sigstore integration time:
-
Permalink:
teslakoile/huly-cli@b9a0b77c6259c67054b0d1c499e0cfc1f27da9ea -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/teslakoile
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish-pypi.yml@b9a0b77c6259c67054b0d1c499e0cfc1f27da9ea -
Trigger Event:
push
-
Statement type: