# @chabokan\.net/cli 中文文档

规范地址：https://npmcn.com/package/%40chabokan.net/cli/

版本：0\.9\.1
npm 元数据更新时间：2026-09-20T06:31:59.585Z
中文译文更新时间：2026-11-09T17:16:40.001Z
软件包许可：MIT

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

原始 npm 页面：https://www.npmjs.com/package/%40chabokan.net/cli
原文对照：https://npmcn.com/package/%40chabokan.net/cli/?lang=original
项目主页：https://github.com/chabokan/cli
源码仓库：https://github.com/chabokan/cli

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

- 包体积（解压后）：182 kB，61 个文件
- 模块格式：ES Module
- TypeScript 类型：包内自带
- Node.js 要求：\>=20\.17\.0
- 运行依赖：18 个
- 首次发布：2021-08-01T09:08:10.446Z
- 最新版本发布：2026-09-20T06:31:59.308Z
- 近 30 天下载量：2155（2026-10-10 至 2026-11-08，npm 官方下载统计）
- 已发布版本数：28（近 12 个月 3 个）

## 中文简介

PaaS服务公司

## 安装

```sh
npm install @chabokan.net/cli
```

也可以使用：`pnpm add @chabokan.net/cli`、`yarn add @chabokan.net/cli`、`bun add @chabokan.net/cli`

## README

# 查博克语name

