← Back to CLIs

codeline-cli
Manage codeline via CLI - tools, products, orders, users, coupons. Use when user mentions 'codeline', 'products', 'orders', 'coupons', 'school platform', or wants to interact with the Codeline API.
Install
$ npx api2cli install Melvynx/codeline-cliDetails
README
codeline-cli
CLI for the Codeline API - manage products, orders, users, and coupons. Made with api2cli.dev.
Install
npx api2cli install Melvynx/codeline-cli
This clones the repo, builds the CLI, links it to your PATH, and installs the AgentSkill to your coding agents.
Install AgentSkill only
npx skills add Melvynx/codeline-cli
Auth
codeline-cli auth set <token>
codeline-cli auth show # masked
codeline-cli auth show --raw # full token
codeline-cli auth test # verify token works
codeline-cli auth remove # delete saved token
Resources
products
codeline-cli products list
codeline-cli products list --fields "id,name,price"
codeline-cli products get --id <product-id>
orders
codeline-cli orders list
codeline-cli orders list --limit 10
codeline-cli orders get --id <order-id>
users
codeline-cli users list
codeline-cli users get --id <user-id>
codeline-cli users get --id "test@example.com"
coupons
codeline-cli coupons list
codeline-cli coupons create --code SAVE20 --discount 20
codeline-cli coupons create --code FLAT10 --discount 10 --type fixed --max-uses 100
codeline-cli coupons create --code LAUNCH --discount 50 --expires-at "2026-12-31" --product-id <id>
tools
Run API tools directly by name.
codeline-cli tools list
codeline-cli tools list --raw
codeline-cli tools run --tool list_products
codeline-cli tools run --tool get_user --params '{"email":"test@example.com"}'
Global Flags
All commands support: --json, --format <text|json|csv|yaml>, --verbose, --no-color, --no-header