heizen-cli
v1.1.0
Published
CLI for Heizen worklog and dashboard workflows.
Downloads
220
Readme
heizen-cli
CLI for Heizen worklog and dashboard workflows.
Install
Global install (recommended for users)
npm i -g heizen-cliThen run:
hz helpLocal development
bun install
bun run build
bun run dev -- helpAuthentication
heizen-cli has two auth flows:
- Dashboard auth (
api.studio.heizen.work) viahz login - Worklog auth (
worklog.opengig.work) viahz work login
Dashboard login
hz loginThis opens your browser and completes OAuth callback on http://127.0.0.1:7000/oauth2callback.
Worklog login
hz work loginThis prompts for worklog email/password and stores the session.
Command Reference
Root
hz helpMain commands
hz login- Sign in to dashboard using browser OAuth callbackhz projects- List dashboard projectshz projects open [name]- Link project to current directoryhz sprints- List sprints for linked projecthz sprints set- Set active working sprinthz tasks [taskIndex] [storyIndex] [status]- List/view/update storieshz meetings [meetingIndex]- List meetings, view details/summary/transcripthz resources- List project resourceshz wiki [docIndex]- List/view wiki documentshz work [days]- Worklog commandshz reset- Clear local db, pending works, and auth tokens
Worklog commands
hz work --helphz work [days]- List worklogs (0today,-5means 5 days ago)-p, --pending- List locally pending works
hz work login- Interactive loginhz work refresh- Refetch user datahz work projects [filter]-a, --all- Show all projects
hz work active [name]- Show/set active project for this directoryhz work start <name>- Start a worklog entryhz work done <hash>- Mark work done by hash prefix and sync
Worklog aliases
hz wa=>hz work activehz wp=>hz work projects
Dashboard commands
Projects
hz projects --help
hz projects open --helphz projects-v, --verbose- Paragraph-style output
hz projects open [name]- Link project in current directory
Sprints
hz sprints --help
hz sprints set --helphz sprints- List linked project sprintshz sprints set- Interactively choose active sprint
Tasks
hz tasks --helphz tasks [taskIndex] [storyIndex] [status]-d, --details- Show all tasks with stories-v, --view- Interactive modestatusaccepted values:done,review,todo,inprogress
Meetings
hz meetings --helphz meetings [meetingIndex]-s, --summary- Show summary-t, --transcript- Show transcript
Resources
hz resources --helphz resources-d, --details- Show full details
Wiki
hz wiki --helphz wiki [docIndex]-d, --details- Show details only
Reset command
hz resetResets local CLI state after confirmation:
- Local db
- Pending local work entries
- Stored auth tokens/session
After reset, login again:
hz login
hz work loginCommon usage examples
# Login flows
hz login
hz work login
# Worklog
hz work
hz work 5
hz work -p
hz work projects --all
hz work active "My Project"
hz work start "Fix bug in auth flow"
hz work done abc
# Dashboard
hz projects
hz projects open "Acme"
hz sprints
hz sprints set
hz tasks
hz tasks -d
hz tasks 2
hz tasks 2 4
hz tasks 2 4 done
hz meetings
hz meetings 4 -s
hz resources
hz wiki
hz wiki 3Build and publish (maintainers)
bun run build
npm pack --dry-run
npm publishIf npm enforces 2FA:
npm publish --otp <code>