The CodeCrafters CLI is a command-line tool that allows you to run tests & view test results from your local machine. It is available for Mac, Linux and Windows (via WSL).

If you haven’t installed the CLI yet, you can do so by following the instructions here.

If you’ve already installed the CLI, you can check its version by running:

codecrafters --version

The latest available version can be found here.

To update the CLI, follow the OS-specific instructions below.

Mac

If you have the Homebrew package manager installed, the CodeCrafters CLI can be installed by running:

brew update
brew upgrade codecrafters-io/tap/codecrafters

If not, you can just re-run the install script:

curl https://codecrafters.io/install.sh | sh

Linux

Re-run the install script:

curl https://codecrafters.io/install.sh | sh

Windows

If you have a Linux distribution installed using WSL, just re-run the install script:

curl https://codecrafters.io/install.sh | sh