Skip to content

settings set ​

更新当前应用的 CLI 设置。

当前支持:

default-environment :未指定 --environment 参数时,相关命令会使用该默认开发环境。

default-site :未指定 --siteUrl 参数时,相关命令会使用该默认站点。

使用 ​

shell
Usage: nexus settings set [options] <setting> <value>

参数 ​

shell
setting        the setting to set
value          the value of the setting

选项 ​

shell
-v, --verbose  enable verbose mode
-h, --help     display help for command

示例 ​

将默认开发环境设置为 development

shell
nexus settings set default-environment development

将默认开发环境设置为 dev1

shell
nexus settings set default-environment dev1

将默认站点设置为 at.pingcode.com

shell
nexus settings set default-site at.pingcode.com

将默认站点设置为 at.alpha.pingcode.live

shell
nexus settings set default-site at.alpha.pingcode.live

default-environment 约束

  • 只能是开发环境,不能是 staging 或 production
  • 长度 1–128 个字符
  • 只能包含字母 A-Z 或 a-z 、数字 0-9 、下划线 _ 和连字符 -

default-site 约束

  • 必须是合法的 PingCode 站点域名,格式为 {subdomain}.pingcode.{tld} 或 {subdomain}.{env}.pingcode.{tld}
  • 合法示例: example.pingcode.com 、 at.alpha.pingcode.live
  • 不合法示例: not-a-valid-site 、带协议的 URL(如 https://example.pingcode.com )

举报邮箱:abuse@worktile.com