← Troubleshooting guides

How to fix a failing SpecDD CLI install or "command not found"

How-To Troubleshooting Beginner 1191002HOWTO-1191002

HOWTO-1191002TroubleshootingBeginner

This guide shows you how to fix a failing SpecDD CLI install or a specdd: command not found error.

The usual causes are an unsupported Node.js version, a global package directory that is not on PATH, installing in one environment and running in another, or testing before the shell has refreshed.

Short answer

Run specdd --help. If the command is missing, check your install method, confirm Node.js 22 or newer for npm or Yarn installs, inspect the global package path, open a new terminal, and verify that the shell can find specdd. Use Docker when you do not want or cannot use a local install.

Steps

1. Check whether specdd is available

Run:

specdd --help

If help output appears, the CLI is installed and on your PATH.

If the shell says the command is not found, continue.

2. Verify the install method

Supported install paths include:

npm install --global specdd
yarn global add specdd
brew tap specdd/cli
brew install specdd

For Docker:

docker run --rm ghcr.io/specdd/cli:latest --help

Use one install path at a time so you know which command should provide specdd.

3. Check Node and package manager output

For npm or Yarn installs, check:

node -v
npm -v

Node.js must be version 22 or newer. If the install command printed warnings or errors, fix those first instead of only checking PATH.

4. Refresh your shell PATH

After installing a global command, open a new terminal and try:

specdd --help

If it still fails, check where your package manager installs global binaries:

npm bin --global

or inspect your package manager’s global directory. Add the global binary directory to your shell PATH using your normal shell configuration.

5. Check environment mismatch

Make sure you installed and run the CLI in the same environment:

Installing on Windows does not make specdd available inside WSL unless Node and the package are installed there too.

6. Try Docker when local install is blocked

Use Docker when local Node or PATH setup is not practical:

docker run --rm ghcr.io/specdd/cli:latest --help

For project commands, mount the project:

docker run --rm -v "$PWD:/workspace" ghcr.io/specdd/cli:latest init

7. Verify the command

Run:

specdd --help
specdd init --help
specdd update --help

The CLI is ready when these commands exit successfully.

Common causes

← Troubleshooting guides