Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>IBM Cloud CLINew to Visual Studio Code? Get it now.

IBM Cloud CLI

IBM

ibm.com
|
19,443 installs
| (3) | Free
Extension for VS Code editor to enable IBM Cloud CLI capabilities from within the editing environment.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Build Status License Version Installs Ratings

IBM Cloud CLI Extension for VS Code

This extension provides capabilities for the IBM Cloud CLI from directly within the VS Code editor. Use the VS Code command palette to quickly access all ibmcloud dev commands, without the need to leave the editor's context.

Changelog

  • v0.2.0
    • Added plugin commands (install, uninstall, update)
    • Added iam commands (oauth-tokens, service-id, service-ids)
    • Added additional resource commands (service-binding, service-bindings, service-alias, service-aliases)
    • Fixed autodetect missing cli/plugin binaries
    • Added user option to install missing plugin and rerun previous failed command
  • v0.1.0
    • Added basic account commands (list, show, users)
    • Added view api endpoint command
    • Added list regions command
    • Added view target command
    • Added view service instances command
    • Improved UX for deploy command
      • BREAKING CHANGE: deploy command only supports IBM Cloud Kubernetes Service
    • Removed old YouTube tutorials from README
    • Improved development flow instructions in README
    • Removed CloudFoundry workflow from README
  • v0.0.16
    • Improved performance when displaying CLI logs in Output Channel
    • Used correct command ext identifier when calling cf logs commands
  • v0.0.15
    • Updated to IBM Cloud 2.6.0
    • Rebranded extension to IBM Cloud CLI
    • Fixed user input box not showing after first usage
  • v0.0.14
    • Added bx dev console command
    • Added check for hostname and domain in cli-config.yml for CF deployment (no longer required when project is created)
  • v0.0.13
    • Updated IBM Cloud icon
  • v0.0.12
    • Added support for bx dev shell command
    • Removed support for the sdkgen cli
    • Improved cli version detection with minimum versioning and forced upgrade paths to support new cli features
    • Added support for "caller" arguments for the dev cli
  • v0.0.11
    • Added support for Kubernetes/Helm deployment
    • Added support for bx dev console
  • v0.0.10
    • Updated badges in README for VS Code marketplace compliance.
    • Fixed "killed terminal" bug in login/logout commands
  • v0.0.9 - Updated usage/getting started in README
  • v0.0.8 - first public release

Usage

Easily invoke commands from the IBM Cloud CLI from directly inside of the VS Code editor:

  • Open the VS Code command palette (F1 or CMD-Shift-P)
  • Use the ibmcloud login command to log in to IBM Cloud (using your IBM Cloud credentials)

Using ibmcloud dev workflow:

Steps to get started:

  • Create a project using one of the two methods below:
    • ibmcloud dev create using the IBM Cloud CLI (outside of VS Code)
    • IBM Cloud CLI Documentation
  • Open the project’s folder in VS Code
    • Press Ctrl-K+Ctrl-O or navigate to File -> Open Folder to select folder
  • Use the ibmcloud dev build command to build the app into a Docker image
  • Use the ibmcloud dev debug command to run the app in local Docker for development
  • Use the ibmcloud dev run command to run the app in local Docker in release mode
  • Use the ibmcloud dev deploy command to deploy the app (in the Docker container) to IBM Cloud
  • Use the ibmcloud dev view command to open your deployed project on IBM Cloud in a web browser
  • Use the ibmcloud dev console command to open the IBM Cloud console for your project in a web browser

Supported CLI/plugins:

  • ibmcloud login/logout - IBM Cloud User Authentication
  • ibmcloud dev - IBM Cloud Developer CLI
  • ibmcloud cf - IBM Cloud CloudFoundry CLI
  • ibmcloud ks - IBM Cloud Kubernetes Service CLI
  • ibmcloud api - View IBM Cloud API endpoint
  • ibmcloud regions - View IBM Cloud regions
  • ibmcloud account - View IBM Cloud accounts and users
  • ibmcloud resource - View IBM Cloud Service Instances, Service Bindings, and Service Aliases
  • ibmcloud target - View targeted IBM Cloud org, space, account, and resource group
  • ibmcloud plugin - Install, uninstall, and update IBM Cloud CLI plugins
  • ibmcloud iam - Display Oauth tokens and IBM Cloud Service IDs

Requirements/Dependencies

  • IBM Cloud CLI
  • Docker - required by ibmcloud dev containers

Debugging Node.js apps within the local Docker container

First, make sure your app is running inside of a local container using ibmcloud dev debug. Note: debug action requires prior ibmcloud dev build --debug action)

Next, You have to create a launch configuration inside of .vscode/launch.json. If you don't already have a launch.json file, go to the Debug -> Add Configuration menu and paste the following into the configurations array. The default debug port is 9229 and the default remoteRoot is /app/:

{
    "type": "node",
    "request": "attach",
    "name": "Attach to Local Container",
    "address": "localhost",
    "port": 9229,
    "localRoot": "${workspaceRoot}/",
    "remoteRoot": "/app/"
}

Contributing

All improvements to the IBM Cloud CLI Extension for VS Code are very welcome! Here's how to get started ...

Fork this repository. $ git clone https://github.com/IBM-Cloud/ibm-developer-extension-vscode.git

Start making your changes, then send us a pull request.

You can find more info on contributing in our contributing guidelines.

You can find more info about the development environment and configuration in our development guidelines

⚠️ Bugs / Issues / Defects

Find a bug? Let us know here

Slack Connect on Slack

Please provide your experience, questions and feedback in the #ask-your-question Slack channel. Apply for access or login here: http://ibm.biz/cli-feedback

  • Contact us
  • Jobs
  • Privacy
  • Terms of use
  • Trademarks
© 2023 Microsoft