Installing Flosum CLI Node.js Package
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 explains how to install the Flosum CLI, the command-line tool for Flosum DevOps. You can use the Flosum CLI on its own from a terminal, and it is also required by the Flosum DevOps-CLI Extension for Visual Studio Code.
The Flosum CLI compiles a native component on your machine during installation, so it requires a working build toolchain (Python and a C++ compiler) in addition to Node.js. Complete all prerequisites below before running the install command.
Prerequisites
Node.js and npm
The Flosum CLI requires Node.js 22 and npm 10. Newer Node.js releases are not supported.
Go to nodejs.org. The page defaults to the newest release, so use the version dropdown to select 22.x, then download and run the installer. Node.js 22 includes npm 10.
Verify both versions in a terminal:
node --version
npm --versionConfirm that
node --versionreports v22.x and thatnpm --versionreports 10.x.
Node.js 24 Installs an Older Release Without Warning
If you install Flosum CLI with Node.js 24, npm will install an older version of Flosum CLI without reporting any errors. Running flosum --version reports the older version. Older releases do not support current Flosum DevOps and will not work.
Downgrade to Node.js 22 before you install. If you have already installed the CLI on Node.js 24, remove it using the steps in Troubleshooting, install Node.js 22, then run the install command again.
Do Not Upgrade npm
Every installation ends with a notice that a newer major version of npm is available, along with a command to install it. Do not run that command. The Flosum CLI requires npm 10, and upgrading moves your machine off the supported configuration.
If you have already upgraded, reinstall Node.js 22, which restores npm 10.
Build Tools
The Flosum CLI depends on a native module that is compiled from C source code during installation. Your machine needs Python 3 and a C++ compiler available before installation, or the installation will fail.
macOS
Install the Xcode Command Line Tools, which provide the compiler and Python:
xcode-select --installLinux
Install the compiler toolchain and Python. On Debian and Ubuntu:
sudo apt install build-essential python3Use the equivalent package group for your distribution.
Installing the Flosum CLI
Verify the Installation
Run the following command:
Confirm that a version number is returned. A version number indicates a successful installation.
Compare the installed version against the latest published release:
Confirm that both commands report the same version. If
flosum --versionreports a lower number, an older release was installed. See Troubleshooting.
Using Flosum CLI
Review the Flosum CLI package commands below for a list of available commands and explanations of what each does. Because the DevOps-CLI Extension calls these commands, you can also review the following article for more detailed instructions.
Troubleshooting
Last updated
Was this helpful?