The IBM Cloud developer experience team is pleased to announce the latest version of the IBM Cloud Developer Tools CLI.

In addition to the usual stability/quality improvements, we are excited to announce some new IBM Cloud Developer Tools CLI productivity features that let you manage your IBM Cloud DevOps toolchains and pipelines directly from the CLI.

DevOps commands

The new DevOps commands in the ibmcloud dev CLI make it even easier to manage and interact with your IBM Cloud DevOps toolchains and pipelines.

Toolchains are collections of services that work together as part of your DevOps processes. CLI commands for toolchains include the following:

  • ibmcloud dev toolchains: Fetch all of your toolchains for the current region.
  • ibmcloud dev toolchain-get: Fetch details for a specific DevOps toolchain.
  • ibmcloud dev toolchain-open: Open the system web browser to view the toolchain on IBM Cloud.
  • <a href="https://cloud.ibm.com/docs/cli/idt?topic=cloud-cli-idt-cli#toolchain-delete" target="_blank" rel="noopener">ibmcloud dev toolchain-delete</a>: Delete a toolchain instance.

A toolchain can contain one or more delivery pipelines. A delivery pipeline is the scripted path that is executed for a DevOps process. CLI commands for pipelines include the following: 

Scriptability

The new DevOps commands were also designed with scriptability in mind. When fetching details for toolchains or pipelines, you can use the --json flag to return the toolchain or pipeline definition in JSON format instead of the readability-optimized format. This lets you take the output of the command and pipe it directly into a JSON parser for use in scripting and automation workflows.

For example, let’s look at a relatively simple `bash` script that makes use of the --json flag and jq for JSON processing. The script fetches all toolchains, extracts the name from the first one, fetches details for that toolchain, extracts the pipeline id, and then runs/invokes the DevOps pipeline:

# Fetch toolchains as JSON
TOOLCHAINS="$(ibmcloud dev toolchains --json)"


# Parse the first toolchain name
TOOLCHAIN_NAME="$(echo $TOOLCHAINS | jq .items[0].name -r)"


# Extract the pipeline id
PIPELINE_SERVICE="$(echo $TOOLCHAIN | jq '.items[].services[] | select(.service_id == "pipeline")' -r)"
PIPELINE_ID="$(echo $PIPELINE_SERVICE | jq .instance_id -r)"


#invoke the pipeline
ibmcloud dev pipeline-invoke $PIPELINE_ID

Important notes

The DevOps CLI functionality can only be used to target toolchains that exist within a resource group. Older Cloud Foundry-based toolchains may not be compatible with the DevOps CLI commands.

Another thing to keep in mind when working with the DevOps commands is that DevOps toolchains and pipelines are region-specific. The DevOps commands will use the region where you are currently logged into with the ibmcloud cli. If you’re not sure which region you’re targeting, just use the ibmcloud target command to find out.

What else is new?

Other notable features in this release include:

  • General formatting and usability improvements
  • Removal of the deprecated OpenAPI support in ibmcloud dev create
  • Golang projects are now supported in ibmcloud dev enable
  • Added -f (force) flag to ibmcloud dev delete—it’s now even easier to script

For assistance, please submit questions to the author of this article. You can reach the development team in the #developer-tools channel of this Slack. You can request access to this Slack channel here.

Categories

More from Announcements

Introducing IBM Sterling Order Management on Microsoft Azure

4 min read - IBM and Microsoft believe in providing you with the power of choice so you can leverage the industry-leading omnichannel fulfillment capabilities of Sterling Order Management Software (OMS) along with your existing skills and investment in native Azure services.  IBM and Microsoft provide you with the ability to confidently deploy Sterling OMS on Azure using Azure Red Hat OpenShift (ARO) or Azure Kubernetes Service (AKS), with the added flexibility of using multiple native Azure services. The reference architecture details are available…

IBM TechXchange underscores the importance of AI skilling and partner innovation

3 min read - Generative AI and large language models are poised to impact how we all access and use information. But as organizations race to adopt these new technologies for business, it requires a global ecosystem of partners with industry expertise to identify the right enterprise use-cases for AI and the technical skills to implement the technology. During TechXchange, IBM's premier technical learning event in Las Vegas last week, IBM Partner Plus members including our Strategic Partners, resellers, software vendors, distributors and service…

Introducing Inspiring Voices, a podcast exploring the impactful journeys of great leaders

< 1 min read - Learning about other people's careers, life challenges, and successes is a true source of inspiration that can impact our own ambitions as well as life and business choices in great ways. Brought to you by the Executive Search and Integration team at IBM, the Inspiring Voices podcast will showcase great leaders, taking you inside their personal stories about life, career choices and how to make an impact. In this first episode, host David Jones, Executive Search Lead at IBM, brings…

IBM watsonx Assistant and NICE CXone combine capabilities for a new chapter in CCaaS

5 min read - In an age of instant everything, ensuring a positive customer experience has become a top priority for enterprises. When one third of customers (32%) say they will walk away from a brand they love after just one bad experience (source: PWC), organizations are now applying massive investments to this experience, particularly with their live agents and contact centers.  For many enterprises, that investment includes modernizing their call centers by moving to cloud-based Contact Center as a Service (CCaaS) platforms. CCaaS solutions…