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.

Audits

Pass

Install

openclaw skills install codeline-cli

codeline-cli

Setup

If codeline-cli is not installed, install it from GitHub:

npx api2cli install Melvynx/codeline-cli

If codeline-cli is not found, install and build it:

bun --version || curl -fsSL https://bun.sh/install | bash
npx api2cli bundle codeline
npx api2cli link codeline

api2cli link adds ~/.local/bin to PATH automatically. The CLI is available in the next command.

Always use --json flag when calling commands programmatically.

Authentication

codeline-cli auth set "your-token"
codeline-cli auth test

Resources

tools

CommandDescription
codeline-cli tools list --jsonList all available tools
codeline-cli tools run --tool list_products --jsonRun tool by name
codeline-cli tools run --tool get_user --params '{"email":"test@example.com"}' --jsonRun tool with JSON parameters
codeline-cli tools run --tool list_orders --params '{"limit":10}' --fields id,status --jsonRun tool with custom field output

products

CommandDescription
codeline-cli products list --jsonList all products
codeline-cli products list --fields id,name,price --jsonList with specific columns
codeline-cli products get --id abc123 --jsonGet product by ID

orders

CommandDescription
codeline-cli orders list --jsonList all orders
codeline-cli orders list --limit 10 --jsonList orders with max results
codeline-cli orders list --fields id,status,total --jsonList with custom columns
codeline-cli orders get --id abc123 --jsonGet order by ID

users

CommandDescription
codeline-cli users list --jsonList all users
codeline-cli users list --fields id,email,name --jsonList users with columns
codeline-cli users get --id abc123 --jsonGet user by ID
codeline-cli users get --id "test@example.com" --jsonGet user by email address

coupons

CommandDescription
codeline-cli coupons list --jsonList all coupons
codeline-cli coupons list --fields code,discount,type --jsonList with specific columns
codeline-cli coupons create --code SAVE20 --discount 20 --jsonCreate percentage discount (20%)
codeline-cli coupons create --code FLAT10 --discount 10 --type fixed --jsonCreate fixed amount coupon
codeline-cli coupons create --code LAUNCH --discount 50 --max-uses 100 --jsonCreate with usage limit
codeline-cli coupons create --code SPECIAL --discount 15 --expires-at "2026-12-31" --jsonCreate with expiration
codeline-cli coupons create --code PRODUCT5 --discount 5 --product-id xyz789 --jsonCreate for specific product

Global Flags

All commands support: --json, --format <text|json|csv|yaml>, --verbose, --no-color, --no-header