A command-line interface for Kronan. Built with Umbra, it auto-generates commands directly from the Kronan Public API's OpenAPI specification.
curl -fsSL https://raw.githubusercontent.com/thor-coding-cowboys/kronan-cli/main/install.sh | bashSupports macOS (Intel & Apple Silicon) and Linux (x64 & ARM64).
Requires Bun v1.3+:
bun install
bun run build
bun run install-local # installs to ~/.local/bin/kronan- Generate an API token from your Kronan account settings
- Run
kronan auth loginand paste the token when prompted
The token is stored securely in your system keychain. You can update it at any time by running kronan auth login again.
kronan --help # list all available commands
kronan --version # show version
# Examples
kronan me list
kronan products retrieve --sku ABC123
kronan checkout add --sku ABC123 --quantity 2
kronan orders listEvery resource in the Kronan Public API is available as a CLI command. See COMMANDS.md for the full reference.
bun run generate # regenerate CLI from OpenAPI spec (https://api.kronan.is/api/v1/schema/)
bun run lint # run oxlint
bun run format # format with oxfmt
bun test # run tests