# @corespeed/cs 中文文档

规范地址：https://npmcn.com/package/%40corespeed/cs/

版本：0\.15\.0
npm 元数据更新时间：2026-11-12T22:44:21.945Z
中文译文更新时间：2026-11-14T07:24:55.593Z
软件包许可：Apache-2\.0

本文由上游 README 翻译，可能存在偏差，请结合原文核对 API、命令与配置。版权与许可归原作者所有。

原始 npm 页面：https://www.npmjs.com/package/%40corespeed/cs
原文对照：https://npmcn.com/package/%40corespeed/cs/?lang=original
项目主页：https://corespeed.io/docs/cli

## 关键信息（来自 npm 元数据）

- 包体积（解压后）：17.8 kB，5 个文件
- 模块格式：ES Module
- TypeScript 类型：未声明
- Node.js 要求：\>=20
- 运行依赖：0 个
- 首次发布：2026-07-24T01:26:46.734Z
- 最新版本发布：2026-11-12T22:44:21.734Z
- 近 30 天下载量：2130（2026-10-11 至 2026-11-09，npm 官方下载统计）
- 已发布版本数：24（近 12 个月 24 个）

## 中文简介

CoreSpeed CLI —— 签名, 创建 API 密钥, 配置代理, 管理连接器, 绑定此机, 从您的终端调用 CoreSpeed 工具, 并移动文件进出您的驱动器 .

## 安装

```sh
npm install @corespeed/cs
```

也可以使用：`pnpm add @corespeed/cs`、`yarn add @corespeed/cs`、`bun add @corespeed/cs`

## README

# `cs` ——CoreSpeed CLI

命令行工具用于 [核心设置](https://corespeed.io/): 签名通过 浏览器、创建 API 密钥、 写入代理配置、 管理连接器和 您所在组织的 MCP 服务器,从终端调用工具,并移动 进出你的组织驱动器.

## 安装

```bash
# One-off, no install (ideal for agents / CI)
npx @corespeed/cs@latest --help

# Global install
npm install -g @corespeed/cs
cs --help

# Bun equivalents
bunx @corespeed/cs --help
bun install -g @corespeed/cs
```

npm 安装本土 `cs` 用于macOS(苹果硅和英特尔)、Linux(x64和 arm64)和Windows (x64);它的发射机需要Node.js QQ 20 (或 Bun). 其它 系统,例如Arm上的Windows,尚未被支持. 不安装为 `--omit=optional`。 。 。 .

在 Windows PowerShell 中,类型 `npx.cmd` 财务报告和审定财务报表 `cs.cmd`: 一个平原 `npx` 或者说 `cs` 运行 没有 `.ps1` 脚本, Windows 默认拒绝的脚本(“运行的脚本”是 已禁用此系统).

```powershell
npx.cmd @corespeed/cs@latest --help
cs.cmd --help
```

## 快开始

```bash
cs login                 # browser PKCE login; pick an org; stores tokens under ~/.config/cs
cs whoami                # show the current user, org, permissions and key ceiling
cs switch                # change the active org without signing in again
cs keys create my-key    # mint an sk-cs-* API key (shown once); --permission <slug> to give it one you hold
cs mcp-config            # emit MCP client config JSON for the unified /mcp surface
cs drive put ./q3.pdf reports/q3.pdf   # a local file into your Drive; get / ls / mv / rm / share too
cs tie                   # tie this machine: sign in, pick a folder to share, check it end to end
```

运行 `cs --help` 用于完整命令列表`logout`, (中文(简体) ), `keys`, (中文(简体) ), `connectors`, (中文(简体) ), `remote`, (中文(简体) ), `mcp`, (中文(简体) ), `drive`, (中文(简体) ), `tie`, (中文(简体) ), `untie`, (中文(简体) ), `usage`(中文(简体) ).

## 环境

| 变量 | 默认 | 目的 |
| --- | --- | --- |
| `CS_CONFIG_DIR` | `~/.config/cs` | 存储会话的地点,以及 `tie.json` 用这个 |
| `CS_API_KEY` | 未设定 | API 密钥 `cs tie` 其主要——代理人,或你——拥有机器,没有标志 |
| `CS_LOGIN_PORT` | 随机 | 用于登录的回调的固定回回调端口( 在 SSH 上签名) |
| `DO_NOT_TRACK` | 未设定 | 设定为 `1` 送一个空的 `cs` 用户代理而不是产品/版本字符串 |

## 学多点

每个命令、旗帜和退出代码: [(原始内容存档于2018-09-26) (英语). corespeed.io/docs/cli](https://corespeed.io/docs/cli)。 。 。 .

对于 Claude 代码和 Codex , CoreSpeed 插件用一个 此 CLI 的浏览器登录和捆绑技能 : [github.com/corespeed-io/cs (中文(简体) )](https://github.com/corespeed-io/cs)。 。 。 .

## 许可证

[阿帕奇 - 2.0](https://npmcn.com/package/%40corespeed/cs/LICENSE) (原始内容存档于2019-09-29) (英语). CoreSpeed Inc.

## 常见问题

### @corespeed/cs 是什么？

CoreSpeed CLI —— 签名, 创建 API 密钥, 配置代理, 管理连接器, 绑定此机, 从您的终端调用 CoreSpeed 工具, 并移动文件进出您的驱动器 \.

### 如何安装 @corespeed/cs？

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

### @corespeed/cs 支持 TypeScript 吗？

该包的 package\.json 没有声明类型入口。需要类型提示时，可以在 npm 上查找社区维护的 @types/corespeed\_\_cs 是否存在。

### @corespeed/cs 支持 ESM 还是 CommonJS？

以 ES Module 形式发布，推荐使用 import 引入。在 CommonJS 项目中，Node\.js 20\.19\+ / 22\.12\+ 可以直接 require\(\) 不含顶层 await 的 ES Module，更早的版本需要改用动态 import\(\)。

### @corespeed/cs 需要什么版本的 Node\.js？

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

### @corespeed/cs 可以商用吗？

@corespeed/cs 使用 Apache-2\.0 许可。宽松许可：允许商业使用、修改和再分发，并附带明确的专利授权；分发时需保留许可与 NOTICE 文件，修改过的文件要注明改动。以上为概括，不构成法律意见，请以许可原文为准。

### @corespeed/cs 的下载量有多少？

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

### @corespeed/cs 还在维护吗？

最新版本 0\.15\.0 发布于 2026/11/13（1 天前）；至今共发布 24 个版本，其中过去 12 个月发布了 24 个；首次发布于 2026/07/24。发布频率只是参考信号：功能稳定的工具可能很少需要更新，建议结合源码仓库的 issue 和提交记录判断。

