Installation
Updated
Install the command line tool with npm install -g @crowsnest/cli, then run crowsnest start. It runs Crowsnest in Docker with one command. You can also run Crowsnest with Docker Compose, or from source with Python 3.12 or newer and Node 20 or newer. The VS Code extension is on the Marketplace.
Run Crowsnest with Docker, or from source with Python 3.12 or newer and Node 20 or newer. Docker is the shorter path. Both give you the same Crowsnest.
Which install should I pick?
| Terminal command | Docker Compose | From source | |
|---|---|---|---|
| You need | Node 20 or newer, and Docker to run the backend | Docker with Docker Compose | Python 3.12 or newer, Node 20 or newer, pnpm or npm |
| Ports | 8000 (Crowsnest) | 8000 (Crowsnest), 3000 (dashboard) | The same |
| Best for | Checking projects from the terminal and the VS Code extension | Trying the dashboard, or running it on one machine | Changing the code |
How do I install with Docker?
Follow the Quickstart. It is two commands, git clone and docker compose up, plus one line in a .env file that names the folder holding your projects. Compose pulls the backend image instead of building it, so the first start is a download of about 430 MB, not a long build. The dashboard is the only part built on your machine.
How do I install from source on macOS, Linux or WSL?
- Get the code and the settings file.
bash git clone https://github.com/devampatel03/Crowsnest.git cd Crowsnest cp .env.example .env - Run the setup script. It copies
.env.exampleto.envif there is no.env, creates a Python virtual environment in the Crowsnest folder, and installs the Python and JavaScript packages. It does not start anything.bash ./scripts/bootstrap.sh - Start Crowsnest. Leave this running.
The setup script prints the name of the environment it creates. Replace the placeholder with that name.
bash source <the environment the setup script created>/bin/activate uvicorn packages.core.api:app --port 8000 - Start the dashboard. In a second terminal:
Open http://localhost:3000. It opens on Horizon.
bash cd packages/dashboard npm install npm run dev
How do I install from source on Windows PowerShell?
Use the same steps with two changes. Copy the settings file with Copy-Item .env.example .env. Create and activate the Python environment yourself, because the setup script needs a POSIX shell such as Git Bash:
python -m venv .venv
.venv\Scripts\activate
pip install -e .
uvicorn packages.core.api:app --port 8000Then start the dashboard as in step 4 above.
How do I install the terminal command?
npm install -g @crowsnest/cli
crowsnest --version
crowsnest startUse -g. Without it npm puts the command in the current folder, and your shell cannot find it. The npm page's own install box leaves -g out. crowsnest start downloads the backend the first time (about 430 MB) and runs it at http://localhost:8000. It needs Docker running. It shares the current folder with the backend, read only, so run it from the folder that holds your projects, or use crowsnest start --projects <folder>. crowsnest stop stops it, and crowsnest doctor checks what is wrong.
Without Docker, crowsnest check still works as a quick check, and crowsnest install --quick runs a reduced check. Plain crowsnest install checks on every run that Crowsnest is running, and if nothing answers it installs nothing and tells you to run crowsnest start. See CLI usage.
To run the command from a source checkout instead, build it in packages/cli with npm install and npm run build, then type node dist/index.js where the docs say crowsnest.
How do I add Slack and VS Code?
Follow the Slack bot and VS Code extension pages. Neither is needed to use Crowsnest.
How do I update?
git pull
docker compose pull
docker compose up -d --build crowsnest-dashboarddocker compose pull fetches the newest backend image. To update the terminal command, run npm install -g @crowsnest/cli again, and crowsnest stop then crowsnest start to run the matching backend. From source, run git pull, then pip install -e . and npm install again.
How do I uninstall?
docker compose down -vThen delete the Crowsnest folder. The -v deletes the stored data. If you used the terminal command, its saved settings live in your user settings folder; remove them with your usual cleanup.
What this does not do
- It does not install the VS Code extension for you. Install it from the Marketplace, see VS Code extension.
- It does not provide a hosted version. You run Crowsnest on your own machine.
- It does not check your versions of Python or Node. A version that is too old shows up as an error during setup.
Next, scan a project from the terminal, or set optional keys on the Configuration page.
Nib's tip: Docker first, source later.
Related
- QuickstartStart Crowsnest and its dashboard with two commands, pick your project from a list and scan it. No account and no API keys needed. A quickstart for both ways.
- ConfigurationCrowsnest runs with no settings. See which API keys are optional, what each one adds, where to put them and what happens when one is missing.
- CLI usageUse the crowsnest command to scan a project, check one package, vet a pull request and stop risky installs. Commands, options and exit codes for your terminal.
- TroubleshootingFix common Crowsnest problems: a dashboard showing Offline or a 404, a port in use, the file-in-use error, Docker not starting and a scan that finds nothing.