Code Monkey home page Code Monkey logo

aio-cli-plugin-cloudmanager's Introduction

oclif Version Build Status License Codecov Coverage Known Vulnerabilities

aio-cli-plugin-cloudmanager

Cloud Manager Plugin for the Adobe I/O CLI

Requirements

  • Adobe I/O CLI
  • Node.js version compatibility:
    • 16.x -- 16.0.0 or higher.
    • Use with odd Node versions is not recommended.

Although not recommended for general use, it is possible to use this plugin outside of the Adobe I/O CLI. See Standalone Use below.

Installation

$ aio plugins:install @adobe/aio-cli-plugin-cloudmanager

Updating

$ aio plugins:update

Configuration

Authentication

This CLI supports two modes of authentication: Browser-based and Service Account. The key distinction between these is that when using browser-based authentication, the API calls made through the CLI are done as you and use your permissions whereas when using Service Account authentication, a separate service account is needed and that account may have separate permissions than you personally would when logging into the Cloud Manager UI. In general, Service Account authentication should be primarily used in a scripting context where there is no opportunity to authenticate with a browser, although there may be other situations where the Service Account method is more appropriate even for interactive usage.

Browser-Based Authentication

Browser-based authentication starts by running this command

aio auth:login

More options for this command are available and are described here.

This command will open a browser window in which you will authenticate using your Adobe Identity.

In addition to the authentication, the CLI needs to know the Adobe Organization Identifer (OrgId). There are two ways to do this:

  1. By running aio cloudmanager:org:select and use the interactive menu. By default this will store the selected organization in the current working directory, but the selection can also be stored globally by passing --global (see full command documentation below)
  2. By setting the identifier as the configuration cloudmanager_orgid, i.e. aio config:set cloudmanager_orgid <myorgid>

Alternatively, if you have selected an organization using aio console:org:select, that organization will be used.

Service Account Authentication

To use a service account authentication, an integration (aka project) must be created in the Adobe I/O Console which has the Cloud Manager service.

The required type of server-to-server authentication should be Service Account (JWT).

After you've created the integration, create a config.json file on your computer and navigate to the integration Overview page. From this page, copy the values into the file as described below.

//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"
  ]
}

The last bit you need to have at hand is the private certificate you've used to create the integration; you need the private key, not the public one. Now, you are ready to configure the aio CLI.

First, configure the credentials:

aio config:set ims.contexts.aio-cli-plugin-cloudmanager PATH_TO_CONFIG_JSON_FILE --file --json

Then, configure the private certificate:

aio config:set ims.contexts.aio-cli-plugin-cloudmanager.private_key PATH_TO_PRIVATE_KEY_FILE --file

More information on setting up a Cloud Manager integration in the Adobe I/O console can be found here.

More information on IMS contexts can be found in the documentation of @adobe/aio-lib-ims.

Old Service Account Configuration Migration

Previous versions of this plugin used the configuration key jwt-auth. Upon execution, the plugin will automatically migrate these configurations. It will not delete the old configuration however and you may want to run

aio config:del jwt-auth

To clean up any dangling configuration unless it is necessary for other aio plugins.

This migration process is silent by default. You can enable debug logging by running any command where the environment variable LOG_LEVEL is set to debug, e.g.

LOG_LEVEL=debug aio cloudmanager:list-programs

Set Default Program

If you want to avoid passing the program ID flag repeatedly, you can configure it using:

$ aio config:set cloudmanager_programid PROGRAMID

For example

$ aio config:set cloudmanager_programid 4

Set Default Environment

If you want to avoid passing the environment ID argument repeatedly, you can configure it using:

$ aio config:set cloudmanager_environmentid ENVIRONMENTID

For example

$ aio config:set cloudmanager_environmentid 7

This only works for commands where the environmentId is the first argument.

Proxy Support

When used with Adobe I/O CLI 8.2.0 or higher, this plugin can support an HTTP(S) Proxy. See the Adobe I/O CLI release announcement for more information.

Exit Codes

Primarily for scripting application purposes, the following exit codes are used:

  • 1 - A generic error has occurred
  • 2 - A configuration error has occurred
  • 3 - A validation error with the supplied flags or arguments has occurred
  • 10 - An error in IMS authentication has occurred
  • 30 - An error emanating from the Cloud Manager SDK has occurred

Reporting Issues

