@celonis/content-cli

中文文档
1.20.0发布于 2026/11/09MITCommonJS构建来源已验证近 30 天下载 2573

CLI Tool to help manage content in Celonis Platform

原始使用文档
文档目录16 节
  1. Table of Contents
  2. Getting Started
  3. About the Project
  4. Command Graph
  5. Building and Using the Project locally
  6. Prerequisites
  7. Build steps
  8. Running the built CLI
  9. Installing the local build globally
  10. Troubleshooting
  11. Error: Cannot find module '...'
  12. content-cli: command not found
  13. Node.js version errors
  14. Release Process
  15. Contributing
  16. License

Content CLI

Content CLI is a tool to help manage content in Celonis Platform. It provides various commands to help extract content like analyses, packages, assets and others from your Celonis Platform team to your local machine, which you can then push to other teams. This process can be easily achieved by creating profiles for your different teams and execute commands in a profile's context.

Table of Contents

  1. Getting Started
  2. About the Project
  3. Command Graph
  4. Building the Project
  5. Troubleshooting
  6. Release Process
  7. Contributing
  8. License

Getting Started

To get started with using Content CLI, you will need to have node installed in your local machine. Please download the LTS version that is recommended for most users from the node web page here. After installing node you can run the following command in the terminal (cmd for Windows users) to install Content CLI. Note that the same command is used for updating Content CLI too.

npm install -g @celonis/content-cli

You can verify that the installation was successful by running the following command in the terminal, which prints the installed version of Content CLI:

content-cli -V

To get started with using Content CLI, you can follow some examples to manage content that are available as part of our pycelonis examples library here.

About the Project

Content CLI has three core functionalities:

Profile: The CLI connects to the Celonis Platform environments through profiles. For each of the commands you can specify which profile you want to use. This makes it powerful in the sense that you can pull something from let's say team1.cluser1 and push it directly to team2.cluster2 easily. You can create a profile using the following command:

content-cli profile create

Pull: This feature allows you to download content from the Celonis Platform to your local machine. Let's take Studio package as an example. These can be exported in the Celonis Platform as ZIP files that contain all package assets. By using the following command using the package key and profile you have created, you will pull the ZIP file.

content-cli pull package -p <profile-name> --key <package-key>

Example, if you want to pull a package with key "interesting-package" from your profile "my-dev-profile", the command will look like this:

content-cli pull package -p my-dev-profile --key interesting-package

Push: This feature allows you to push a content file to a team in the Celonis Platform. To continue the last example, you can use the following command to push he previously pulled package in another team.

content-cli push package -p <profile-name> --spaceKey <space-key> -f <file-to-push.zip>

Example, if you want to push a package from zipped file "interesting-package.zip" to you team of profile "my-dev-profile" with the space "my-cool-space", the command will look like this:

content-cli push package -p my-dev-profile --spaceKey my-cool-space -f interesting-package.zip

A comprehensive list of Content CLI capabilities can be found in the documentation.

You can still explore the full capabilities of Content CLI and the list of options for the different commands by using the -h option in your command.

content-cli -h
content-cli pull package -h

Command Graph

Open the interactive Command Graph — a searchable visualization of every Content CLI command, grouped by command area, with descriptions and options shown on click. It's served live from the docs/command-graph.html source file via raw.githack.com, so it renders directly in your browser without needing to be downloaded.

Note for contributors: this graph must be kept in sync manually. See How to Add a Command for instructions on updating it whenever commands are added or changed.

Building and Using the Project locally

This tool is tightly connected with the Celonis Platform and all capabilities require to have access to a Celonis Platform Team.

Prerequisites

  • Node.js >=18.20.5 (LTS recommended). Check with node -v.
  • yarn package manager. Install with npm install -g yarn if not already available.

Build steps

git clone https://github.com/celonis/content-cli.git
cd content-cli
yarn install
yarn build

The build compiles TypeScript into the dist/ folder and copies package.json there.

Running the built CLI

You can run the built artifact directly from the dist folder:

node dist/content-cli.js -h

Installing the local build globally

To use your local build as the global content-cli command:

cd dist
npm link

This creates a symbolic link in the global node_modules directory, allowing you to run content-cli from anywhere on your machine. To unlink later, run npm unlink -g @celonis/content-cli.

Troubleshooting

Error: Cannot find module '...'

If you see a Cannot find module error when running content-cli, dependencies may not be installed correctly:

  • Global install: Try updating to the latest version: npm install -g @celonis/content-cli@latest.
  • Local development: Run yarn install from the project root before building.

content-cli: command not found

  • Ensure Node.js is installed and on your PATH (node -v).
  • If installed via npm install -g, check that npm's global bin directory is in your PATH. You can find it with npm bin -g.
  • If using npm link, make sure you ran it from the dist/ directory (not the project root).

Node.js version errors

Content CLI requires Node.js >=18.20.5. If you see compatibility errors, upgrade your Node.js installation. We recommend using nvm to manage Node.js versions:

nvm install --lts
nvm use --lts

Release Process

We manage releases using Github Actions with the Build and Publish Workflow. This action gets executed manually by the Codeowners when there are changes that need to be published. This builds the project and publishes the package to the Github registry. You can install the latest published version of the Content CLI using the following command:

npm i -g @celonis/content-cli

Contributing

We encourage public contributions! Please check CONTRIBUTING.md for details on our code of conduct.

For details on command development, refer to the How to Add a Command guide.

License

Copyright (c) 2021 Celonis SE

This project is licensed under the MIT License - see LICENSE file for details.

版本与发布记录

@celonis/content-cli 共发布 108 个版本,首次发布于 2020/04/16;过去 12 个月发布了 23 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
1.20.0latest2026/11/09今天
1.19.02026/11/063 天前
1.18.12026/11/053 天前
1.18.02026/10/2811 天前
1.17.02026/10/2217 天前
1.16.02026/10/2119 天前

关于 @celonis/content-cli 的常见问题

@celonis/content-cli 是什么?

CLI Tool to help manage content in Celonis Platform

如何安装 @celonis/content-cli?

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

@celonis/content-cli 支持 TypeScript 吗?

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

@celonis/content-cli 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

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

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

@celonis/content-cli 可以商用吗?

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

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

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

@celonis/content-cli 还在维护吗?

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