globe-pointerInstallation

This guide will help you install DevHub CLI on your system. The installation process is straightforward and only requires a few prerequisites.

Prerequisites

Before installing DevHub CLI, make sure you have the following installed on your system:

  • Node.js (version 14.0.0 or higher)

  • npm (usually comes with Node.js)

  • Visual Studio Code (recommended for the best experience)

You can verify your Node.js and npm installation by running:

Installing DevHub CLI

You can install DevHub CLI globally using npm:

To verify the installation, run:

This should display the current version of DevHub CLI.

Version Checking

DevHub CLI now includes an automatic version checker that will:

  • Check for updates when you run any command

  • Notify you if a new version is available

  • Show the current and latest version numbers

  • Provide the update command if needed

When you run devhub create, you'll see one of these messages:

  • ✓ CLI is up to date (version X.X.X)

  • Or an update notification if a new version is available

Updating DevHub CLI

If the version checker notifies you of an update, you can update using:

Uninstalling

If you need to uninstall DevHub CLI:

Next Steps

Now that you have DevHub CLI installed, check out our:

Last updated