返回顶部
c

codeline命令行管理

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.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.0
安全检测
已通过
243
下载量
免费
免费
0
收藏
概述
安装方式
版本历史

codeline

codeline-cli

设置

如果 codeline-cli 未安装,请从 GitHub 安装:
bash
npx api2cli install Melvynx/codeline-cli

如果找不到 codeline-cli,请安装并构建:
bash
bun --version || curl -fsSL https://bun.sh/install | bash
npx api2cli bundle codeline
npx api2cli link codeline

api2cli link 会自动将 ~/.local/bin 添加到 PATH 环境变量中。CLI 可在下一个命令中使用。

以编程方式调用命令时,请始终使用 --json 标志。

身份验证

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

资源

工具

命令描述
codeline-cli tools list --json列出所有可用工具
codeline-cli tools run --tool list_products --json
按名称运行工具 | | codeline-cli tools run --tool get_user --params {email:test@example.com} --json | 使用 JSON 参数运行工具 | | codeline-cli tools run --tool list_orders --params {limit:10} --fields id,status --json | 使用自定义字段输出运行工具 |

产品

命令描述
codeline-cli products list --json列出所有产品
codeline-cli products list --fields id,name,price --json
按指定列列出产品 | | codeline-cli products get --id abc123 --json | 按 ID 获取产品 |

订单

命令描述
codeline-cli orders list --json列出所有订单
codeline-cli orders list --limit 10 --json
列出订单并限制最大结果数 | | codeline-cli orders list --fields id,status,total --json | 按自定义列列出订单 | | codeline-cli orders get --id abc123 --json | 按 ID 获取订单 |

用户

命令描述
codeline-cli users list --json列出所有用户
codeline-cli users list --fields id,email,name --json
按列列出用户 | | codeline-cli users get --id abc123 --json | 按 ID 获取用户 | | codeline-cli users get --id test@example.com --json | 按电子邮件地址获取用户 |

优惠券

命令描述
codeline-cli coupons list --json列出所有优惠券
codeline-cli coupons list --fields code,discount,type --json
按指定列列出优惠券 | | codeline-cli coupons create --code SAVE20 --discount 20 --json | 创建百分比折扣(20%) | | codeline-cli coupons create --code FLAT10 --discount 10 --type fixed --json | 创建固定金额优惠券 | | odeline-cli coupons create --code LAUNCH --discount 50 --max-uses 100 --json | 创建带使用限制的优惠券 | | codeline-cli coupons create --code SPECIAL --discount 15 --expires-at 2026-12-31 --json | 创建带过期时间的优惠券 | | codeline-cli coupons create --code PRODUCT5 --discount 5 --product-id xyz789 --json | 为特定产品创建优惠券 |

全局标志

所有命令均支持:--json、--format 、--verbose、--no-color、--no-header

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 codeline-cli-1776087909 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 codeline-cli-1776087909 技能

通过命令行安装

skillhub install codeline-cli-1776087909

下载

⬇ 下载 codeline v0.1.0(免费)

文件大小: 1.65 KB | 发布时间: 2026-4-15 12:13

v0.1.0 最新 2026-4-15 12:13
Initial release of codeline-cli.

- Introduces CLI commands to manage Codeline tools, products, orders, users, and coupons.
- Supports authentication and offers usage examples for each resource.
- Provides flexible command options for listing, getting, and creating items (including coupons).
- Includes global flags for output formatting and verbosity.
- Detailed setup instructions provided for installation and linking.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部