部署并管理你的 [查博坎语Name](https://chabokan.net/) 服务从终端.

[![Version](https://img.shields.io/npm/v/@chabokan.net/cli.svg)](https://npmjs.org/package/@chabokan.net/cli) [![Downloads/week](https://img.shields.io/npm/dw/@chabokan.net/cli.svg)](https://npmjs.org/package/@chabokan.net/cli) [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io/)

-   [快开始](https://npmcn.com/package/%40chabokan.net/cli/#readme-quick-start)
-   [使用量](https://npmcn.com/package/%40chabokan.net/cli/#readme-usage)
-   [环境变量](https://npmcn.com/package/%40chabokan.net/cli/#readme-environment-variables)
-   [图标](https://npmcn.com/package/%40chabokan.net/cli/#readme-commands)

# 快开始

```sh
  # 1. Install
  npm install -g @chabokan.net/cli

  # 2. Sign in (or use an API token: chabok login -t <token>)
  chabok login

  # 3. See what you have
  chabok service list

  # 4. Deploy the project in the current directory
  cd my-project
  chabok deploy
```

要反复部署同一项目,而不每次选择服务,请添加一个 `chabok.json` 转到其根:

```json
{
  "service": "my-app"
}
```

礛 `chabok deploy` 一个人就够了.

文件不包含在使用 `.chabokignore`后退为 `.dockerignore` 接下来 `.gitignore`运行 `CHABOK_DEBUG=true` 完全看出来 什么被跳过.

# 使用量

```sh-session
$ npm install -g @chabokan.net/cli
$ chabok COMMAND
running command...
$ chabok (--version|-v)
@chabokan.net/cli/0.9.1 darwin-arm64 node-v22.23.2
$ chabok --help [COMMAND]
USAGE
  $ chabok COMMAND
...
```

# 环境变量

| 变量 | 说明 |
| --- | --- |
| `CHABOK_DEBUG` | 设定为 `true` 以打印全部错误细节(状态代码、端点、错误代码、响应机构),并在部署时打印被忽略的文件日志. |
| `CHABOK_API_URL` | 覆盖 API 基础 URL 。 默认为 `https://apihub.chabokan.net/fa/api/v1/`。 。 。 . |
| `CHABOK_INSECURE_TLS` | 设定为 `true` 以跳过 TLS 证书验证。 仅针对有自签证书的服务器——它会禁用防被截取,因此CLI在活动时都会发出警告. |
| `CHABOK_NO_UPDATE_CHECK` | 设置到任何值以禁用“ 新版本可用” 检查 。 也很荣幸 `NO_UPDATE_NOTIFIER`,当 `CI` 已经设定. |
| `CHABOK_NPM_REGISTRY` | npm 用于更新检查的注册 。 默认为 `https://registry.npmjs.org`。 。 。 . |
| `http_proxy` 编号 : `https_proxy` | 通过 HTTP 代理请求路由 . |

全权证书存于 `~/.chabok.json` 与 `0600` 权限(只能由您读取).

更新检查旨在避免妨碍您:它与登记册联系 大部分每24小时,1.5秒后放弃, 写下通知 因此它不会污染管道输出, 并保持缄默任何失败。 如果你是的话 离线需要1个1.5分的超时时间 之后的运行完全没有.

# 图标

-   [`chabok account info`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-account-info)
-   [`chabok account list`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-account-list)
-   [`chabok account remove`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-account-remove)
-   [`chabok account use`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-account-use)
-   [`chabok autocomplete [SHELL]`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-autocomplete-shell)
-   [`chabok cloudserver create`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-cloudserver-create)
-   [`chabok cloudserver delete`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-cloudserver-delete)
-   [`chabok cloudserver list`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-cloudserver-list)
-   [`chabok cloudserver restart`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-cloudserver-restart)
-   [`chabok cloudserver start`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-cloudserver-start)
-   [`chabok cloudserver stop`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-cloudserver-stop)
-   [`chabok deploy`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-deploy)
-   [`chabok help [COMMAND]`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-help-command)
-   [`chabok login`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-login)
-   [`chabok plugins`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-plugins)
-   [`chabok plugins add PLUGIN`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-plugins-add-plugin)
-   [`chabok plugins:inspect PLUGIN...`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-pluginsinspect-plugin)
-   [`chabok plugins install PLUGIN`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-plugins-install-plugin)
-   [`chabok plugins link PATH`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-plugins-link-path)
-   [`chabok plugins remove [PLUGIN]`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-plugins-remove-plugin)
-   [`chabok plugins reset`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-plugins-reset)
-   [`chabok plugins uninstall [PLUGIN]`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-plugins-uninstall-plugin)
-   [`chabok plugins unlink [PLUGIN]`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-plugins-unlink-plugin)
-   [`chabok plugins update`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-plugins-update)
-   [`chabok service domain add`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-service-domain-add)
-   [`chabok service domain remove`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-service-domain-remove)
-   [`chabok service list`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-service-list)
-   [`chabok service logs`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-service-logs)
-   [`chabok service resize`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-service-resize)
-   [`chabok service restart`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-service-restart)
-   [`chabok service start`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-service-start)
-   [`chabok service stop`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-service-stop)
-   [`chabok version`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-version)
-   [`chabok wallet list`](https://npmcn.com/package/%40chabokan.net/cli/#readme-chabok-wallet-list)

## `chabok account info`

显示活动账户的信息

```
USAGE
  $ chabok account info [-h]

FLAGS
  -h, --help  Show CLI help.

DESCRIPTION
  show information about the active account

EXAMPLES
  Show the active account's details

    $ chabok account info
```

_参见代码 : [src/命令/账户/信息.ts](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/account/info.ts)_

## `chabok account list`

列出您登录到的账户

```
USAGE
  $ chabok account list [-h]

FLAGS
  -h, --help  Show CLI help.

DESCRIPTION
  list the accounts you are logged in to

EXAMPLES
  Show every logged-in account and which one is active

    $ chabok account list
```

_参见代码 : [src/命令/账户/列表.ts](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/account/list.ts)_

## `chabok account remove`

从账户中签出并忘记其存储的代号

```
USAGE
  $ chabok account remove [-h]

FLAGS
  -h, --help  Show CLI help.

DESCRIPTION
  sign out of an account and forget its stored token

EXAMPLES
  Pick the account to sign out of

    $ chabok account remove
```

_参见代码 : [src/commands/ account/ remove.ts (中文(简体) )](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/account/remove.ts)_

## `chabok account use`

切换活动账户

```
USAGE
  $ chabok account use [-h] [-u <value>]

FLAGS
  -h, --help          Show CLI help.
  -u, --user=<value>  email of the account to switch to

DESCRIPTION
  switch the active account

EXAMPLES
  Pick the account to switch to from a list

    $ chabok account use

  Switch to a specific account without prompting

    $ chabok account use --user me@example.com
```

_参见代码 : [src/命令/账户/使用.ts](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/account/use.ts)_

## `chabok autocomplete [SHELL]`

显示自动完成安装指令 .

```
USAGE
  $ chabok autocomplete [SHELL] [-r]

ARGUMENTS
  [SHELL]  (zsh|bash|powershell) Shell type

FLAGS
  -r, --refresh-cache  Refresh cache (ignores displaying instructions)

DESCRIPTION
  Display autocomplete installation instructions.

EXAMPLES
  $ chabok autocomplete

  $ chabok autocomplete bash

  $ chabok autocomplete zsh

  $ chabok autocomplete powershell

  $ chabok autocomplete --refresh-cache
```

_参见代码 : [@oclif/ plugin- auto 完成](https://github.com/oclif/plugin-autocomplete/blob/v3.2.53/src/commands/autocomplete/index.ts)_

## `chabok cloudserver create`

创建新的云服务器( VPS) —— 走过提供者、 位置、 计划、 OS 和钱包

```
USAGE
  $ chabok cloudserver create [-h] [--hostname <value>] [--wallet <value>]

FLAGS
  -h, --help              Show CLI help.
      --hostname=<value>  hostname for the new cloud server
      --wallet=<value>    name of the wallet to pay from

DESCRIPTION
  create a new cloud server (VPS) — walks through provider, location, plan, OS and wallet

EXAMPLES
  Create a cloud server, choosing every option interactively

    $ chabok cloudserver create

  Skip the hostname prompt

    $ chabok cloudserver create --hostname my-vps
```

_参见代码 : [src/命令/云端服务器/创建.ts](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/cloudserver/create.ts)_

## `chabok cloudserver delete`

永久删除云服务器

```
USAGE
  $ chabok cloudserver delete [-h] [--hostname <value>] [-y]

FLAGS
  -h, --help              Show CLI help.
  -y, --yes               skip the confirmation prompt
      --hostname=<value>  hostname of the cloud server to delete

DESCRIPTION
  permanently delete a cloud server

EXAMPLES
  Pick a cloud server from an interactive list, then confirm

    $ chabok cloudserver delete

  Delete a specific cloud server without a confirmation prompt

    $ chabok cloudserver delete --hostname my-vps --yes
```

_参见代码 : [src/commands/cloudserver/delete.ts (中文(简体) )](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/cloudserver/delete.ts)_

## `chabok cloudserver list`

列出您账户上的云服务器( VPS)

```
USAGE
  $ chabok cloudserver list [-h]

FLAGS
  -h, --help  Show CLI help.

DESCRIPTION
  list the cloud servers (VPS) on your account

EXAMPLES
  List every cloud server on the active account

    $ chabok cloudserver list
```

_参见代码 : [src/命令/云端服务器/列表.ts](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/cloudserver/list.ts)_

## `chabok cloudserver restart`

重新启动云服务器

```
USAGE
  $ chabok cloudserver restart [-h] [--hostname <value>]

FLAGS
  -h, --help              Show CLI help.
      --hostname=<value>  hostname of the cloud server to restart

DESCRIPTION
  restart a cloud server

EXAMPLES
  Pick a cloud server from an interactive list

    $ chabok cloudserver restart

  Restart a specific cloud server by hostname

    $ chabok cloudserver restart --hostname my-vps
```

_参见代码 : [src/commands/cloudserver/ recret.ts (中文(简体) )](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/cloudserver/restart.ts)_

## `chabok cloudserver start`

打开云端服务器

```
USAGE
  $ chabok cloudserver start [-h] [--hostname <value>]

FLAGS
  -h, --help              Show CLI help.
      --hostname=<value>  hostname of the cloud server to turn on

DESCRIPTION
  turn on a cloud server

EXAMPLES
  Pick a cloud server from an interactive list

    $ chabok cloudserver start

  Turn on a specific cloud server by hostname

    $ chabok cloudserver start --hostname my-vps
```

_参见代码 : [src/命令/云端服务器/启动.ts](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/cloudserver/start.ts)_

## `chabok cloudserver stop`

关闭云端服务器

```
USAGE
  $ chabok cloudserver stop [-h] [--hostname <value>]

FLAGS
  -h, --help              Show CLI help.
      --hostname=<value>  hostname of the cloud server to turn off

DESCRIPTION
  turn off a cloud server

EXAMPLES
  Pick a cloud server from an interactive list

    $ chabok cloudserver stop

  Turn off a specific cloud server by hostname

    $ chabok cloudserver stop --hostname my-vps
```

_参见代码 : [src/命令/云端服务器/站点.ts](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/cloudserver/stop.ts)_

## `chabok deploy`

上传当前工程并将其部署到服务中

```
USAGE
  $ chabok deploy [-h] [-p <value>] [-s <value>]

FLAGS
  -h, --help             Show CLI help.
  -p, --path=<value>     project directory to upload (defaults to the current directory)
  -s, --service=<value>  name of the service to deploy to

DESCRIPTION
  upload the current project and deploy it to a service

EXAMPLES
  Deploy the current directory, picking the service from a list

    $ chabok deploy

  Deploy the current directory to a named service

    $ chabok deploy --service my-app

  Deploy a project that lives somewhere else

    $ chabok deploy --path ./apps/api --service my-api

  Pin the target service in the project, so plain `deploy` always works

    echo '{"service": "my-app"}' > chabok.json && chabok deploy

  See exactly which files are excluded from the upload

    CHABOK_DEBUG=true chabok deploy -s my-app
```

_参见代码 : [src/命令/部署](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/deploy.ts)_

## `chabok help [COMMAND]`

显示 chabok 的帮助 .

```
USAGE
  $ chabok help [COMMAND...] [-n]

ARGUMENTS
  [COMMAND...]  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for chabok.
```

_参见代码 : [@oclif/plugin-帮助](https://github.com/oclif/plugin-help/blob/6.2.53/src/commands/help.ts)_

## `chabok login`

注册到您的中枢. chabokan.net账户

```
USAGE
  $ chabok login [-h] [-u <value>] [-p <value>] [-t <value>]

FLAGS
  -h, --help              Show CLI help.
  -p, --password=<value>  your password (prompted for if omitted)
  -t, --token=<value>     API token, for non-interactive sign-in
  -u, --username=<value>  your email address

DESCRIPTION
  sign in to your hub.chabokan.net account

EXAMPLES
  Sign in interactively (prompts for email and password)

    $ chabok login

  Sign in with an API token — the right choice for CI

    $ chabok login --token <your-api-token>

  Pass the email up front and be prompted only for the password

    $ chabok login --email me@example.com

  Add a second account (both stay signed in; switch with `account use`)

    $ chabok login --email other@example.com
```

_参见代码 : [src/命令/日志.ts](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/login.ts)_

## `chabok plugins`

列出已安装的插件 .

```
USAGE
  $ chabok plugins [--json] [--core]

FLAGS
  --core  Show core plugins.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  List installed plugins.

EXAMPLES
  $ chabok plugins
```

_参见代码 : [@ oclif/ plugin- plugins (英语)](https://github.com/oclif/plugin-plugins/blob/5.4.85/src/commands/plugins/index.ts)_

## `chabok plugins add PLUGIN`

在 chabok 中安装插件.

```
USAGE
  $ chabok plugins add PLUGIN... [--json] [-f] [-h] [-s | -v]

ARGUMENTS
  PLUGIN...  Plugin to install.

FLAGS
  -f, --force    Force npm to fetch remote resources even if a local copy exists on disk.
  -h, --help     Show CLI help.
  -s, --silent   Silences npm output.
  -v, --verbose  Show verbose npm output.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Installs a plugin into chabok.

  Uses npm to install plugins.

  Installation of a user-installed plugin will override a core plugin.

  Use the CHABOK_NPM_LOG_LEVEL environment variable to set the npm loglevel.
  Use the CHABOK_NPM_REGISTRY environment variable to set the npm registry.

ALIASES
  $ chabok plugins add

EXAMPLES
  Install a plugin from npm registry.

    $ chabok plugins add myplugin

  Install a plugin from a github url.

    $ chabok plugins add https://github.com/someuser/someplugin

  Install a plugin from a github slug.

    $ chabok plugins add someuser/someplugin
```

## `chabok plugins:inspect PLUGIN...`

显示插件的安装属性.

```
USAGE
  $ chabok plugins inspect PLUGIN...

ARGUMENTS
  PLUGIN...  [default: .] Plugin to inspect.

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Displays installation properties of a plugin.

EXAMPLES
  $ chabok plugins inspect myplugin
```

_参见代码 : [@ oclif/ plugin- plugins (英语)](https://github.com/oclif/plugin-plugins/blob/5.4.85/src/commands/plugins/inspect.ts)_

## `chabok plugins install PLUGIN`

在 chabok 中安装插件.

```
USAGE
  $ chabok plugins install PLUGIN... [--json] [-f] [-h] [-s | -v]

ARGUMENTS
  PLUGIN...  Plugin to install.

FLAGS
  -f, --force    Force npm to fetch remote resources even if a local copy exists on disk.
  -h, --help     Show CLI help.
  -s, --silent   Silences npm output.
  -v, --verbose  Show verbose npm output.

GLOBAL FLAGS
  --json  Format output as json.

DESCRIPTION
  Installs a plugin into chabok.

  Uses npm to install plugins.

  Installation of a user-installed plugin will override a core plugin.

  Use the CHABOK_NPM_LOG_LEVEL environment variable to set the npm loglevel.
  Use the CHABOK_NPM_REGISTRY environment variable to set the npm registry.

ALIASES
  $ chabok plugins add

EXAMPLES
  Install a plugin from npm registry.

    $ chabok plugins install myplugin

  Install a plugin from a github url.

    $ chabok plugins install https://github.com/someuser/someplugin

  Install a plugin from a github slug.

    $ chabok plugins install someuser/someplugin
```

_参见代码 : [@ oclif/ plugin- plugins (英语)](https://github.com/oclif/plugin-plugins/blob/5.4.85/src/commands/plugins/install.ts)_

## `chabok plugins link PATH`

将一个插件链接到用于发展的 CLI 中.

```
USAGE
  $ chabok plugins link PATH [-h] [--install] [-v]

ARGUMENTS
  PATH  [default: .] path to plugin

FLAGS
  -h, --help          Show CLI help.
  -v, --verbose
      --[no-]install  Install dependencies after linking the plugin.

DESCRIPTION
  Links a plugin into the CLI for development.

  Installation of a linked plugin will override a user-installed or core plugin.

  e.g. If you have a user-installed or core plugin that has a 'hello' command, installing a linked plugin with a 'hello'
  command will override the user-installed or core plugin implementation. This is useful for development work.


EXAMPLES
  $ chabok plugins link myplugin
```

_参见代码 : [@ oclif/ plugin- plugins (英语)](https://github.com/oclif/plugin-plugins/blob/5.4.85/src/commands/plugins/link.ts)_

## `chabok plugins remove [PLUGIN]`

从 CLI 从插件中删除 .

```
USAGE
  $ chabok plugins remove [PLUGIN...] [-h] [-v]

ARGUMENTS
  [PLUGIN...]  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ chabok plugins unlink
  $ chabok plugins remove

EXAMPLES
  $ chabok plugins remove myplugin
```

## `chabok plugins reset`

删除所有用户安装和链接的插件 .

```
USAGE
  $ chabok plugins reset [--hard] [--reinstall]

FLAGS
  --hard       Delete node_modules and package manager related files in addition to uninstalling plugins.
  --reinstall  Reinstall all plugins after uninstalling.
```

_参见代码 : [@ oclif/ plugin- plugins (英语)](https://github.com/oclif/plugin-plugins/blob/5.4.85/src/commands/plugins/reset.ts)_

## `chabok plugins uninstall [PLUGIN]`

从 CLI 从插件中删除 .

```
USAGE
  $ chabok plugins uninstall [PLUGIN...] [-h] [-v]

ARGUMENTS
  [PLUGIN...]  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ chabok plugins unlink
  $ chabok plugins remove

EXAMPLES
  $ chabok plugins uninstall myplugin
```

_参见代码 : [@ oclif/ plugin- plugins (英语)](https://github.com/oclif/plugin-plugins/blob/5.4.85/src/commands/plugins/uninstall.ts)_

## `chabok plugins unlink [PLUGIN]`

从 CLI 从插件中删除 .

```
USAGE
  $ chabok plugins unlink [PLUGIN...] [-h] [-v]

ARGUMENTS
  [PLUGIN...]  plugin to uninstall

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Removes a plugin from the CLI.

ALIASES
  $ chabok plugins unlink
  $ chabok plugins remove

EXAMPLES
  $ chabok plugins unlink myplugin
```

## `chabok plugins update`

更新已安装的插件 .

```
USAGE
  $ chabok plugins update [-h] [-v]

FLAGS
  -h, --help     Show CLI help.
  -v, --verbose

DESCRIPTION
  Update installed plugins.
```

_参见代码 : [@ oclif/ plugin- plugins (英语)](https://github.com/oclif/plugin-plugins/blob/5.4.85/src/commands/plugins/update.ts)_

## `chabok service domain add`

将自定义域连接到服务

```
USAGE
  $ chabok service domain add [-h] [-s <value>] [-d <value>]

FLAGS
  -d, --domain=<value>   domain name to connect, e.g. www.example.com
  -h, --help             Show CLI help.
  -s, --service=<value>  name of the service to connect the domain to

DESCRIPTION
  connect a custom domain to a service

EXAMPLES
  Pick the service and enter the domain interactively

    $ chabok service domain add

  Connect a domain in one non-interactive command

    $ chabok service domain add -s my-app -d www.example.com
```

_参见代码 : [src/命令/服务/域/add.ts](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/service/domain/add.ts)_

## `chabok service domain remove`

从服务中断开自定义域名

```
USAGE
  $ chabok service domain remove [-h] [-s <value>] [-d <value>]

FLAGS
  -d, --domain=<value>   domain name to disconnect
  -h, --help             Show CLI help.
  -s, --service=<value>  name of the service the domain is connected to

DESCRIPTION
  disconnect a custom domain from a service

EXAMPLES
  Pick the service and enter the domain interactively

    $ chabok service domain remove

  Disconnect a domain in one non-interactive command

    $ chabok service domain remove -s my-app -d www.example.com
```

_参见代码 : [src/commands/ service/domain/remove.ts 页面存档备份,存于互联网档案馆](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/service/domain/remove.ts)_

## `chabok service list`

列出您账户上的服务

```
USAGE
  $ chabok service list [-h]

FLAGS
  -h, --help  Show CLI help.

DESCRIPTION
  list the services on your account

EXAMPLES
  List every service on the active account

    $ chabok service list

  Switch account first, then list that account’s services

    $ chabok account use -u me@example.com && chabok service list
```

_参见代码 : [src/命令/服务/列表.ts](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/service/list.ts)_

## `chabok service logs`

读取服务中的最新日志

```
USAGE
  $ chabok service logs [-h] [-s <value>]

FLAGS
  -h, --help             Show CLI help.
  -s, --service=<value>  name of the service to read logs from

DESCRIPTION
  read the latest logs from a service

EXAMPLES
  Pick a service from an interactive list

    $ chabok service logs

  Read logs for a specific service

    $ chabok service logs --service my-app

  Search the logs for errors

    $ chabok service logs -s my-app | grep -i error

  Save the logs to a file

    $ chabok service logs -s my-app > my-app.log
```

_参见代码 : [src/命令/服务/日志.ts](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/service/logs.ts)_

## `chabok service resize`

更改分配给服务的内存、 CPU 和磁盘

```
USAGE
  $ chabok service resize [-h] [-s <value>] [-r <value>] [-c <value>] [-d <value>]

FLAGS
  -c, --cpu=<value>      CPU cores, in steps of 0.5 (e.g. 0.5, 1, 2)
  -d, --disk=<value>     disk in GB, in steps of 5 (e.g. 5, 10, 30)
  -h, --help             Show CLI help.
  -r, --ram=<value>      RAM in GB, in steps of 0.5 (e.g. 0.5, 1, 2)
  -s, --service=<value>  name of the service to resize

DESCRIPTION
  change the RAM, CPU and disk allocated to a service

EXAMPLES
  Choose the service and every resource interactively

    $ chabok service resize

  Resize a service in one non-interactive command

    $ chabok service resize -s my-app --ram 2 --cpu 1 --disk 10

  Set only the RAM and pick the rest from the prompts

    $ chabok service resize -s my-app --ram 4
```

_参见代码 : [src/命令/服务/调整大小.ts](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/service/resize.ts)_

## `chabok service restart`

重新启动服务

```
USAGE
  $ chabok service restart [-h] [-s <value>]

FLAGS
  -h, --help             Show CLI help.
  -s, --service=<value>  name of the service to restart

DESCRIPTION
  restart a service

EXAMPLES
  Pick a service from an interactive list

    $ chabok service restart

  Restart a specific service by name

    $ chabok service restart --service my-app

  Restart, then tail the logs to confirm it came back up

    $ chabok service restart -s my-app && chabok service logs -s my-app
```

_参见代码 : [src/commands/ service/ restart.ts (中文(简体) )](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/service/restart.ts)_

## `chabok service start`

启动停止服务

```
USAGE
  $ chabok service start [-h] [-s <value>]

FLAGS
  -h, --help             Show CLI help.
  -s, --service=<value>  name of the service to start

DESCRIPTION
  start a stopped service

EXAMPLES
  Pick a service from an interactive list

    $ chabok service start

  Start a specific service by name

    $ chabok service start --service my-app

  Same, using the short flag

    $ chabok service start -s my-app
```

_参见代码 : [src/命令/服务/启动.ts](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/service/start.ts)_

## `chabok service stop`

停止运行服务

```
USAGE
  $ chabok service stop [-h] [-s <value>]

FLAGS
  -h, --help             Show CLI help.
  -s, --service=<value>  name of the service to stop

DESCRIPTION
  stop a running service

EXAMPLES
  Pick a service from an interactive list

    $ chabok service stop

  Stop a specific service by name

    $ chabok service stop --service my-app

  Same, using the short flag

    $ chabok service stop -s my-app
```

_参见代码 : [src/命令/服务/站点.ts](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/service/stop.ts)_

## `chabok version`

```
USAGE
  $ chabok version [--json] [--verbose]

FLAGS
  --verbose  Show additional information about the CLI.

GLOBAL FLAGS
  --json  Format output as json.

FLAG DESCRIPTIONS
  --verbose  Show additional information about the CLI.

    Additionally shows the architecture, node version, operating system, and versions of plugins that the CLI is using.
```

_参见代码 : [@oclif/ plugin-version 页面存档备份,存于互联网档案馆](https://github.com/oclif/plugin-version/blob/2.2.51/src/commands/version.ts)_

## `chabok wallet list`

列出账户上的钱包

```
USAGE
  $ chabok wallet list [-h]

FLAGS
  -h, --help  Show CLI help.

DESCRIPTION
  list the wallets on your account

EXAMPLES
  Show every wallet and its balance

    $ chabok wallet list
```

_参见代码 : [src/commands/wallet/list.ts (中文(简体) )](https://github.com/chabokan/cli/blob/v0.9.1/src/commands/wallet/list.ts)_

## 常见问题

### @chabokan\.net/cli 是什么？

PaaS服务公司

### 如何安装 @chabokan\.net/cli？

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

### @chabokan\.net/cli 支持 TypeScript 吗？

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

### @chabokan\.net/cli 支持 ESM 还是 CommonJS？

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

### @chabokan\.net/cli 需要什么版本的 Node\.js？

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

### @chabokan\.net/cli 可以商用吗？

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

### @chabokan\.net/cli 的下载量有多少？

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

### @chabokan\.net/cli 还在维护吗？

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

