Using DevOps CLI in VS Code
Known Issues: Required Update
An update is required. The current release of Flosum DevOps requires the latest versions of the Flosum CLI (@flosum/cli package) and the Flosum DevOps-CLI Extension. Earlier CLI releases do not support topologies and cannot work with a DevOps tenant that uses them, so existing installations must be updated.
Node.js 22 is required. On Node.js 24, the install and update commands appear to succeed but leave you on an earlier release. Move to Node.js 22 before installing or updating.
Operating System Compatibility
Flosum CLI and Flosum DevOps-CLI Extension are compatible with the following operating systems:
macOS
Linux
These tools are currently not designed to work with Windows.
Overview
This article shows you how to use the DevOps CLI extension in Visual Studio Code (VS Code) to access the available commands. The sections below explain each command and provide instructions for using them. The available commands depend on whether a DevOps project is currently open in VS Code: some work only within a DevOps project, while others are used to create one. The commands are separated into the following sections:
Commands [No Open DevOps Project]
Commands [Open DevOps Project]
Best Practices
Use clear DevOps tenant login credential aliases, such as
prod-admin,sandbox-dev, orcustomer-xyz, to make switching easier.When possible, use the Clone Devops Project command when starting a project, since it configures project credentials automatically.
Run Pull Branch before committing to avoid pushing stale changes.
Use View Pending Changes before committing to confirm exactly what will be pushed.
If DevOps commands stop working, confirm that your project still has the correct credentials set to connect to your DevOps tenant. If needed, run the Login command again.
Accessing Flosum Command Palette
Flosum Command Palette
To access the Flosum Command Palette, ensure the Status Bar in VS Code is visible. Control its visibility through View > Appearance > Status Bar.
Click the Flosum command palette launcher on the left side of the Status Bar.

The Flosum Command Palette opens at the top of the VS Code window.
The available commands differ depending on whether a DevOps project is open.
Flosum Command Palette with no open DevOps project.

Flosum Command Palette with open DevOps project.

Commands [No Open DevOps Project]
Login
This command creates credentials for connecting to your DevOps tenant.
Logout
This command deletes the selected credentials from the DevOps CLI extension.
Init Devops Project
This command initializes an empty Salesforce project with the Flosum CLI system files.
Clone Devops Project
This command initializes a Salesforce project and clones the main branch from your DevOps tenant.
Flosum: Login
This command creates credentials with an API Token generated in the Flosum Global Settings app. The credentials are used for connecting to your DevOps tenant. For instructions on creating an API Token, see the following article.
Make sure you copy your API Token to the clipboard before starting the login process, since clicking outside of VS Code will close the Command Palette.
You can have multiple login credentials. When you log in, you’re prompted to enter an alias for the credential to help distinguish it from others. The alias doesn’t affect authentication, so it’s best to choose a name that indicates which tenant the credential belongs to.
Flosum: Logout
This command deletes the selected credentials from the DevOps CLI extension. The credentials can be added again through the Login command.
Flosum: Init Devops Project
This command initializes an empty Salesforce project with the Flosum CLI system files.
Flosum: Clone Devops Project
This command initializes a Salesforce project and uses the selected login credentials to clone the main branch from your DevOps tenant.
Commands [Open DevOps Project]
Login [Project Mode]
This command selects the credentials that the open project will use to connect to the DevOps tenant.
Logout [Project Mode]
This command removes the configured credentials for the open project.
Checkout Branch
This command retrieves a branch from your DevOps tenant and copies all components to your local project.
Pull Branch
This command retrieves the latest changes from your DevOps tenant for the current branch.
View Pending Changes
This command displays all local changes that have not been committed to your DevOps tenant.
Discard Changes
This command cancels all local changes that have not been committed to your DevOps tenant.
Commit Changes
This command commits all local changes to your DevOps tenant.
Flosum: Login [Project Mode]
This command selects the credentials that the open project will use to connect to the DevOps tenant.
Flosum: Logout [Project Mode]
This command removes the configured credentials for the open project. You must use the Flosum: Login [Project Mode] command before you can use the other DevOps commands for this project.
Flosum: Checkout Branch
This command retrieves a branch from your DevOps tenant, copies all components to your local project, and sets the branch as the project's current branch.
Flosum: Pull Branch
This command retrieves the latest changes from your DevOps tenant for the current branch. If you have uncommitted changes, you must commit them or roll them back before pulling from DevOps.
Flosum: View Pending Changes
This command displays all local changes that have not been committed to your DevOps tenant.
Flosum: Discard Changes
This command rolls back all local changes that have not been committed to your DevOps tenant.
Flosum: Commit Changes
This command commits all local changes to your DevOps tenant.
Manual Merging
The DevOps CLI extension does not currently support merging code bases when your local project has both uncommitted changes and a commit history that is behind the remote DevOps branch. In this state, both Flosum: Commit Changes and Flosum: Pull Branch will fail.
To resync with the remote branch without losing your work:
Copy the affected files (or the specific changes) to a location outside the project so you can reapply them after pulling.
Roll back your local changes with Flosum: Discard Changes. This resets the project to its last committed state so the extension can pull cleanly.
Pull the latest DevOps commits with Flosum: Pull Branch. Your local project is now in sync with the remote branch.
Reapply your saved edits on top of the refreshed code base, resolving any conflicts that arise from overlapping changes.
Commit your changes with Flosum: Commit Changes to push them back to the DevOps branch.
Last updated
Was this helpful?