Install Cloud Deployment CLI
Overview
You install the Cloud Deployment CLI (wmcd-cli) using the NPM registry. This section describes tasks such as installing the Cloud Deployment CLI and specifying credentials to connect to Cloud Deployment.
Actors
Administrators
Before you begin
Before you install wmcd-cli from the NPM registry, do the following:
Install the NodeJS runtime environment version 10.13 or later on your computer along with NPM (Node's package manager).
Note: The Cloud Deployment CLI is available for the following operating system environments:
Windows
Linux
macOS
Open a command line interface and type the following command to install wmcd-cli:
npm install -g wmcd-cli
Specify the credentials to connect to Cloud Deployment
To connect to Cloud Deployment, you must configure the credentials in one of the following ways:
Specify the credentials in
config.json file.
Create a
config.json file under
%appdata%/wmcd_cli/ location for Windows or
/home/wmcd_cli/ in Linux.
Add new profiles in the
config.json file.
The following is an example of default and referenced profile in the configuration file.
{
"default": {
"url": "https://{subdomain}.webmethodscloud.com",
"userName": "userName",
"password": "password”
},
"someotherProfile": {
"url": "https://{subdomain}.webmethodscloud.com",
"userName": "userName",
"password": "password”
}
}
By default, the 'default' settings are read from the configuration file. To enable the referenced profile, run the following command:
wmcd-cli –profile someotherProfile
Specify credentials as runtime arguments.
When you start the CLI, credentials are passed as a runtime argument. For example:
wmcd –-mode interactive –-url <url> –-userName <userName>
--password <password>
Note: Runtime arguments will have the highest priority. However, If runtime arguments are not passed, then the default profile from %appdata%/wmcdd_cli/config.json is used.