In general, issues with this plugin should be reported in this project via GitHub issues using one of the provided issue templates. Errors emanating from the Cloud Manager API (i.e. those with exit code 30 as described above) should be reported to Adobe support. The error output will generally contain the URL, response code, and other debug information that is necessary to identify and resolve the issue.

Commands

aio cloudmanager:content-flow:cancel FLOWID

Cancel the specified flow. The flow has to be running to be canceled.

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

See code: src/commands/cloudmanager/content-flow/cancel.js

aio cloudmanager:content-flow:create ENVIRONMENTID CONTENTSETID DESTENVIRONMENTID INCLUDEACL [TIER]

Create a content flow

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

See code: src/commands/cloudmanager/content-flow/create.js

aio cloudmanager:content-flow:get CONTENTFLOWID

get content flow

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

See code: src/commands/cloudmanager/content-flow/get.js

aio cloudmanager:content-set:delete CONTENTSETID

Delete the specified content set.

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

See code: src/commands/cloudmanager/content-set/delete.js

aio cloudmanager:content-set:get CONTENTSETID

get content set

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

See code: src/commands/cloudmanager/content-set/get.js

aio cloudmanager:current-execution:advance PIPELINEID

advance current pipeline execution either by overriding a waiting quality gate or advancing the approval step

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

See code: src/commands/cloudmanager/current-execution/advance.js

aio cloudmanager:current-execution:cancel PIPELINEID

cancel current pipeline execution either by cancelling the current step, rejecting a waiting quality gate, or rejecting the approval step

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

See code: src/commands/cloudmanager/current-execution/cancel.js

aio cloudmanager:current-execution:get PIPELINEID

get pipeline execution

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

See code: src/commands/cloudmanager/current-execution/get.js

aio cloudmanager:environment:bind-ip-allowlist ENVIRONMENTID IPALLOWLISTID SERVICE

Bind an IP Allowlist to an environment

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

See code: src/commands/cloudmanager/environment/bind-ip-allowlist.js

aio cloudmanager:environment:delete ENVIRONMENTID

delete environment

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

See code: src/commands/cloudmanager/environment/delete.js

aio cloudmanager:environment:download-logs ENVIRONMENTID SERVICE NAME [DAYS]

downloads log files for the specified environment, service and log name for one or more 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

See code: src/commands/cloudmanager/environment/download-logs.js

aio cloudmanager:environment:list-available-log-options ENVIRONMENTID

lists available log options for an environment in a Cloud Manager program

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

See code: src/commands/cloudmanager/environment/list-available-log-options.js

aio cloudmanager:environment:list-ip-allowlist-bindings ENVIRONMENTID

lists IP Allowlists bound to an environment

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

See code: src/commands/cloudmanager/environment/list-ip-allowlist-bindings.js

aio cloudmanager:environment:list-variables ENVIRONMENTID

lists variables set on an environment

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

See code: src/commands/cloudmanager/environment/list-variables.js

aio cloudmanager:environment:open-developer-console ENVIRONMENTID

opens the Developer Console, if available, in a browser

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

See code: src/commands/cloudmanager/environment/open-developer-console.js

aio cloudmanager:environment:set-variables ENVIRONMENTID

sets variables set on an environment. These are runtime variables available to components running inside the runtime environment. Use set-pipeline-variables to set build-time variables on a pipeline.

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

See code: src/commands/cloudmanager/environment/set-variables.js

aio cloudmanager:environment:tail-log ENVIRONMENTID SERVICE NAME

outputs a stream of log data for the specified environment, service and log 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

See code: src/commands/cloudmanager/environment/tail-log.js

aio cloudmanager:environment:unbind-ip-allowlist ENVIRONMENTID IPALLOWLISTID SERVICE

Bind an IP Allowlist to an environment

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

See code: src/commands/cloudmanager/environment/unbind-ip-allowlist.js

aio cloudmanager:execution:get-quality-gate-results PIPELINEID EXECUTIONID ACTION

get quality gate results

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

See code: src/commands/cloudmanager/execution/get-quality-gate-results.js

aio cloudmanager:execution:get-step-details PIPELINEID EXECUTIONID

get execution step details

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

See code: src/commands/cloudmanager/execution/get-step-details.js

aio cloudmanager:execution:get-step-log PIPELINEID EXECUTIONID ACTION

get step log

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

