diff --git a/pages/common/ibmcloud-api.md b/pages/common/ibmcloud-api.md new file mode 100644 index 00000000000000..ce6a183ae63770 --- /dev/null +++ b/pages/common/ibmcloud-api.md @@ -0,0 +1,28 @@ +# ibmcloud api + +> Set or view the IBM Cloud API endpoint. +> More information: . + +- View the current API endpoint: + +`ibmcloud api` + +- Set the API endpoint to `cloud.ibm.com`: + +`ibmcloud api cloud.ibm.com` + +- Set a private API endpoint: + +`ibmcloud api private.cloud.ibm.com` + +- Use a VPC connection for a private endpoint: + +`ibmcloud api private.cloud.ibm.com --vpc` + +- Bypass SSL validation of HTTP requests: + +`ibmcloud api https://cloud.ibm.com --skip-ssl-validation` + +- Remove the API endpoint setting: + +`ibmcloud api --unset` diff --git a/pages/common/ibmcloud-config.md b/pages/common/ibmcloud-config.md new file mode 100644 index 00000000000000..49e51d836bee0f --- /dev/null +++ b/pages/common/ibmcloud-config.md @@ -0,0 +1,28 @@ +# ibmcloud config + +> Modify or read out values in the IBM Cloud CLI configuration. +> More information: . + +- Set HTTP request timeout to 30 seconds: + +`ibmcloud config --http-timeout 30` + +- Enable trace output for HTTP requests: + +`ibmcloud config --trace true` + +- Trace HTTP requests to a specific file: + +`ibmcloud config --trace {{path/to/trace_file}}` + +- Disable color output: + +`ibmcloud config --color false` + +- Set the locale to a specific language: + +`ibmcloud config --locale {{zh_Hans}}` + +- Enable automatic SSO one-time passcode acceptance: + +`ibmcloud config --sso-otp auto` diff --git a/pages/common/ibmcloud-logout.md b/pages/common/ibmcloud-logout.md new file mode 100644 index 00000000000000..bbf853ff2fea3c --- /dev/null +++ b/pages/common/ibmcloud-logout.md @@ -0,0 +1,8 @@ +# ibmcloud logout + +> Log out of the IBM Cloud CLI. +> More information: . + +- Log out of the current session: + +`ibmcloud logout` diff --git a/pages/common/ibmcloud-regions.md b/pages/common/ibmcloud-regions.md new file mode 100644 index 00000000000000..b78362424f2949 --- /dev/null +++ b/pages/common/ibmcloud-regions.md @@ -0,0 +1,8 @@ +# ibmcloud regions + +> List all available regions on IBM Cloud. +> More information: . + +- View information for all regions: + +`ibmcloud regions` diff --git a/pages/common/ibmcloud-target.md b/pages/common/ibmcloud-target.md new file mode 100644 index 00000000000000..bee8f6246d4539 --- /dev/null +++ b/pages/common/ibmcloud-target.md @@ -0,0 +1,28 @@ +# ibmcloud target + +> Set or view the target account, region, or resource group. +> More information: . + +- View the current target account and region: + +`ibmcloud target` + +- Set the target account: + +`ibmcloud target -c {{account_id}}` + +- Switch to a specific region: + +`ibmcloud target -r {{region_name}}` + +- Set the target resource group: + +`ibmcloud target -g {{resource_group_name}}` + +- Clear the targeted region: + +`ibmcloud target --unset-region` + +- Clear the targeted resource group: + +`ibmcloud target --unset-resource-group`