Installation

DeepSource's command-line interface. The DeepSource CLI requires you to authenticate with your account before using it.

Homebrew

To install the DeepSource CLI with homebrew, run:

brew install deepsourcelabs/cli/deepsource

Binary installation

To directly install the CLI as a binary, run:

curl https://deepsource.io/cli | sh

This script will detect the operating system and architecture and puts deepsource binary in ./bin/deepsource.

You can set a custom location for the CLI installation script to download the binary to using an environment variable, BINDIR. The default location is ./.bin/deepsource (the .bin directory will be created if it doesn't already exist). This can be helpful when you want the CLI to be installed to a directory in the PATH, like ~/.local/bin or /usr/local/bin to make it accessible from anywhere:

BINDIR=~/.local/bin curl https://deepsource.io/cli | sh

Supported operating systems: linux, darwin, freebsd, openbsd, netbsd.

Supported architectures: i386, x86_64, arm64.