aio-cli-plugin-云层管理器
云管理器插件 Adobe I/O 语录
所需资源
- Adobe I/O 语录
- 节点.js版本相容性 :
- 17.x -- -- 17.0.0以上.
- 使用奇点版本为 没有 建议.
虽然不建议一般使用,但可以在Adobe I/O CLI之外使用这个插件. 见 独立使用 见下文.
安装
$ aio plugins:install @adobe/aio-cli-plugin-cloudmanager
更新
$ aio plugins:update
配置
认证
此 CLI 支持两种认证模式: 基于浏览器的认证模式 和服务账户 。 两者的关键区别在于,当使用基于浏览器的认证时,通过CLI的API调用是作为 你们 并使用您的权限, 而当使用服务账户认证时, 需要单独的服务账户, 而该账户可能拥有单独的权限, 而不是您个人在登录云管理器 UI时的权限 。 一般来说,服务账户认证应主要用于没有机会使用浏览器进行认证的脚本上下文,尽管可能还有其他情况下服务账户方法甚至更适合交互使用.
基于浏览器的认证
基于浏览器的认证从运行此命令开始
aio auth:login
此命令的更多选项可供使用并描述 这里。 。 。 .
此命令将打开浏览器窗口, 您将使用您的 Adobe 身份进行认证 .
除了认证,CLI还需要了解Adobe Organization Identifer(OrgId). 这样做有两种方法:
- 通过运行
aio cloudmanager:org:select并使用交互菜单。 默认情况下, 这将将选定组织存储在当前的工作目录中, 但选择也可以通过通过存储来存储到全球--global(见下文完整命令文件) - 通过设置标识符为配置
cloudmanager_orgid,也就是说.aio config:set cloudmanager_orgid <myorgid>
或者,如果您选择了使用 aio console:org:select,将使用该组织.
服务账户认证
要使用服务账户认证,必须在 Adobe I/O 控制台 它有云管理服务.
所需的服务器对服务器认证类型应该是: 服务账户(JWT/OAuth)。 。 。 . 注: JWT认证模式被贬值,到2025年1月将完全去除. 因此,如果你正在使用 JWT 集成,建议迁移到 OAuth
OAuth 集成的设置
在你创建了集成后 创建一个 config.json 文档,并导航到集成概览页面。 从此页面中,将数值复制到下面描述的文件中.
//config.json
{
"client_id": "value from your CLI integration (String)",
"client_secrets": ["client secret value from your CLI integration (String)"],
"technical_account_id": "value from your CLI integration (String)",
"technical_account_email": "value from your CLI integration (String)",
"ims_org_id": "value from your CLI integration (String)",
"scopes": [
'openid',
'AdobeID',
'read_organizations',
'additional_info.projectedProductContext',
'read_pc.dma_aem_ams',
.
.
'any other scope from your CLI integration (String)'
],
"oauth_enabled": true
}
配置证书 :
aio config:set ims.contexts.aio-cli-plugin-cloudmanager PATH_TO_CONFIG_JSON_FILE --file --json
JWT 集成的设置(已过期)
在你创建了集成后 创建一个 config.json 文档,并导航到集成概览页面。 从此页面中,将数值复制到下面描述的文件中.
//config.json
{
"client_id": "value from your CLI integration (String)",
"client_secret": "value from your CLI integration (String)",
"technical_account_id": "value from your CLI integration (String)",
"ims_org_id": "value from your CLI integration (String)",
"meta_scopes": [
"ent_cloudmgr_sdk"
],
"oauth_enabled": false
}
手头需要的最后一点是用来创建集成的私人证书;你需要的是私钥,而不是公钥. 现在,你准备配置 aio CLI(英语:CLI).
首先,配置证书:
aio config:set ims.contexts.aio-cli-plugin-cloudmanager PATH_TO_CONFIG_JSON_FILE --file --json
然后,配置私有证书:
aio config:set ims.contexts.aio-cli-plugin-cloudmanager.private_key PATH_TO_PRIVATE_KEY_FILE --file
关于在 Adobe I/O 控制台中设置 Cloud 管理器集成的更多信息可见 这里。 。 。 .
有关国际监测系统背景的更多信息,可在以下文件中查阅: @adobe/aio-lib-ims (英语)。 。 。 .
旧服务账户配置
此插件的前几个版本使用了配置密钥 jwt-auth。执行时,插件会自动迁移这些配置。 它会 没有 但删除旧配置, 您可能想要运行
aio config:del jwt-auth
要清理任何折叠配置, 除非需要用于其他的 aio 插件 .
这个迁移过程默认是沉默的. 您可以通过运行环境变量的任何命令来启用调试日志 LOG_LEVEL 设置为 debug,比如说.
LOG_LEVEL=debug aio cloudmanager:list-programs
设置默认程序
如果想要避免反复通过程序ID旗,可以使用:
$ aio config:set cloudmanager_programid PROGRAMID
举个例子
$ aio config:set cloudmanager_programid 4
设置默认环境
如果您想要避免反复传递环境ID参数,可以使用:
$ aio config:set cloudmanager_environmentid ENVIRONMENTID
举个例子
$ aio config:set cloudmanager_environmentid 7
仅用于环境Id所在的命令 第一个 参数.
代理支持
使用时 Adobe I/O 语录 8.2.0或更高,此插件可以支持HTTP(S)代理. 见 adobe I/O CLI 发布公告 更多信息.
退出代码
主要用于脚本应用目的,使用以下出站代码: 1
- 1 - 发生了一般错误
- 2 - 发生了配置错误
- 3 - 发生了与所提供的旗帜或参数有关的校验错误
- 10 - IMS 认证发生错误
- 30 - 云管理器 SDK出错
报告问题
一般来说,在本项目中,应该使用所提供的问题模板之一,通过GitHub问题报告与该插件有关的问题。 由云管理器API(即如上所描述的有出站代码30的出站错误)产生的出站错误应向Adobe支持报告. 出错输出一般会包含URL,响应码等为识别和解决问题所需要调试的信息.
图标
aio cloudmanager:content-flow:cancel FLOWIDaio cloudmanager:content-flow:create ENVIRONMENTID CONTENTSETID DESTENVIRONMENTID INCLUDEACL [TIER]aio cloudmanager:content-flow:get CONTENTFLOWIDaio cloudmanager:content-set:delete CONTENTSETIDaio cloudmanager:content-set:get CONTENTSETIDaio cloudmanager:current-execution:advance PIPELINEIDaio cloudmanager:current-execution:cancel PIPELINEIDaio cloudmanager:current-execution:get PIPELINEIDaio cloudmanager:environment:bind-ip-allowlist ENVIRONMENTID IPALLOWLISTID SERVICEaio cloudmanager:environment:delete ENVIRONMENTIDaio cloudmanager:environment:download-logs ENVIRONMENTID SERVICE NAME [DAYS]aio cloudmanager:environment:list-available-log-options ENVIRONMENTIDaio cloudmanager:environment:list-ip-allowlist-bindings ENVIRONMENTIDaio cloudmanager:environment:list-variables ENVIRONMENTIDaio cloudmanager:environment:open-developer-console ENVIRONMENTIDaio cloudmanager:environment:set-variables ENVIRONMENTIDaio cloudmanager:environment:tail-log ENVIRONMENTID SERVICE NAMEaio cloudmanager:environment:unbind-ip-allowlist ENVIRONMENTID IPALLOWLISTID SERVICEaio cloudmanager:execution:get-quality-gate-results PIPELINEID EXECUTIONID ACTIONaio cloudmanager:execution:get-step-details PIPELINEID EXECUTIONIDaio cloudmanager:execution:get-step-log PIPELINEID EXECUTIONID ACTIONaio cloudmanager:execution:tail-step-log PIPELINEID ACTIONaio cloudmanager:ip-allowlist:bind IPALLOWLISTID ENVIRONMENTID SERVICEaio cloudmanager:ip-allowlist:create NAMEaio cloudmanager:ip-allowlist:delete IPALLOWLISTIDaio cloudmanager:ip-allowlist:get-binding-details IPALLOWLISTIDaio cloudmanager:ip-allowlist:unbind IPALLOWLISTID ENVIRONMENTID SERVICEaio cloudmanager:ip-allowlist:update IPALLOWLISTIDaio cloudmanager:list-programsaio cloudmanager:org:listaio cloudmanager:org:select [ORGID]aio cloudmanager:pipeline:create-execution PIPELINEIDaio cloudmanager:pipeline:delete PIPELINEIDaio cloudmanager:pipeline:invalidate-cache PIPELINEIDaio cloudmanager:pipeline:list-executions PIPELINEIDaio cloudmanager:pipeline:list-variables PIPELINEIDaio cloudmanager:pipeline:set-variables PIPELINEIDaio cloudmanager:pipeline:update PIPELINEIDaio cloudmanager:program:delete PROGRAMIDaio cloudmanager:program:list-content-flowsaio cloudmanager:program:list-content-setsaio cloudmanager:program:list-current-executionsaio cloudmanager:program:list-environmentsaio cloudmanager:program:list-ip-allowlistsaio cloudmanager:program:list-pipelines
aio cloudmanager:content-flow:cancel FLOWID
取消指定的流量 。 流量必须运行被取消 .
USAGE
$ aio cloudmanager:content-flow:cancel FLOWID
ARGUMENTS
FLOWID the content flow id
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:cancel-content-flow
参见代码 : src/commands/cloudmanager/content-flow/cancel.js (中文(简体) )
aio cloudmanager:content-flow:create ENVIRONMENTID CONTENTSETID DESTENVIRONMENTID INCLUDEACL [TIER]
创建内容流
USAGE
$ aio cloudmanager:content-flow:create ENVIRONMENTID CONTENTSETID DESTENVIRONMENTID INCLUDEACL [TIER]
ARGUMENTS
ENVIRONMENTID the environment id
CONTENTSETID Id of content set to use
DESTENVIRONMENTID The destination environment id
INCLUDEACL Include ACLs
TIER [default: author] The tier, for example author
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:create-content-flow
参见代码 : src/commands/cloudmanager/content-flow/create.js 互联网档案馆的存檔,存档日期2013-12-20
aio cloudmanager:content-flow:get CONTENTFLOWID
获取内容流
USAGE
$ aio cloudmanager:content-flow:get CONTENTFLOWID
ARGUMENTS
CONTENTFLOWID the content flow id
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:get-content-flow
参见代码 : src/commands/cloudmanager/content-flow/get.js (中文(简体) )
aio cloudmanager:content-set:delete CONTENTSETID
删除指定的内容集 .
USAGE
$ aio cloudmanager:content-set:delete CONTENTSETID
ARGUMENTS
CONTENTSETID the content set id
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:delete-content-set
参见代码 : src/commands/cloudmanager/content-set/delete.js (中文(简体) )
aio cloudmanager:content-set:get CONTENTSETID
获取内容设置
USAGE
$ aio cloudmanager:content-set:get CONTENTSETID
ARGUMENTS
CONTENTSETID the content set id
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:get-content-set
参见代码 : sc/命令/云管理器/内容集/get.js
aio cloudmanager:current-execution:advance PIPELINEID
推进当前管道执行,要么凌驾于等待质量门之上,要么推进批准步骤
USAGE
$ aio cloudmanager:current-execution:advance PIPELINEID
ARGUMENTS
PIPELINEID the pipeline id
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:advance-current-execution
参见代码 : src/commands/cloudmanager/当前执行/推进.js
aio cloudmanager:current-execution:cancel PIPELINEID
取消当前管道执行, 要么取消当前步骤, 拒绝等待质量门, 要么拒绝批准步骤
USAGE
$ aio cloudmanager:current-execution:cancel PIPELINEID
ARGUMENTS
PIPELINEID the pipeline id
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:cancel-current-execution
参见代码 : src/commands/cloudmanager/当前执行/终止
aio cloudmanager:current-execution:get PIPELINEID
获得管道执行
USAGE
$ aio cloudmanager:current-execution:get PIPELINEID
ARGUMENTS
PIPELINEID the pipeline id
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:get-current-execution
参见代码 : src/commands/云端管理器/当前执行/get.js
aio cloudmanager:environment:bind-ip-allowlist ENVIRONMENTID IPALLOWLISTID SERVICE
将 IP 允许列表绑入环境
USAGE
$ aio cloudmanager:environment:bind-ip-allowlist ENVIRONMENTID IPALLOWLISTID SERVICE
ARGUMENTS
ENVIRONMENTID the environment id
IPALLOWLISTID the IP allowlist id
SERVICE (author|publish|preview) the service name
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
参见代码 : src/commands/cloudmanager/environment/bind-ip-allowlist.js (中文(简体) )
aio cloudmanager:environment:delete ENVIRONMENTID
删除环境
USAGE
$ aio cloudmanager:environment:delete ENVIRONMENTID
ARGUMENTS
ENVIRONMENTID the environment id
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:delete-environment
参见代码 : src/commands/云层管理员/环境/删除.js
aio cloudmanager:environment:download-logs ENVIRONMENTID SERVICE NAME [DAYS]
下载指定环境、服务和日志名称的日志文件,为期一天或多天
USAGE
$ aio cloudmanager:environment:download-logs ENVIRONMENTID SERVICE NAME [DAYS]
ARGUMENTS
ENVIRONMENTID the environment id
SERVICE the service
NAME the log name
DAYS [default: 1] the number of days
OPTIONS
-o, --outputDirectory=outputDirectory the output directory. If not set, defaults to the current directory.
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config
value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:download-logs
参见代码 : src/commands/ cloudmanager/ 环境/下載-logs.js (中文(简体) )
aio cloudmanager:environment:list-available-log-options ENVIRONMENTID
列出 Cloud 管理器程序中环境的现有日志选项
USAGE
$ aio cloudmanager:environment:list-available-log-options ENVIRONMENTID
ARGUMENTS
ENVIRONMENTID the environment id
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:list-available-log-options
参见代码 : src/commands/cloudmanager/environment/list-coption-log-options.js 互联网档案馆的存檔,存档日期2015-12-02
aio cloudmanager:environment:list-ip-allowlist-bindings ENVIRONMENTID
列表 IP 允许列表绑定到环境
USAGE
$ aio cloudmanager:environment:list-ip-allowlist-bindings ENVIRONMENTID
ARGUMENTS
ENVIRONMENTID the environment id
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:environment:list-bound-ip-allowlists
参见代码 : src/commands/cloudmanager/ environment/list-ip-allowlist-binds.js 互联网档案馆的存檔,存档日期2013-12-20
aio cloudmanager:environment:list-variables ENVIRONMENTID
列出环境上设置的变量
USAGE
$ aio cloudmanager:environment:list-variables ENVIRONMENTID
ARGUMENTS
ENVIRONMENTID the environment id
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:list-environment-variables
参见代码 : src/commands/cloudmanager/ 环境/列表可变.js
aio cloudmanager:environment:open-developer-console ENVIRONMENTID
在浏览器中打开开发者控制台(如果有的话)
USAGE
$ aio cloudmanager:environment:open-developer-console ENVIRONMENTID
ARGUMENTS
ENVIRONMENTID the environment id
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:open-developer-console
参见代码 : src/commands/cloudmanager/environment/open-developer-console.js (中文(简体) )
aio cloudmanager:environment:set-variables ENVIRONMENTID
设置环境上的变量。 这些是运行在运行时环境中的组件可用的运行时变量. 使用可变自备管来设置管道上的构建时变量.
USAGE
$ aio cloudmanager:environment:set-variables ENVIRONMENTID
ARGUMENTS
ENVIRONMENTID the environment id
OPTIONS
-d, --delete=delete variables/secrets to delete
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-s, --secret=secret secret values in KEY VALUE format
-v, --variable=variable variable values in KEY VALUE format
-y, --yaml output in yaml format
--authorDelete=authorDelete variables/secrets to delete for author service
--authorSecret=authorSecret secret values in KEY VALUE format for author service
--authorVariable=authorVariable variable values in KEY VALUE format for author service
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
--jsonFile=jsonFile if set, read variables from a JSON array provided as a file; variables set through
--variable or --secret flag will take precedence
--jsonStdin if set, read variables from a JSON array provided as standard input; variables set
through --variable or --secret flag will take precedence
--previewDelete=previewDelete variables/secrets to delete for preview service
--previewSecret=previewSecret secret values in KEY VALUE format for preview service
--previewVariable=previewVariable variable values in KEY VALUE format for preview service
--publishDelete=publishDelete variables/secrets to delete for publish service
--publishSecret=publishSecret secret values in KEY VALUE format for publish service
--publishVariable=publishVariable variable values in KEY VALUE format for publish service
--strict performs strict validation of internal variables. Can also be enabled by setting
configuration property cloudmanager.environmentVariables.strictValidation to a
truthy value.
--yamlFile=yamlFile if set, read variables from a YAML array provided as a file; variables set through
--variable or --secret flag will take precedence
--yamlStdin if set, read variables from a YAML array provided as standard input; variables set
through --variable or --secret flag will take precedence
ALIASES
$ aio cloudmanager:set-environment-variables
参见代码 : src/commands/cloudmanager/ 环境/ set-可变.js
aio cloudmanager:environment:tail-log ENVIRONMENTID SERVICE NAME
输出指定环境、服务和日志名称的日志数据流
USAGE
$ aio cloudmanager:environment:tail-log ENVIRONMENTID SERVICE NAME
ARGUMENTS
ENVIRONMENTID the environment id
SERVICE the service
NAME the log name
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:tail-logs
$ aio cloudmanager:tail-log
参见代码 : src/commands/ cloudmanager/ 环境/尾-log.js
aio cloudmanager:environment:unbind-ip-allowlist ENVIRONMENTID IPALLOWLISTID SERVICE
将 IP 允许列表绑入环境
USAGE
$ aio cloudmanager:environment:unbind-ip-allowlist ENVIRONMENTID IPALLOWLISTID SERVICE
ARGUMENTS
ENVIRONMENTID the environment id
IPALLOWLISTID the IP allowlist id
SERVICE (author|publish|preview) the service name
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
参见代码 : src/commands/cloudmanager/environment/unbind-ip-allowlist.js 页面存档备份,存于互联网档案馆
aio cloudmanager:execution:get-quality-gate-results PIPELINEID EXECUTIONID ACTION
获得质量门结果
USAGE
$ aio cloudmanager:execution:get-quality-gate-results PIPELINEID EXECUTIONID ACTION
ARGUMENTS
PIPELINEID the pipeline id
EXECUTIONID the execution id
ACTION (codeQuality|security|performance|contentAudit|experienceAudit) the step action
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:get-quality-gate-results
参见代码 : src/commands/cloudmanager/execution/质量门-结果.js
aio cloudmanager:execution:get-step-details PIPELINEID EXECUTIONID
获取执行步骤细节
USAGE
$ aio cloudmanager:execution:get-step-details PIPELINEID EXECUTIONID
ARGUMENTS
PIPELINEID the pipeline id
EXECUTIONID the execution id
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:get-execution-step-details
参见代码 : src/commands/cloudmanager/execution/get-step-details.js 页面存档备份,存于互联网档案馆
aio cloudmanager:execution:get-step-log PIPELINEID EXECUTIONID ACTION
获取步骤日志
USAGE
$ aio cloudmanager:execution:get-step-log PIPELINEID EXECUTIONID ACTION
ARGUMENTS
PIPELINEID the pipeline id
EXECUTIONID the execution id
ACTION (build|codeQuality|devDeploy|stageDeploy|prodDeploy|buildImage) the step action
OPTIONS
-f, --file=file the alternative log file name. currently only `sonarLogFile` is available (for the
codeQuality step)
-o, --output=output the output file. If not set, uses standard output.
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:get-execution-step-log
参见代码 : src/commands/cloudmanager/execution/get-step-log.js (英语)
aio cloudmanager:execution:tail-step-log PIPELINEID ACTION
尾端步骤日志
USAGE
$ aio cloudmanager:execution:tail-step-log PIPELINEID ACTION
ARGUMENTS
PIPELINEID the pipeline id
ACTION (build) [default: build] the step action
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
参见代码 : src/commands/cloudmanager/execution/tail-step-log.js 页面存档备份,存于互联网档案馆
aio cloudmanager:ip-allowlist:bind IPALLOWLISTID ENVIRONMENTID SERVICE
将 IP 允许列表绑入环境
USAGE
$ aio cloudmanager:ip-allowlist:bind IPALLOWLISTID ENVIRONMENTID SERVICE
ARGUMENTS
IPALLOWLISTID the IP allowlist id
ENVIRONMENTID the environment id
SERVICE (author|publish|preview) the service name
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
参见代码 : src/commands/cloudmanager/ip-allowlist/bind.js (英语)
aio cloudmanager:ip-allowlist:create NAME
创建 IP 许可列表
USAGE
$ aio cloudmanager:ip-allowlist:create NAME
ARGUMENTS
NAME the name to create
OPTIONS
-c, --cidr=cidr (required) a CIDR block
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
参见代码 : src/commands/cloudmanager/ip-allowlist/create.js 互联网档案馆的存檔,存档日期2013-12-21
aio cloudmanager:ip-allowlist:delete IPALLOWLISTID
删除 IP 许可列表
USAGE
$ aio cloudmanager:ip-allowlist:delete IPALLOWLISTID
ARGUMENTS
IPALLOWLISTID the id of the allowlist to delete
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
参见代码 : src/commands/cloudmanager/ip-allowlist/delete.js (英语)
aio cloudmanager:ip-allowlist:get-binding-details IPALLOWLISTID
列出关于 IP 许可列表绑定的详细信息
USAGE
$ aio cloudmanager:ip-allowlist:get-binding-details IPALLOWLISTID
ARGUMENTS
IPALLOWLISTID the id of the allowlist
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
参见代码 : src/commands/cloudmanager/ip-allowlist/get-binding-details.js 互联网档案馆的存檔,存档日期2013-12-11
aio cloudmanager:ip-allowlist:unbind IPALLOWLISTID ENVIRONMENTID SERVICE
删除 IP 允许列表绑定
USAGE
$ aio cloudmanager:ip-allowlist:unbind IPALLOWLISTID ENVIRONMENTID SERVICE
ARGUMENTS
IPALLOWLISTID the IP allowlist id
ENVIRONMENTID the environment id
SERVICE (author|publish|preview) the service name
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
参见代码 : src/commands/cloudmanager/ip-allowlist/unbind.js 互联网档案馆的存檔,存档日期2013-12-02
aio cloudmanager:ip-allowlist:update IPALLOWLISTID
替换 CIDR 块来更新 IP 允许列表
USAGE
$ aio cloudmanager:ip-allowlist:update IPALLOWLISTID
ARGUMENTS
IPALLOWLISTID the id of the allowlist to update
OPTIONS
-c, --cidr=cidr (required) a CIDR block
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
参见代码 : src/commands/cloudmanager/ip-allowlist/update.js 页面存档备份,存于互联网档案馆
aio cloudmanager:list-programs
列出云管理器中可用的程序
USAGE
$ aio cloudmanager:list-programs
OPTIONS
-e, --enabledonly only output Cloud Manager-enabled programs
-j, --json output in json format
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
参见代码 : src/commands/cloudmanager/list-programs.js 互联网档案馆的存檔,存档日期2013-12-02
aio cloudmanager:org:list
列出授权当前用户使用云管理器的组织
USAGE
$ aio cloudmanager:org:list
OPTIONS
-j, --json output in json format
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
参见代码 : scrc/commands/cloudmanager/org/list.js 互联网档案馆的存檔,存档日期2013-12-21
aio cloudmanager:org:select [ORGID]
选择授权当前用户使用 Cloud 管理器的组织
USAGE
$ aio cloudmanager:org:select [ORGID]
ARGUMENTS
ORGID the org id to store in configuration
OPTIONS
--global stores selected organization in global configuration
参见代码 : src/commands/cloudmanager/org/select.js (英语)
aio cloudmanager:pipeline:create-execution PIPELINEID
启动管道执行
USAGE
$ aio cloudmanager:pipeline:create-execution PIPELINEID
ARGUMENTS
PIPELINEID the pipeline id
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--[no-]emergency create the execution in emergency mode. emergency mode will skip certain steps and is
only available to select AMS customers.
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:create-execution
$ aio cloudmanager:start-execution
参见代码 : src/commands/cloudmanager/管线/创建-执行.js
aio cloudmanager:pipeline:delete PIPELINEID
删除管道
USAGE
$ aio cloudmanager:pipeline:delete PIPELINEID
ARGUMENTS
PIPELINEID the pipeline id
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:delete-pipeline
参见代码 : src/commands/cloudmanager/管线/去除.js
aio cloudmanager:pipeline:invalidate-cache PIPELINEID
无效的管道缓存
USAGE
$ aio cloudmanager:pipeline:invalidate-cache PIPELINEID
ARGUMENTS
PIPELINEID the pipeline id
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
参见代码 : src/commands/cloudmanager/管线/无效-cache.js
aio cloudmanager:pipeline:list-executions PIPELINEID
清单 输油管处决
USAGE
$ aio cloudmanager:pipeline:list-executions PIPELINEID
ARGUMENTS
PIPELINEID the pipeline id
OPTIONS
-j, --json output in json format
-l, --limit=limit Specify number of executions to return (defaults to 20)
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
参见代码 : src/commands/cloudmanager/pipeline/list-executions.js 互联网档案馆的存檔,存档日期2013-12-11
aio cloudmanager:pipeline:list-variables PIPELINEID
列出管道上设置的变量
USAGE
$ aio cloudmanager:pipeline:list-variables PIPELINEID
ARGUMENTS
PIPELINEID the pipeline id
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:list-pipeline-variables
参见代码 : src/commands/cloudmanager/管线/列表可变.js
aio cloudmanager:pipeline:set-variables PIPELINEID
设置管道上的变量。 这些是建设过程中可用的建设时间变量. 使用设置环境变量在环境中设置运行时间变量.
USAGE
$ aio cloudmanager:pipeline:set-variables PIPELINEID
ARGUMENTS
PIPELINEID the pipeline id
OPTIONS
-d, --delete=delete variables/secrets to delete
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid'
config value
-s, --secret=secret secret values in KEY VALUE format
-v, --variable=variable variable values in KEY VALUE format
-y, --yaml output in yaml format
--buildDelete=buildDelete variables/secrets to delete for build service
--buildSecret=buildSecret secret values in KEY VALUE format for build service
--buildVariable=buildVariable variable values in KEY VALUE format for build service
--functionalTestDelete=functionalTestDelete variables/secrets to delete for functionalTest service
--functionalTestSecret=functionalTestSecret secret values in KEY VALUE format for functionalTest service
--functionalTestVariable=functionalTestVariable variable values in KEY VALUE format for functionalTest service
--imsContextName=imsContextName the alternate IMS context name to use instead of
aio-cli-plugin-cloudmanager
--jsonFile=jsonFile if set, read variables from a JSON array provided as a file;
variables set through --variable or --secret flag will take
precedence
--jsonStdin if set, read variables from a JSON array provided as standard input;
variables set through --variable or --secret flag will take
precedence
--loadTestDelete=loadTestDelete variables/secrets to delete for loadTest service
--loadTestSecret=loadTestSecret secret values in KEY VALUE format for loadTest service
--loadTestVariable=loadTestVariable variable values in KEY VALUE format for loadTest service
--uiTestDelete=uiTestDelete variables/secrets to delete for uiTest service
--uiTestSecret=uiTestSecret secret values in KEY VALUE format for uiTest service
--uiTestVariable=uiTestVariable variable values in KEY VALUE format for uiTest service
--yamlFile=yamlFile if set, read variables from a YAML array provided as a file;
variables set through --variable or --secret flag will take
precedence
--yamlStdin if set, read variables from a YAML array provided as standard input;
variables set through --variable or --secret flag will take
precedence
ALIASES
$ aio cloudmanager:set-pipeline-variables
参见代码 : src/commands/cloudmanager/管线/套可变.js
aio cloudmanager:pipeline:update PIPELINEID
更新管道
USAGE
$ aio cloudmanager:pipeline:update PIPELINEID
ARGUMENTS
PIPELINEID the pipeline id
OPTIONS
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config
value
--branch=branch the new branch
--devEnvironmentId=devEnvironmentId the new dev environment id
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
--prodEnvironmentId=prodEnvironmentId the new prod environment id
--repositoryId=repositoryId the new repository id
--stageEnvironmentId=stageEnvironmentId the new stage environment id
--tag=tag the new tag
ALIASES
$ aio cloudmanager:update-pipeline
参见代码 : src/commands/cloudmanager/管线/上行.js
aio cloudmanager:program:delete PROGRAMID
删除程序
USAGE
$ aio cloudmanager:program:delete PROGRAMID
ARGUMENTS
PROGRAMID the program id
OPTIONS
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:delete-program
参见代码 : src/commands/cloudmanager/program/delete.js (英语)
aio cloudmanager:program:list-content-flows
列表云管理器程序中可用的内容流
USAGE
$ aio cloudmanager:program:list-content-flows
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:list-content-flows
参见代码 : src/commands/cloudmanager/program/list-content-flows.js (中文(简体) )
aio cloudmanager:program:list-content-sets
列表云管理程序可用的内容集
USAGE
$ aio cloudmanager:program:list-content-sets
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:list-content-sets
参见代码 : src/commands/cloudmanager/program/list-content-sets.js (中文(简体) )
aio cloudmanager:program:list-current-executions
正在运行的处决列表
USAGE
$ aio cloudmanager:program:list-current-executions
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:list-current-executions
参见代码 : src/commands/cloudmanager/program/list-当前执行.js
aio cloudmanager:program:list-environments
列出云管理器程序中可用的环境
USAGE
$ aio cloudmanager:program:list-environments
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:list-environments
参见代码 : src/commands/云管理器/程序/列表-环境.js
aio cloudmanager:program:list-ip-allowlists
列出云管理器程序中可用的 IP 允许列表
USAGE
$ aio cloudmanager:program:list-ip-allowlists
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
参见代码 : src/commands/cloudmanager/program/list-ip-allowlists.js (中文(简体) )
aio cloudmanager:program:list-pipelines
列出云管理器程序中可用的管道
USAGE
$ aio cloudmanager:program:list-pipelines
OPTIONS
-j, --json output in json format
-p, --programId=programId the programId. if not specified, defaults to 'cloudmanager_programid' config value
-y, --yaml output in yaml format
--imsContextName=imsContextName the alternate IMS context name to use instead of aio-cli-plugin-cloudmanager
ALIASES
$ aio cloudmanager:list-pipelines
参见代码 : src/commands/cloudmanager/program/list-pipelines.js (中文(简体) )
权限
有关 Cloud 管理器 API 权限的信息可在 https://www.adobe.io/experience-cloud/cloud-manager/guides/getting-started/permissions/ 互联网档案馆的存檔,存档日期2013-12-02查看
特定命令所需的权限,您也可以使用旗帜运行任何命令 --permissions,比如说.
$ aio cloudmanager:current-execution:advance --permissions
To execute cloudmanager:current-execution:advance, one of the following product profiles is required: Business Owner, Deployment Manager, Program Manager
来自标准输入的变量
这个 environment:set-variables 财务报告和审定财务报表 pipeline:set-variables 命令允许将变量作为旗子传递给命令,并作为作为标准输入或文件提供的JSON数组。 该阵列中的对象预计有: name, (中文(简体) ), value,以及 type 键与 Cloud 管理器 API 相同的语法。 删除一个变量可以通过通过空来完成 value。例如,给定一个名为 variables.json 包含以下内容:
[
{
"name" : "MY_VARIABLE",
"value" : "something",
"type" : "string"
},
{
"name" : "MY_SECRET_VARIABLE",
"value" : "shhhh",
"type" : "secretString"
}
]
这可以传给 pipeline:set-variables 命令使用 shell 命令
$ cat variables.json | aio cloudmanager:pipeline:set-variables 1 --jsonStdin
或者说
$ aio cloudmanager:pipeline:set-variables 1 --jsonFile=variables.json
替代旗舰输入
Adobe I/O CLI基于 奥克利夫 它支持将旗帜传递给命令的各种模式。 见 oclif 文档 更多信息.
发展
为了发展,有必要使用 aio plugins:link 连接到此寄存器的本地克隆,而不是特定的 npm 模块,例如.
$ git clone [email protected]:adobe/aio-cli-plugin-cloudmanager.git
$ git checkout -B <your feature branch>
$ npm install
$ aio plugins:link
$ aio cloudmanager:<some command>
在开发过程中,指出一个不同于 API 的终点也可能是有益的 https://cloudmanager.adobe.io (英语),例如,如果你有一个模拟服务器。 为此,你可以
配置 cloudmanager.base_url 配置密钥 :
$ aio config:set cloudmanager.base_url https://mydummyapiserver
使用未释放的 aio- lib- cloud 管理器
当新功能添加到 aio-lib- 云管理器,在此插件开发过程中使用此库的本地拷贝可能有用 。 可用 npm-链接 作为两步进程:
首先,在 aio-lib-cloudmanager 克隆目录, 运行
npm link
然后在这个项目的克隆中,运行
npm link @adobe/aio-lib-cloudmanager
切换到已发布的版本 aio-lib-cloudmanager 运行
npm unlink --no-save @adobe/aio-lib-cloudmanager
npm install
当然,这不应取代适当的单位测试.
端到端(E2E)测试
要执行端到端测试, 请创建一个名为的文件 .env 在项目目录中配置并配置您的 JWT 证书:
E2E_CLIENT_ID=<CLIENT ID>
E2E_CLIENT_SECRET=<CLIENT SECRET>
E2E_TA_EMAIL=<TECHNICAL ACCOUNT EMAIL>
E2E_IMS_ORG_ID=<ORG ID>
E2E_PRIVATE_KEY_B64=<Base64-Encoded PRIVATE KEY>
注意私钥 必须 将 base64 编码,例如通过运行
$ base64 -i private.key
要使用 OAuth 证书进行测试,请添加以下内容: .env数字 :
OAUTH_E2E_CLIENT_ID=<CLIENT ID>
OAUTH_E2E_CLIENT_SECRET=<CLIENT SECRET>
OAUTH_E2E_TA_ID=<TECHNICAL ACCOUNT ID>
OAUTH_E2E_TA_EMAIL=<TECHNICAL ACCOUNT EMAIL>
OAUTH_E2E_IMS_ORG_ID=<ORG ID>
有了这个,端到端的测试就可以运行
npm run e2e
独立使用
在罕见的情况下,也许应该将这个插件与Adobe I/O CLI分开运行. 要做到这一点,请直接安装这个npm模块,即.
npm install -g @adobe/aio-cli-plugin-cloudmanager
这将创建一个名为可执行文件 adobe-cloudmanager-cli 在你身边 PATH。此可执行文件的参数与通过 Adobe I/O CLI 使用的参数相同。 适用下列说明:
- 您仍然必须对所有配置设置使用 Adobe I/ O CLI .
- 显示的帮助信件将显示命令为
aio没有adobe-cloudmanager-cli。 。 。 .