@copado/copado-cli

中文文档
3.15.0发布于 2026/10/08SEE LICENSE IN LICENSE.md近 30 天下载 2764

Deprecated legacy Copado Salesforce CLI plugin. Install Agentia CLI: npm install -g @copado/agentia-cli@beta. Docs: https://developer.copado.com/docs

此软件包已被标记为弃用

@copado/copado-cli is deprecated. Install Agentia CLI with: npm install -g @copado/agentia-cli@beta. Documentation: https://developer.copado.com/docs

原始使用文档
文档目录4 节
  1. Requirements and Set Up
  2. Contributors — sf plugins link (local checkout)
  3. First run (sf CLI)
  4. VS Code extension (experimental)

pipeline status coverage report

Copado CLI

Deprecated: @copado/copado-cli is no longer the supported Copado command-line experience. Install Agentia CLI instead:

npm install -g @copado/agentia-cli@beta

Documentation: https://developer.copado.com/docs

The Copado CLI is a legacy Salesforce CLI plugin. It remains installable for existing workflows, but new development should use Agentia CLI.

The sections below describe legacy plugin installation and contributor setup for this repository.

Requirements and Set Up

Requirements

  • Contributors: Node.js 20 LTS when running npm test / npm run build locally (matches .gitlab-ci.yml and avoids loader issues on newer Node versions).

If you link this repository into the global Salesforce CLI (sf plugins link . from the repo root), generate the command manifest after every successful compile, before (or right after) linking:

npm install
npm run plugins:link-prep
sf plugins unlink @copado/copado-cli 2>/dev/null || true
sf plugins link .

oclif.manifest.json is gitignored; it is produced by oclif manifest and tells the CLI to load lib/commands/**/*.js. If you skip this step, sf may try to JIT-compile TypeScript for the linked plugin and print many TSError: Unable to compile TypeScript warnings (often with an empty detail line), then copado … is not a sf command. After git pull, run npm run plugins:link-prep again, then re-link.

First run (sf CLI)

  1. Authenticate a Salesforce org and set a default (sf org login web / sf config set target-org …).
  2. Link that org to Copado CLI: sf copado auth set -u <username> (or pass the username as a positional argument).
  3. Optional: run sf copado setup to pick a role and create a starter .copado/queries.json (Developer preset).
  4. Prefer canonical topics: sf copado story … (user stories), sf copado auth get, sf copado job get, sf copado env list, sf copado repo list. Legacy work, auth display, job status, environment list, and repository list still work but print a one-line deprecation on stderr (suppressed with --json).

In order to start using the Copado CLI, you need the following elements:

  • Salesforce User and Managed Package licenses.
  • Copado Winter '20 (v15).
  • Copado org credential.
  • Copado license.
  • Branch management pipeline.
  • Salesforce CLI.
  • Git

Legacy plugin installation (deprecated)

Prefer Agentia CLI (npm install -g @copado/agentia-cli@beta) and Copado developer documentation.

If you still need this Salesforce CLI plugin:

  1. Install Salesforce CLI.
  2. Install the plugin: sf plugins install @copado/copado-cli
  3. Link your org: sf copado auth set -u [email protected]

Legacy command reference: CLI Commands.

VS Code extension (experimental)

A sibling package under vscode-extension/ wraps sf copado … for the editor (argv-only subprocess, no Copado Apex REST from the extension). It adds Quick actions (QuickPick over the registry), an activity bar view, Git SCM title shortcuts, a status bar entry, output redaction, and a six-step Getting Started walkthrough (copado.firstRun). See vscode-extension/README.md for trust/cwd behavior, troubleshooting, F5, and copado.salesforceCliPath.

版本与发布记录

@copado/copado-cli 共发布 84 个版本,首次发布于 2019/07/29;过去 12 个月发布了 28 个版本。

版本发布日期距今
3.15.0latest2026/10/081 个月前
3.14.02026/06/294 个月前
3.14.0-alpha.2beta2026/06/244 个月前
3.14.0-alpha.12026/06/244 个月前
3.13.0-alpha.142026/06/234 个月前
3.13.02026/06/224 个月前

关于 @copado/copado-cli 的常见问题

@copado/copado-cli 是什么?

Deprecated legacy Copado Salesforce CLI plugin. Install Agentia CLI: npm install -g @copado/agentia-cli@beta. Docs: https://developer.copado.com/docs注意:该包已被作者标记为弃用——@copado/copado-cli is deprecated. Install Agentia CLI with: npm install -g @copado/agentia-cli@beta. Documentation: https://developer.copado.com/docs

如何安装 @copado/copado-cli?

在项目目录运行 npm install @copado/copado-cli,或使用 pnpm add / yarn add / bun add。

@copado/copado-cli 支持 TypeScript 吗?

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

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

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

@copado/copado-cli 可以商用吗?

@copado/copado-cli 使用 SEE LICENSE IN LICENSE.md 许可。许可条款写在包内的独立文件中,请阅读该文件确认可否商用。以上为概括,不构成法律意见,请以许可原文为准。

@copado/copado-cli 的下载量有多少?

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

@copado/copado-cli 还在维护吗?

最新版本 3.15.0 发布于 2026/10/08(1 个月前);至今共发布 84 个版本,其中过去 12 个月发布了 28 个;首次发布于 2019/07/29。作者已将其标记为弃用,新项目建议寻找替代方案。