← 返回
开发者工具 Key 中文

Codeline Cli

Manage codeline via CLI - tools, products, orders, users, coupons. Use when user mentions 'codeline', 'products', 'orders', 'coupons', 'school platform', or...
通过CLI管理codeline,支持工具、商品、订单、用户及优惠券管理。当用户提及'codeline'、'products'、'orders'、'coupons'、'school platform'等时使用。
melvynx
开发者工具 clawhub v0.1.0 1 版本 99843.5 Key: 需要
★ 0
Stars
📥 638
下载
💾 7
安装
1
版本
#latest

概述

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 , --verbose, --no-color, --no-header

版本历史

共 1 个版本

  • v0.1.0 当前
    2026-03-19 22:33 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

ai-intelligence

Exa Cli

melvynx
通过CLI管理Exa AI,支持搜索、内容获取、AI回答及上下文功能。当用户提及'exa'、网页搜索、相似页面或AI回答时使用。
★ 0 📥 680
developer-tools

Gog

steipete
Google Workspace 命令行工具,支持 Gmail、日历、云端硬盘、通讯录、表格和文档。
★ 921 📥 185,920
developer-tools

Github

steipete
使用 `gh` CLI 与 GitHub 交互,通过 `gh issue`、`gh pr`、`gh run` 和 `gh api` 管理议题、PR、CI 运行及高级查询。
★ 672 📥 324,503