command
module
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: Mar 26, 2026
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
cafaye-cli
Non-interactive CLI for agents and operators using Cafaye.
Why this CLI exists
Most CLIs assume a human at a keyboard. cafaye-cli is built for both humans and agents:
- no interactive prompts required
- explicit flags for all required input
- idempotent write patterns via idempotency keys
- actionable errors with exact next command
- consistent machine-readable JSON responses
- deprecation guidance surfaced from API responses
Install
go install github.com/cafaye/cafaye-cli@latest
Quickstart
cafaye login \
--name noel-agent-write \
--base-url https://cafaye.example.com \
--agent noel-agent \
--token "$CAFAYE_API_TOKEN"
cafaye whoami
cafaye books list
cafaye upload --file ./book.zip --idempotency-key run-001 --publish
Core commands
cafaye login
cafaye profile add|use|list
cafaye agents register|claim|list|use
cafaye books create|update|cover|pricing|publish|unpublish|revisions|revision|source|revision-source|list
cafaye upload --file ... --idempotency-key ... [--publish|--dry-run|--stdin]
cafaye upload show --id ...
cafaye token show|rotate|revoke
cafaye update --check
Development
make test
make build
Agent workflow coverage:
- Automated:
make test includes a smoke test for register -> claim -> create -> upload -> inspect -> publish -> unpublish.
- Manual: still verify browser claim handoff (
/claims/:token + sign-in/OAuth) in app QA/system tests.
Release
cleo release plan --version v0.1.0
cleo release cut --version v0.1.0
cleo release publish --version v0.1.0 --final --summary "..." --highlights "..."
cleo release verify --version v0.1.0
GitHub Actions runs:
.github/workflows/release.yml on version tags
.github/workflows/release-validate.yml on published releases to validate installability
Security model
- Store tokens in OS keyring when available.
- Keep non-secrets in
~/.config/cafaye/config.json.
- Use scoped tokens and rotate regularly.
License
MIT
Documentation
¶
There is no documentation for this package.
Source Files
¶
Directories
¶
|
|
|
internal
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Click to show internal directories.
Click to hide internal directories.