See code: src/commands/cloudmanager/execution/get-step-log.js

aio cloudmanager:execution:tail-step-log PIPELINEID ACTION

tail step log

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

See code: src/commands/cloudmanager/execution/tail-step-log.js

aio cloudmanager:ip-allowlist:bind IPALLOWLISTID ENVIRONMENTID SERVICE

Bind an IP Allowlist to an environment

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

See code: src/commands/cloudmanager/ip-allowlist/bind.js

aio cloudmanager:ip-allowlist:create NAME

Create an IP Allowlist

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

See code: src/commands/cloudmanager/ip-allowlist/create.js

aio cloudmanager:ip-allowlist:delete IPALLOWLISTID

Delete an IP Allowlist

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

See code: src/commands/cloudmanager/ip-allowlist/delete.js

aio cloudmanager:ip-allowlist:get-binding-details IPALLOWLISTID

list detailed information on IP Allowlist Bindings

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

See code: src/commands/cloudmanager/ip-allowlist/get-binding-details.js

aio cloudmanager:ip-allowlist:unbind IPALLOWLISTID ENVIRONMENTID SERVICE

Remove an IP Allowlist binding

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

See code: src/commands/cloudmanager/ip-allowlist/unbind.js

aio cloudmanager:ip-allowlist:update IPALLOWLISTID

Update an IP Allowlist by replacing the CIDR blocks

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

See code: src/commands/cloudmanager/ip-allowlist/update.js

aio cloudmanager:list-programs

lists programs available in Cloud Manager

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

See code: src/commands/cloudmanager/list-programs.js

aio cloudmanager:org:list

list the organizations in which the current user is authorized to use Cloud Manager

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

See code: src/commands/cloudmanager/org/list.js

aio cloudmanager:org:select [ORGID]

select an organization in which the current user is authorized to use Cloud Manager

USAGE
  $ aio cloudmanager:org:select [ORGID]

ARGUMENTS
  ORGID  the org id to store in configuration

OPTIONS
  --global  stores selected organization in global configuration

See code: src/commands/cloudmanager/org/select.js

aio cloudmanager:pipeline:create-execution PIPELINEID

start pipeline execution

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

See code: src/commands/cloudmanager/pipeline/create-execution.js

aio cloudmanager:pipeline:delete PIPELINEID

delete pipeline

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

See code: src/commands/cloudmanager/pipeline/delete.js

aio cloudmanager:pipeline:invalidate-cache PIPELINEID

invalidate pipeline cache

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

See code: src/commands/cloudmanager/pipeline/invalidate-cache.js

aio cloudmanager:pipeline:list-executions PIPELINEID

list pipeline executions

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

See code: src/commands/cloudmanager/pipeline/list-executions.js

aio cloudmanager:pipeline:list-variables PIPELINEID

lists variables set on an pipeline

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

See code: src/commands/cloudmanager/pipeline/list-variables.js

aio cloudmanager:pipeline:set-variables PIPELINEID

sets variables set on a pipeline. These are build-time variables available during the build process. Use set-environment-variables to set runtime variables on a environment.

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
  --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

  --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

  --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

  --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

  --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

See code: src/commands/cloudmanager/pipeline/set-variables.js

aio cloudmanager:pipeline:update PIPELINEID

update pipeline

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

See code: src/commands/cloudmanager/pipeline/update.js

aio cloudmanager:program:delete PROGRAMID

delete program

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

See code: src/commands/cloudmanager/program/delete.js

aio cloudmanager:program:list-content-flows

lists Content flows available in a Cloud Manager program

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

See code: src/commands/cloudmanager/program/list-content-flows.js

aio cloudmanager:program:list-content-sets

lists Content sets available in a Cloud Manager program

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

See code: src/commands/cloudmanager/program/list-content-sets.js

aio cloudmanager:program:list-current-executions

list running pipeline 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

See code: src/commands/cloudmanager/program/list-current-executions.js

aio cloudmanager:program:list-environments

lists environments available in a Cloud Manager program

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

See code: src/commands/cloudmanager/program/list-environments.js

aio cloudmanager:program:list-ip-allowlists

lists IP Allowlists available in a Cloud Manager program

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

See code: src/commands/cloudmanager/program/list-ip-allowlists.js

aio cloudmanager:program:list-pipelines

lists pipelines available in a Cloud Manager program

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

See code: src/commands/cloudmanager/program/list-pipelines.js

