Skip to content

Repository files navigation

kronan-cli

A command-line interface for Kronan. Built with Umbra, it auto-generates commands directly from the Kronan Public API's OpenAPI specification.

Installation

From GitHub Releases

curl -fsSL https://raw.githubusercontent.com/thor-coding-cowboys/kronan-cli/main/install.sh | bash

Supports macOS (Intel & Apple Silicon) and Linux (x64 & ARM64).

Build from source

Requires Bun v1.3+:

bun install
bun run build
bun run install-local  # installs to ~/.local/bin/kronan

Authentication

  1. Generate an API token from your Kronan account settings
  2. Run kronan auth login and 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.

Usage

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 list

Every resource in the Kronan Public API is available as a CLI command. See COMMANDS.md for the full reference.

Development

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

About

No description, website, or topics provided.

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages