Releases: IBM-Cloud/ibm-cloud-cli-release
v0.15.0
This version is deprecated. Install the latest release.
Change logs
Log in with service ID
A service ID identifies a service or application similar to how a user ID identifies a user. You can assign specific access policies to the service ID that restrict permissions for access IBM Cloud resources. Since service IDs are not tied to a specific user, if a user happens to leave an organization and is deleted from the account, the service ID remains ensuring that your application or service stays up and running.
Starting from this release, logging in with a service ID api key is supported besides a normal user ID. Use the following steps to use this feature
- Create a service ID
- Create an API key of the service ID
- Log in with command
ibmcloud login --apikey KEYwhere KEY is the api key string you created for the service ID.
Service Endpoint Support
If your account is VRF(Virtual Routing and Forwarding) enabled, you can specify service endpoint options when managing service instances.
- In
resource service-instance-createandresource service-instance-update, you can enablepublic,private, orpublic-and-privateendpoints for the service instance. Note that the available endpoint options are defined by the service in global catalog. - In
resource service-key-createandresource service-binding-create, you can select an endpoint type from the ones that were enabled when the service instance was created.
New commands
account audit-logs: List Softlayer account audit logs
Updated Commands
login: adds prompt to set proper IAM policy if logging in with service ID fails because of being not authorized to get account information.target: adds--outputflag to generate JSON outputaccount show:- adds account type, name and owner in output
- show
-instead of error messages when there is error in querying account VRF status
resource service-instances: adds--typeflag to filter instances by type.resource service-instance: shows the endpoint types if it is specified.resource service-instance-create:- adds validation to check wether the service is provisionable from command line
- adds check to ensure all required parameters are specified
- if required parameters are missing, default value (if exists) will be applied
- adds
--service-endpointsflag to specify the service endpoint types
resource service-instance-update:- adds
--service-endpointsflag to specify the service endpoint types - searches the service instance in all resource group is no resource group is targeted
- adds
resource service-key-create:- adds
--service-endpointflag to specify the service endpoint type - removes options for system defined roles
- adds
resource service-binding-create:- adds
--service-endpointflag to specify the service endpoint type - removes options for system defined roles
- adds
iam: adds support to use*to specify all resource groups in IAM policy commandssl ticket: adds--priorityflag
Defect Fixing
resource cf-migrate-service: fail to migrate Cloud Foundry services when its service plan name is different from the name in resource catalog in letter caseresource groups:defaultproperty is missing in the JSON outputresource service-key-create,resource service-binding-create: remove support of system defined roles. Those two commands should only support service specific roles. Runibmcloud iam roles --service SERVICE_NAMEto get specific roles of each service.sl hardware list: nil pointer exception when some information is not available- some command flags are not translated
Other changes
slcommands: adds auto-refresh when the token expires
v0.14.0
This version is deprecated. Install the latest release.
Change logs
Account based MFA
Multifactor authentication (MFA) adds an extra layer of security to your account by requiring all users to authenticate by using an additional authentication method beyond an ID and password. This is also commonly known as two-factor authentication (2FA). In this release, account based MFA is added to allow you to log in if security questions, a time-based one-time passcode, or external authentication options is set at your account level. Refer to doc page for types of MFA. ID-based MFA will be supported in a future release.
Use IAM token for accessing Softlayer resources
Previously ibmcloud sl init is needed to retrieve IMS token before using other ibmcloud sl commands to manage SoftLayer resources. This was changed recently and now IAM token can be used to invoke Softalyer APIs as well. Starting from this release, command ibmcloud sl init is removed and IBM Cloud CLI will be using single IAM token to access all IBM cloud resources including SoftLayer resources.
New commands,
sl ticket: Manage Softlayer ticketsresource tags: List all tagsresource tag-attach: Add tags to a resourceresource tag-detach: Remove tags from a resourceresource tag-delete: Delete a tag
Updated Commands
account show:- adds status of VRF enabled or not
- adds account traits
service-key: Supports querying service key by either name or IDauthorization-policy-create: adds--source-resource-typeand--target-resource-typeoption to support authorization policies on composite services
Defect Fixing
org-create: fails when user id is an email address with mixed casesspace-delete: doesn't return error if target space doesn't existlogin: login with-rcause nil pointer runtime error
Break Changes
sl initcommand is removed, as a result of IAM token support in Softlayer commands
Other changes
- upgrades to Go 1.10.3
v0.13.1
This version is deprecated. Install the latest release.
Change logs
This is a minor release mainly to resolve the regressions in 0.13.0.
Updated Commands
resource searchadds[-p, --provider PROVIDER]option which allows the user to specify the provideriam service-policy-createandiam service-policy-updateadd--account-managementflag to grant all platform service privilege.
Defect Fixing
regionsdoes not work for dedicated environmenttargetreturns nil pointer error if targeting a region which does not have Cloud Foundry deploymenttarget --cfprompts "not logged in", if--no-iamoption is used duringlogincfee create-locations: does not work with global API endpointcloud.ibm.com
Break Changes
infocommand is removed
v0.13.0
This version is deprecated. Install the latest release.
Change logs
Global Login
IBM cloud is migrated to global API endpoint cloud.ibm.com. When logging in with the new API endpoint, user will be asked to select a region. In ibmcloud login command, flag -r is added to specify a region or --no-region can be used to log in without region specified. Besides, ibmcloud target --unset-region can be used to clear a region selection after logged in.
Changes In Commands Under account
The prerequisites of targeting a public Cloud Foundry environment is removed for commands that manage the public cloud foundry orgs/spaces/roles.
New Plugin Repository URL
The default plugin repository is migrated to new URL: https://plugins.cloud.ibm.com. The old URL https://plugins.ng.bluemix.net will still be kept until it is sunset some day in the future.
Service Endpoint Support
The Service Endpoint will allow a customer’s workload in their own account to access a service in an IBM owned account using the private IBM Cloud network. Having a VRF enabled account is a requirement of using service endpoints. Users can open a support ticket requesting to enable VRF. In CLI, new command account show is added to show the detailed account information including whether service endpoint is enabled or not. account update command is also added to enable/disable service endpoint at the account level.
Assign Account Management Access to Others
Access group policy and user policy commands are updated to support the latest feature of IAM to assign account management access to others. See details below for the changes of commands.
New Commands
account show: show the current account details, including service endpoint details, linked Softlayer account and so on.account update: update account setting, currently only--service-endpoint-enableis supported. use this option to disable or enable target account linked softlayer account service endpoint connectivity.resource service-key-update: update a service key
Updated Commands
logincommand- adds
-r, --regionto specify target region - adds
--no-regionto force login without region
- adds
targetcommand- adds
--unset-regionoption to clear region selection -c ACCOUNT_ID: this option now clears Softlayer configuration too when targeting another account.
- adds
account orgs: orgs in all regions are displayed if no region is targeted and-ris not specifiedaccount org: orgs with the same name in all regions are displayed if no region is targeted and-ris not specifiedregions: removesCustomer,Deployment, andTypecolumns in the outputinfo: removesMCCP endpointin the outputsl init:-c ACCOUNT_IDis removed. Specify IBM Cloud account inibmcloud loginoribmcloud target.-u USER_NAMEand-p PASSWORDare deprecated, we'll remove them in the future.
iam access-group-policy-create,iam access-group-policy-update,iam user-policy-create,iam user-policy-updateadd--account-managementflag to grant all platform service privilege.
Bug Fixes
resource service-instancesandresource service-keys: nil is printed when--output JSONand the response is empty--outputis case sensitivetargetcan accept arbitrary number of arguments- missing quotation mark in the description of
servicenamespace updateon Linux use sudo by defaultresources service-instance: empty value ofResourceGroupName,ServicePlanName, andServiceNamewhen--output json
Break Changes
resource group-create: removesQUOTA_NAMEargumentiam access-group-policy-create,iam access-group-policy-update,iam user-policy-create,iam user-policy-update: if no target resource is specified, it means assigning roles to all account resources, except for platform services. Previously it means assigning roles to all account resources including platform services.sl init:-c ACCOUNT_IDis removed
v0.12.1
v0.12.0
This version is deprecated. Install the latest release.
Change logs
New Commands
cfee create: Make a request to create a new instance of the Cloud Foundry Enterprise Environment.cfee create-locations: Make request to get a list of available data centers for the targeted regions.cfee create-permission-get: Check if a user has all the permissions required to create a CFEE instancecfee create-permission-set: Give user all the permissions required to create a CFEE instancecfee create-status: Check the provisioning status of a CFEE instance
Updated Commands
catalog search: filter out inactive servicescatalog service: children of inactive services will not be displayed
Defects Fixing
service-alias-createfails if no resource group is specified or targeted- Linux installer fails to install on some 32-bit X86 platforms
v0.11.0
This version is deprecated. Install the latest release.
Change logs
Add resource group filter for service instances, aliases and keys
There are general changes in resource commands as following:
- By default the currently targeted resource group is used to filter instances when managing service instances, aliases and keys
-g RESOURCE_GROUPflag is added to specify the target resource group--unset-resource-groupflag is added totargetcommand to unset target resource group. If no resource group is targeted, then the commands handle the resources in all resource groups.
Add --output json support for several commands
The following commands have flag --output format to specify different output format. Currently only json is supported.
account usersresource groupresource groupsresource service-instanceresource service-instancesresource service-aliasresource service-aliasesresource service-keyresource service-keysresource service-bindingresource service-bindings
Deprecate commands app and service
Most commands under app and service are actually for managing Cloudfoundry apps and services. We recommend users to use commands under cf namespace directly.
The following commands for domain certificate management are moved to account
app domain-certmoved toaccount domain-certapp domain-cert-addmoved toaccount domain-cert-addapp domain-cert-removemoved toaccount domain-cert-remove
New Commands
sl file snapshot-schedule-list: List snapshot schedules for a given file storage volumesl file volume-modify: Modify an existing file storage volumesl block snapshot-schedule-list: List snapshot schedules for a given volumesl block volume-modify: Modify an existing block storage volumesl order category-list: List the categories of a packagesl order item-list: List package items used for orderingsl order package-locations: List Datacenters a package can be ordered insl order place: Place or verify an ordersl order place-quote: Place a quotesl order preset-list: List package presetscatalog blacklist: Add currently targeted account to the blacklist of the specified service
Updated Commands
catalog entry,catalog entry-visibility,catalog locations,catalog searchandcatalog service: replace--jsonwith--output TYPEresource serivce-instance-updateadds--parametersflagresource service-instancesshows more types of service instancesplugin listadds whether update is available for each pluginresource service-key-deletesupports deleting both by name and IDresource service-instance-createandresource service-instance-updatedisables--tagscatalog locationsnow shows display name instead of name
Defects Fixing
Source service namefield is blank iniam authorization-policiesoutputiam service-policies --jsonhas extra messages--keyoption does not work in commandsl vs createcatalog service,catalog locations,catalog searchdisplay additional messages when--jsonis used
Other changes
- plugins now are sorted by name in help
v0.10.1
This version is deprecated. Install the latest release.
Change logs
Defects Fixing
- i18n issues in French locale
- panic when running CLI
[y/N]is translated to[O/N]in French locale, but user still needs to input 'y' to proceed
- Issues in
iam service-policieswhen--output JSONis specified- excessive message
OK - nothing returned when there is no policy found, it should return empty array.
- excessive message
resource service-keysdoes not filter by resource groupsl vs create:--keyflag doesn't work
v0.10.0
This version is deprecated. Install the latest release.
Change logs
Support namespace placeholder for plugins
Now a namespace can be defined as a placeholder which can be overwritten by plugins.
Updated Commands
login --ssoallows opening the URL in default browser to retrieve one time passcoderesource service-instancedadds--output JSONoptionresource service-instancesignores instances of CFEE, toolchain, and cloud functionscfeecommands is now marked as Betasl vs createadds-Foption which can create virtual server instance and user data together.sl vlan createremoves-soptioncfcommands now check whether a CF instance is targeted before invoking cf cli
Removed Commands
- The following tag commands are removed given the experimental period has expired
tagShow details of a tag (Experimental)tag-attachAdd a tag to a resource (Experimental)tag-createCreate a tag (Experimental)tag-detachRemove a tag from a resource (Experimental)tag-deleteDelete a tag (Experimental)tag-updateSwitch user tag to restricted tag and vice versa (Experimental)tagsList all tags (Experimental)
Defects Fixing
- typo in
account spacesandaccount orgscommands targetdoes not check if endpoint is valid for--cf-apioption- Windows installer removes all plugins during uninstallation and major upgrade
- incorrect description of
--fileoption in commandiam service-api-key-createandiam api-key-create - JSON unmarshal error in
app domain-certcommand for some types of domain certificates
other changes
- Change default plugin repo name to "IBM Cloud"
v0.9.0
This version is deprecated. Install the latest release.
Change logs
Support CFEE org, space and user management
This release adds a set of CFEE commands to manage CF orgs, spaces and roles without targeting/logging into the CFEE environment
Rename Linux installer script from install_bluemix_cli to install
This is part of the rebranding of Bluemix to IBM Cloud. install_bluemix_cli is deprecated but will be kept for a period of time before it is completely removed.
Migrate to new API for creating app from template and managing domain certificates
The following commands now use a new version of IBM Cloud API
catalog template-runapp domain-certapp domain-cert-addapp domain-cert-remove
Filter hidden services on resource catalog
If a service is hidden on resource catalog, it won't show up in the following commands:
catalog servicecatalog service-marketplaceresource service-instance-create
New Commands
cfee orgs: list all orgscfee org: show details of an orgcfee org-create: create an orgcfee org-delete: delete an orgcfee org-users: display users in specified org by rolecfee org-role-set: assign an org role to a user (org manager required)cfee org-role-unset: remove an org role from a user (org manager or user him/herself only)cfee spaces: list all spacescfee space: show details of a spacecfee space-create: create a new spacecfee space-rename: rename a spacecfee space-delete: delete a spacecfee space-role-set: assign a space role to a usercfee space-role-unset: remove a space role from a usercfee space-roles: get all space roles of current usercfee space-users: display users in a space by role
Updated Commands
loginandupdatenow show release note link URL after successful upgradeloginadds--no-accountoption which will enforce logging without an accounttarget --cfprovides tips of how to create an org if there is no org foundresource searchadds--sort-byoption- The following commands deprecated
--json, and adds--output FORMAT account orgsaccount orgaccount spacesaccount spacebilling account-usagebilling resource-group-usagebilling resource-instances-usagebilling org-usageiam service-policiesiam service-policy
Defects Fixing
- String
Show Helpis not translated - CFEE cache not cleared when switching to another CFEE environment
other changes
- Change environment variable prefix from
BLUEMIXtoIBMCLOUD->BLEUMIX_COLORIBMCLOUD_COLOR->BLEUMIX_ANALYTICSIBMCLOUD_ANALYTICS->BLEUMIX_VERSION_CHECKIBMCLOUD_VERSION_CHECK->BLEUMIX_HTTP_TIMEOUTIBMCLOUD_HTTP_TIMEOUT->BLEUMIX_TRACEIBMCLOUD_TRACE->BLEUMIX_HOMEIBMCLOUD_HOME