Permissions

Information about Cloud Manager API permissions can be found on https://www.adobe.io/experience-cloud/cloud-manager/guides/getting-started/permissions/. To see the permissions required for a specific command, you can also run any command with the flag --permissions, e.g.

$ 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

Variables From Standard Input

The environment:set-variables and pipeline:set-variables commands allow for variables to be passed both as flags to the command and as a JSON array provided as standard input or as a file. The objects in this array are expected to have a name, value, and type keys following the same syntax as the Cloud Manager API. Deleting a variable can be done by passing an empty value. For example, given a file named variables.json that contains this:

[
  {
    "name" : "MY_VARIABLE",
    "value" : "something",
    "type" : "string"
  },
  {
    "name" : "MY_SECRET_VARIABLE",
    "value" : "shhhh",
    "type" : "secretString"
  }
]

This can be passed to the pipeline:set-variables command using a shell command of

$ cat variables.json | aio cloudmanager:pipeline:set-variables 1 --jsonStdin

Or

$ aio cloudmanager:pipeline:set-variables 1 --jsonFile=variables.json

Alternative Flag Inputs

Adobe I/O CLI is based on oclif which supports a variety of patterns for passing flags to commands. See oclif documentation for more information.

Development

For development, it is useful to use aio plugins:link to link to a local clone of this repository rather than a specific npm module, e.g.

$ 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>

It may also be useful during development to point to a different API endpoint than https://cloudmanager.adobe.io, e.g. if you have a mock server you are using. For this you can configure the cloudmanager.base_url configuration key:

$ aio config:set cloudmanager.base_url https://mydummyapiserver

Using an Unreleased aio-lib-cloudmanager

When new functions are added to aio-lib-cloudmanager, it may be useful to use a local copy of this library during the development of this plugin. This can be done using npm-link as a two-step process:

First, in the aio-lib-cloudmanager clone directory, run

npm link

And then in the clone of this project, run

npm link @adobe/aio-lib-cloudmanager

To switch back to the released version of aio-lib-cloudmanager run

npm unlink --no-save @adobe/aio-lib-cloudmanager
npm install

Of course this should not replace proper unit testing.

End-to-End (E2E) Testing

To execute the end-to-end tests, create a file named .env in the project directory and configure it with your JWT credentials:

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>

Note that the private key must be base64 encoded, e.g. by running

$ base64 -i private.key

With this in place the end-to-end tests can be run with

npm run e2e

Standalone Use

In rare circumstances, it may be useful to run this plugin separately from the Adobe I/O CLI. To do this, install this npm module directly, i.e.

npm install -g @adobe/aio-cli-plugin-cloudmanager

This will create an executable named adobe-cloudmanager-cli on your PATH. The arguments to this executable are the same as when used through Adobe I/O CLI. The following caveats apply:

  • You must still use Adobe I/O CLI for all configuration setting.
  • The help messages displayed will show the command as aio not adobe-cloudmanager-cli.

aio-cli-plugin-cloudmanager's People

Contributors

anastasiapintilie avatar davidjgonzalez avatar dependabot[bot] avatar greenkeeper[bot] avatar josephrignanese avatar justinedelson avatar kwin avatar mbradoschi avatar moritzraho avatar proactivebit avatar renovate-bot avatar renovate[bot] avatar rwalter215 avatar semantic-release-bot avatar sii41383 avatar snyk-bot avatar thoughtassassin avatar weaverjas avatar yu1986 avatar zygw avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

aio-cli-plugin-cloudmanager's Issues

plugin description is incorrect

Expected Behaviour

When running aio (without any command) the description for the cloudmanager plugin should be informative.

Actual Behaviour

it isn't :)

  cloudmanager  get pipeline execution

Reproduce Scenario (including but not limited to)

Steps to Reproduce

  1. Install plugin
  2. Run aio

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Allow to use 'e'-prefixed env ids as found in cloud manager URLs

Expected Behaviour

just a convenience feature, in the cloud manager UI the environment ids show with an "e" prefix, allowing the e as prefix to be passed in would be nice

Created from #135

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Support delete program through CLI

Expected Behaviour

CLI should have a cloudmanager:delete-program command

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Cancelling a paused deployment needs to use the advance, not cancel endpoint

Expected Behaviour

When a deployment is paused, cancelling it needs to be done via the advance endpoint.

