@flexkit/cli

中文文档
0.1.27发布于 2026/11/15MITTypeScriptESM + CJS构建来源已验证近 30 天下载 3562

Flexkit CLI is the command-line interface for managing Flexkit projects from your terminal.

原始使用文档
文档目录6 节
  1. Usage
  2. Documentation
  3. Contributing
  4. Reporting Issues
  5. License
  6. Security
Flexkit logo

Flexkit CLI

NPM version License Join the community on GitHub

Flexkit CLI is the command-line interface for managing Flexkit projects from your terminal.

Use it to authenticate, deploy schemas, work with records, manage automations, skills, knowledge and plugins, talk to the Chat Agent, and script anything else the Flexkit API offers without leaving your terminal.

Usage

Install the CLI globally with npm:

npm install --global @flexkit/cli

Example commands:

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

Every command prints help with examples: flexkit <command> --help. Commands that read data accept --json and print it on stdout, so the output can be piped to jq.

In CI, set FLEXKIT_TOKEN and FLEXKIT_PROJECT_ID instead of logging in. API tokens can't manage tokens or members, pause the project, or read anyone's chats and agent memory; those need flexkit login.

Documentation

For details on how to use Flexkit CLI, check out our documentation.

Contributing

Contributions to Flexkit are welcome and highly appreciated. However, before you jump right into it, we would like you to review our Contribution Guidelines to make sure you have a smooth experience contributing to Flexkit.

Reporting Issues

Found a bug? Have a feature request?

Open an issue with: • Repro steps • Expected vs actual behavior • Screenshots when helpful • Schema snippet (if relevant)

License

This project is licensed under the MIT license.

See LICENSE for more information.


Security

If you believe you have found a security vulnerability in Flexkit, we encourage you to responsibly disclose this and NOT open a public issue.

See SECURITY.md for how to report.

版本与发布记录

@flexkit/cli 共发布 41 个版本,首次发布于 2025/11/28;过去 12 个月发布了 41 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
0.1.27latest2026/11/151 天前
0.1.262026/11/151 天前
0.1.252026/11/141 天前
0.1.242026/11/142 天前
0.1.232026/11/0411 天前
0.1.222026/11/0411 天前

关于 @flexkit/cli 的常见问题

@flexkit/cli 是什么?

Flexkit CLI is the command-line interface for managing Flexkit projects from your terminal.

如何安装 @flexkit/cli?

在项目目录运行 npm install @flexkit/cli,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 flexkit,可以用 npx flexkit 直接运行。

@flexkit/cli 支持 TypeScript 吗?

支持。包内自带 TypeScript 类型声明(package.json 声明了 types 入口),安装后即可获得类型提示,无需再安装 @types 包。

@flexkit/cli 支持 ESM 还是 CommonJS?

同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。

@flexkit/cli 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js >= 18。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@flexkit/cli 可以商用吗?

@flexkit/cli 使用 MIT 许可。宽松许可:允许商业使用、修改和再分发,通常只需在分发时保留原版权与许可声明。以上为概括,不构成法律意见,请以许可原文为准。

@flexkit/cli 的下载量有多少?

根据 npm 官方下载统计,@flexkit/cli 在 2026/10/15 – 2026/11/13 这 30 天内被下载 3,562 次,日均约 119 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@flexkit/cli 还在维护吗?

最新版本 0.1.27 发布于 2026/11/15(1 天前);至今共发布 41 个版本,其中过去 12 个月发布了 41 个;首次发布于 2025/11/28。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。