Install the DeepSource CLI to interact with DeepSource from your terminal.
The DeepSource CLI helps you access and interact with DeepSource right from your terminal. Here’s how to install it on different platforms.
To install the DeepSource CLI with homebrew, run:
To directly install the CLI as a binary, run:
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:
The CLI requires that the tests are run inside a git repo, and that the git binary is installed. The DEEPSOURCE_DSN
value needs to be set in the environment, too.
After installation, you’ll need to authenticate the CLI with your DeepSource account.
To use DeepSource CLI in your local environment, run:
This will open a browser window where you can authenticate with your DeepSource account.
For reporting code coverage in CI environments, you don’t need to authenticate. Instead, you’ll use environment variables like DEEPSOURCE_DSN
.
Install the DeepSource CLI to interact with DeepSource from your terminal.
The DeepSource CLI helps you access and interact with DeepSource right from your terminal. Here’s how to install it on different platforms.
To install the DeepSource CLI with homebrew, run:
To directly install the CLI as a binary, run:
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:
The CLI requires that the tests are run inside a git repo, and that the git binary is installed. The DEEPSOURCE_DSN
value needs to be set in the environment, too.
After installation, you’ll need to authenticate the CLI with your DeepSource account.
To use DeepSource CLI in your local environment, run:
This will open a browser window where you can authenticate with your DeepSource account.
For reporting code coverage in CI environments, you don’t need to authenticate. Instead, you’ll use environment variables like DEEPSOURCE_DSN
.