Flexkit CLI是从您终端管理Flexkit项目的命令行界面.
使用它来认证,部署计划,与记录合作,管理自动化,技能,知识和插件,与聊天代理商交谈,并脚本Flexkit API提供的其他任何内容而不离开你的终端.
使用量
用 npm 在全球安装 CLI :
npm install --global @flexkit/cli
示例命令:
flexkit login
flexkit link # link this folder to a project; later commands use it
flexkit deploy # deploy the schema from flexkit.config.ts
flexkit schema diff # compare the local schema with the deployed one
flexkit dev # run the tools and skills from flexkit.tools.ts as your local runtime
flexkit records ls product --limit 10
flexkit query '{ products(limit: 5) { _id sku name { default } } }'
flexkit chat "Which orders shipped late this week?"
flexkit automations ls
flexkit runs logs <runId> --follow
flexkit skills pull ./skills # keep skills in git; push them back with `flexkit skills push`
flexkit knowledge add ./docs --wait
flexkit logs --since 1h --follow # API request logs; also `logs webhooks` and `logs llm`
flexkit webhooks ls
flexkit members invite [email protected] --role developer
flexkit tokens create ci --role developer # for FLEXKIT_TOKEN in CI
flexkit api /automations # call any API endpoint with your credentials
每个命令打印都有助于示例: flexkit <command> --help。读取数据时接受的命令 --json 并打印在 stdout上, 这样输出可以管道到 jq。 。 。 .
在CI中,设置 FLEXKIT_TOKEN 财务报告和审定财务报表 FLEXKIT_PROJECT_ID 而不是登录。 API 令牌无法管理令牌或成员,暂停项目,或读取任何人的聊天和代理内存;这些需要 flexkit login。 。 。 .
文档
关于如何使用Flexkit CLI的详细信息,请检查url 文档。 。 。 .
捐款
欢迎并高度赞赏对Flexkit的贡献。 然而,在你跳进它之前, 我们希望你回顾一下我们 贡献准则 确保你有一个平滑的经验 帮助Flexkit.
报告问题
找到窃听器了吗? 有特别请求吗?
打开一个问题: • 重新确定步骤 • 预期与实际行为 • 有帮助的截图 • Schema片段(如果相关)
许可证
本项目根据以下规定获得许可证: 麻省理工学院许可证。 。 。 .
见 自由主义 更多信息.
警卫
如果你相信你在Flexkit发现了安全漏洞 我们鼓励你 负责地披露此事,不公开问题。 。 。 .
见 警卫 如何报告.