cdk8s-cli

中文文档
2.207.76发布于 2026/11/03Apache-2.0CommonJS构建来源已验证

This is the command line tool for Cloud Development Kit (CDK) for Kubernetes (cdk8s).

原始使用文档
文档目录3 节
  1. A command-line-interface for CDK for Kubernetes
  2. Documentation
  3. License

cdk8s-cli

A command-line-interface for CDK for Kubernetes

cdk8s is a software development framework for defining Kubernetes applications using rich object-oriented APIs. It allows developers to leverage the full power of software in order to define abstract components called "constructs" which compose Kubernetes resources or other constructs into higher-level abstractions.

To install the CLI use one of the following methods:

  • Homebrew: brew install cdk8s
  • npm: npm i -g cdk8s-cli
  • yarn: yarn global add cdk8s-cli

Note: This repository is the command-line tool for cdk8s that is published as cdk8s-cli. For more general information about cdk8s, please see cdk8s.io, or visit the umbrella repository located at cdk8s-team/cdk8s.

Documentation

See cdk8s.io.

License

This project is distributed under the Apache License, Version 2.0.

This module is part of the cdk8s project.

版本与发布记录

cdk8s-cli 共发布 2,624 个版本,首次发布于 2020/03/03;过去 12 个月发布了 126 个版本。最新版本附带 npm provenance 构建来源证明,可追溯到公开的 CI 构建记录。

版本发布日期距今
2.207.76latest2026/11/03今天
2.207.752026/10/313 天前
2.207.742026/10/304 天前
2.207.732026/10/295 天前
2.207.722026/10/286 天前
2.207.712026/10/277 天前

其他发布通道:next → 0.33.0-pre.713769883c9b4fe0ec443d0e776155d720b65cb6,latest-1 → 1.196.100。

关于 cdk8s-cli 的常见问题

cdk8s-cli 是什么?

这是Kubernetes (cdk8s)的云开发工具包(CDK)的命令行工具。

如何安装 cdk8s-cli?

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

cdk8s-cli 支持 TypeScript 吗?

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

cdk8s-cli 支持 ESM 还是 CommonJS?

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

cdk8s-cli 需要什么版本的 Node.js?

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

cdk8s-cli 可以商用吗?

cdk8s-cli 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。

cdk8s-cli 还在维护吗?

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