Actual Behaviour

Wrong endpoint is used

Reproduce Scenario (including but not limited to)

Have a paused deployment step

Steps to Reproduce

Invoke cancel-current-execution

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

cloudmanager:base-environment-variables-command should not be listed on readme

Expected Behaviour

The README should contain runnable commands.

Actual Behaviour

It contains cloudmanager:base-environment-variables-command which is a base class, not intended to be used directly

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Look at the README :)

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

resolve depcheck warnings

$ npx depcheck
Unused dependencies
* @oclif/config
* @oclif/errors
* @oclif/plugin-help
* zlib
Missing dependencies
* execa: ./e2e/e2e.js
* lodash: ./src/client.js
* @adobe/aio-cli-plugin-config: ./test/fixtures/scripts/global-setup.js

devDep warnings removed because I think they are false positives.

An in-range update of eslint-plugin-jest is breaking the build 🚨

The devDependency eslint-plugin-jest was updated from 22.13.0 to 22.13.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for v22.13.1

22.13.1 (2019-07-22)

Bug Fixes

Commits

The new version differs by 23 commits.

  • 6cbaa0f chore(prefer-todo): migrate to TS (#335)
  • ed2a0f6 fix(valid-describe): ignore describe.each (#337)
  • d0a8428 chore(no-test-callback): migrate to TS (#321)
  • ccbe766 chore(prefer-strict-equal): migrate to TS (#329)
  • ee81058 chore(no-test-prefixes): migrate to TS (#328)
  • e938636 chore(consistent-test-it): migrate to TS (#327)
  • 26ddedd chore(expect-expect): migrate to TS (#325)
  • 4200e76 chore(prefer-spy-on): migrate to TS (#326)
  • 3a22ef1 chore(no-if): migrate to TS (#324)
  • 4270fca chore(no-export): migrate to TS (#323)
  • 12e601a chore(no-hooks): migrate to TS (#322)
  • f3c654c chore(no-focused-tests): migrate to TS (#314)
  • c455100 chore(prefer-inline-snapshots): migrate to TS (#319)
  • 41ed53a chore(no-duplicate-hooks): migrate to TS (#318)
  • 384b788 chore(no-test-return-statement): migrate to TS (#320)

There are 23 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Sync Github Issues with JIRA

If you want this functionality, please add aiojbot to your repo under Settings -> Manage Access under a Triage role. Thanks.

The sync functionality runs every 15 minutes, and will watch for label events in issues. (bug, enhancement, question, feature)

Add a command to get the logs for a step

Expected Behaviour

$ aio cloudmanager:get-execution-step-log PIPELINEID EXECUTIONID ACTION

Should output to stdout by default, but also allow output to a file

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Add support for content/experience audit

Expected Behaviour

cloudmanager:get-quality-gate-results should accept contentAudit and experienceAudit as parameters and show the metrics for this step.

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

An in-range update of cli-ux is breaking the build 🚨

The dependency cli-ux was updated from 5.4.0 to 5.4.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

cli-ux is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details

Release Notes for v5.4.1
  • chore: update indent-string to ^4.0.0 (from ^3.2.0) (#128) ed4c9cc

v5.4.0...v5.4.1

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Description of tail-log and download-logs is incorrect

In the documentation for https://github.com/adobe/aio-cli-plugin-cloudmanager/blob/main/README.md#aio-cloudmanagerdownload-logs-environmentid-service-name-days and https://github.com/adobe/aio-cli-plugin-cloudmanager/blob/main/README.md#aio-cloudmanagertail-log-environmentid-service-name is written "lists available logs for an environment in a Cloud Manager program"

For both commands, this is not really the case. Could you please improve the description?
For people don't have access to a sandbox it would be easier to unterstand.

DEBUG mode should output result body for errors

Expected Behaviour

when running

$ DEBUG=* aio cloudmanager:<anything>

it would be helpful if the debug output included the actual HTTP response body when an error occurred

Actual Behaviour

Debug output only includes fetched URLs

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Add support for listing environments

Expected Behaviour

Should be a new command

$ aio cloudmanager:list-environments

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Migrate from @adobe/aio-cli-plugin-jwt-auth to @adobe/aio-lib-ims

@adobe/aio-cli-plugin-jwt-auth has been deprecated in favor of @adobe/aio-lib-ims.

In order to migrate and achieve a level of backwards compatibility, there must be some migration process from the "old" configuration structure (jwt_auth) to the new one (ims.contexts.CONTEXT_NAME). This migration can be automatically done in an init hook, with the following caveats:

  • If there is local config, it should be migrated to local, not global config.
  • If there is global config, it should be migrated to global config.
  • If the config is passed through environment variables, no migration should be done.

This will still technically be a breaking change since passphrase is not supported (see adobe/aio-lib-ims#52).

However, at this point this is blocking a separate feature request (#198) since if a flag was provided to select an alternate configuration key for the configuration used with @adobe/aio-cli-plugin-jwt-auth migration would not be possible in a fully automated fashion.

Refactor out aio-lib-cloudmanager

Expected Behaviour

Best practice now is to have a separate npm module (aio-lib-XXX) which contains the actual API logic and the plugin is just a wrapper around this.

An in-range update of eslint-plugin-jest is breaking the build 🚨

The devDependency eslint-plugin-jest was updated from 22.9.0 to 22.10.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for v22.10.0

22.10.0 (2019-07-17)

Features

Commits

The new version differs by 7 commits.

  • 28bd1dc feat(rules): adds no-if rule (#293)
  • 7ebdc0e chore: enforce import destructure order
  • 31c7cef chore: convert to import/export (#302)
  • 9f858cb chore: delete tests instead of ignoring them with babel
  • c595ba0 chore: do not include tests in published tarball
  • 4b4eb78 chore: fix lint error in md file
  • d3ea720 chore(docs): fix typo (#304)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Remove dependency on aio-cli-plugin-runtime

Expected Behaviour

This plugin should not have a dependency on aio-cli-plugin-runtime

Actual Behaviour

It does.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Improve console output when no log options

Expected Behaviour

When there are no log options, the output should say that.

Actual Behaviour

You just get an empty table.

Reproduce Scenario (including but not limited to)

  • You have an environment with no log options

Steps to Reproduce

Invoke aio cloudmanager:list-available-log-options on an environment with no log options

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

update AEM build for dev env: update-pipeline

Expected Behaviour

$ aio cloudmanager:update-pipeline --programId=1234 123456 --updateAemBuild

Since Dev environments don't autoupdate, is it possible to get an option for update-pipeline to update to the latest AEM build? It seems that update-pipeline command can only update the git branch attached to the pipeline. This is a nice feature in the UI that would be helpful in this tool.

When starting an execution, the execution id should be output on the CLI

Expected Behaviour

When starting an execution, the execution id should be output on the CLI

Actual Behaviour

It isn't.

Reproduce Scenario (including but not limited to)

You have an idle pipeline

Steps to Reproduce

run aio cloudmanager:start-execution PIPELINEID

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Available Updates

Would it be possible to add a command to check for a new available update in general or for an environment?
Would it then be possible to have an additional command to update an environment if there is an update?

Best
Zubair

Delete Environment

Expected Behaviour

The Delete Environment API is available, but not used in the CLI

Actual Behaviour

There should be a delete-environment command.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Secret environment variables cannot be deleted

Expected Behaviour

$ aio cloudmanager:set-environment-variables 12345 --secret MY_VAR2 "some secret value"
$ aio cloudmanager:set-environment-variables 12345 --delete MY_VAR2

should result in the environment variable being deleted

Actual Behaviour

setting variables... !
Error: Cannot set variables: https://cloudmanager.adobe.io/api/program/54321/environment/12345/variables (400 Bad Request)
    at res.text.then.text (~/workspaces/projects/aio-cli-plugin-cloudmanager/src/client.js:60:39)

Reproduce Scenario (including but not limited to)

Have a Cloud Service program and environment and an integration with the Deployment Manager role

Steps to Reproduce

See above

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

aio cloudmanager is not complete help

Expected Behaviour

$ aio cloudmanager

should output complete help

Actual Behaviour

Missing some recently added commands

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Support Pipeline Variables List/Set

Expected Behaviour

Cloud Manager will shortly support pipeline variables, similar to environment variables. This should be available in the CLI.

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Miscellaneous warnings when installing plugin

Expected Behaviour

Plugin should install without warnings

Actual Behaviour

warning "@adobe/aio-cli-plugin-cloudmanager > @oclif/[email protected]" has unmet peer dependency "@oclif/plugin-help@^2".
warning @adobe/aio-cli-plugin-cloudmanager > @adobe/[email protected]: WARNING: This module has been renamed to @adobe/aio-lib-core-config. Please install it instead. See https://github.com/adobe/aio-lib-core-config for more information.

Reproduce Scenario (including but not limited to)

Don't have the plugin installed

Steps to Reproduce

Install the plugin

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

add support for editing pipeline branch

Expected Behaviour

$ aio cloudmanager:update-pipeline --branch=develop

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

An in-range update of @oclif/plugin-help is breaking the build 🚨

The dependency @oclif/plugin-help was updated from 2.2.2 to 2.2.3.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@oclif/plugin-help is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details

Release Notes for v2.2.3
  • chore: update indent-string to ^4.0.0 (from ^3.2.0) (#55) 8cd47e0

v2.2.2...v2.2.3

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

environment variable aemCloudAdministrators not exposed via list-environment-variables

Although in the OSGi configuration for PID org.apache.jackrabbit.oak.security.authorization.AuthorizationConfigurationImpl I see the value [administrators, $[env:aemCloudAdministrators;default=administrators]] being set for property administrativePrincipals, the environment variable called aemCloudAdministrators is not listed via aio cloudmanager:list-environment-variables for that particular environment. Still is must have a certain value as all users being member of a cryptic group AEM Administrators-3e6e8bd0a05f39bc82d788bb27ac83b4 are being administrators!

Please make sure that all environment variables are exposed from aio cloudmanager:list-environment-variables (even the ones which may be set as start argument)

An in-range update of @adobe/aio-lib-core-config is breaking the build 🚨

The dependency @adobe/aio-lib-core-config was updated from 1.2.0 to 1.2.1.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@adobe/aio-lib-core-config is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details

Release Notes for path files were not included in package.json
  • fix: patch files were not included ba0cc71

1.2.0...1.2.1

Commits

The new version differs by 2 commits.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

aio cloudmanager prints error

Expected Behaviour

Running

$ aio cloudmanager

should output something (ideally the help message)

Actual Behaviour

Doing this returns an error:

TypeError: this.run is not a function
    at CloudManagerCommand._run (~/.local/share/@adobe/aio-cli/node_modules/@oclif/command/lib/command.js:44:31)

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

An in-range update of fetch-mock is breaking the build 🚨

The devDependency fetch-mock was updated from 8.2.1 to 8.3.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

fetch-mock is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Commits

The new version differs by 22 commits.

  • 6290ca4 Merge pull request #491 from wheresrhys/matcher-object
  • e7e6503 reorg
  • a613d8f update types
  • 110e001 improve exaples
  • a2f75f6 better documentation of complex matcher patterns
  • 84c95a4 documentation update
  • 3b239cc Merge pull request #492 from wheresrhys/refactor-for-obj-matcher
  • 125a178 tidy
  • 3294162 fixed all tests
  • 815eb1b begininng to refactor tests
  • a6a3c80 fix test ad lint
  • befeef4 remove logs
  • fbadda5 converted most behaviour to separate url from other matchers
  • 7680d9e tests for a matcher object
  • 96a76f2 Update resetHistory.md

There are 22 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Add Open Developer Console Command

Expected Behaviour

It'd be useful if there was a way to open the developer console for an environment from the CLI.

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Include validation errors in the non-debug error message

Expected Behaviour

When a command fails, currently only the status code is output, e.g.

Cannot set variables: https://cloudmanager.adobe.io/api/program/4/environment/11/variables (400 Bad Request)

Although more detailed information is available when DEBUG is enabled, It would be better if this message contained validation errors.

Steps to Reproduce

Run a command that fails

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Add support for deleting pipelines via CLI

Expected Behaviour

$ aio cloudmanager:delete-pipeline PIPELINEID

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Should be a get execution details command

Expected Behaviour

Something like

$ aio cloudmanager:get-execution-step-details PIPELINEID EXECUTIONID

and return a table of the steps within the execution -- start times, end times, durations

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

An in-range update of eslint-plugin-jest is breaking the build 🚨

The devDependency eslint-plugin-jest was updated from 22.14.1 to 22.15.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

eslint-plugin-jest is a devDependency of this project. It might not break your production code or affect downstream projects, but probably breaks your build or test tools, which may prevent deploying or publishing.

Status Details

Release Notes for v22.15.0

22.15.0 (2019-08-07)

Features

Commits

The new version differs by 7 commits.

  • f41d5c4 feat(rules): no-expect-resolves (#364)
  • a334368 chore: convert index file to typescript (#372)
  • e060061 chore(snapshot-processor): convert to typescript (#371)
  • b61ec87 chore: copy over json files when running babel
  • 85e4195 chore: add no-negated-condition lint rule
  • d285f8b chore: move globals into json file (#366)
  • 8dcfc24 chore(no-large-snapshots): refactor away babel-eslint in tests (#367)

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Require node 10

Expected Behaviour

There's no reason to be supporting node 8 anymore. Everyone should be on node 10 or higher.

Actual Behaviour

node 8 is tested.

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

see #37

Logs taken while reproducing problem

An in-range update of @adobe/aio-cli-plugin-runtime is breaking the build 🚨

The dependency @adobe/aio-cli-plugin-runtime was updated from 1.4.0 to 1.5.0.

🚨 View failing branch.

This version is covered by your current version range and after updating it in your project the build failed.

@adobe/aio-cli-plugin-runtime is a direct dependency of this project, and it is very likely causing it to break. If other packages depend on yours, this update is probably also breaking those in turn.

Status Details

Release Notes for 1.5.0
  • Pass parameters to trigger fire (#120) 1634a28
  • Emit activation id for trigger firing. (#124) 767cf18
  • Support deploying of blackbox actions (#129) 8e43c27
  • Merge pull request #125 from rabbah/docker 23f871c
  • fix: code file links on README.md are broken (/blob/v1.4.0/ not found) (closes #126) (#127) 178bbcc
  • Add restricted access note. 26a1127
  • Support action create/update with --docker. 6ee0b03
  • Merge pull request #106 from Yu1986/e2e 9c9f9f4
  • get name from package name f38b5ce
  • get package name from package.json dc43522
  • change overloaded P flag to E (#117) 1d6e4dc
  • Fixes action invoke defects (#104) 6cdecac
  • Support -e for adding environment variables. (#103) c4710bf
  • Only emit rule delete if json flag is given. (#113) de569e0
  • Fix uncaught async exception warnings in unit tests. Closes #95 (#108) 8cfcc81
  • adding ability to limit action list by package. fixes #105 (#109) 3ceba9e
  • Tweak missing property messages to improve clarity (#107) ac148cc
  • add e2e test eac8d17

1.4.0...1.5.0

Commits

The new version differs by 25 commits.

  • d91f33d 1.5.0
  • 1634a28 Pass parameters to trigger fire (#120)
  • 767cf18 Emit activation id for trigger firing. (#124)
  • 8e43c27 Support deploying of blackbox actions (#129)
  • 23f871c Merge pull request #125 from rabbah/docker
  • 20be232 Merge branch 'master' into docker
  • 178bbcc fix: code file links on README.md are broken (/blob/v1.4.0/ not found) (closes #126) (#127)
  • 26a1127 Add restricted access note.
  • 6ee0b03 Support action create/update with --docker.
  • 9c9f9f4 Merge pull request #106 from Yu1986/e2e
  • f38b5ce get name from package name
  • 7bfc515 Merge branch 'master' into e2e
  • 021f328 fix lint
  • 6e7eff3 fix lint
  • dc43522 get package name from package.json

There are 25 commits in total.

See the full diff

FAQ and help

There is a collection of frequently asked questions. If those don’t help, you can always ask the humans behind Greenkeeper.


Your Greenkeeper Bot 🌴

Add support for alternate files in get-execution-step-logs

Expected Behaviour

Some steps (primarily the code quality step) support alternate log files. The get-execution-step-logs command should support this.

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

list-environments displays undefined for description

Expected Behaviour

When an environment doesn't have a description (which is most of the time), the description column should be blank.

Actual Behaviour

The string undefined is displayed

Reproduce Scenario (including but not limited to)

A program with environments without descriptions (most of them)

Steps to Reproduce

Run aio cloudmanager:list-environments

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Ease setting pipeline to a tag

Expected Behaviour

There should be an easier way to update a pipeline specifying a tag. While this is currently possible, it's not entirely intuitive.

Actual Behaviour

Reproduce Scenario (including but not limited to)

Steps to Reproduce

Platform and Version

Sample Code that illustrates the problem

Logs taken while reproducing problem

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.