﻿<head><script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-4357510538660394"
     crossorigin="anonymous"></script></head>URL: /cli

---
title: "CLI reference"
icon: "terminal"
description: "Complete reference for squirrel CLI commands"
---

The `squirrel` CLI provides commands for website auditing, crawling, and self-management.

Run `squirrel` on its own to see every command, grouped, with a quick start. After installing, run [`squirrel setup`](/cli/setup) once: it signs you in, installs the agent skills, sets your defaults and offers to run your first audit.

## Top-level commands

### Project commands

Commands that operate on websites and projects:

| Command | Description |
|---------|-------------|
| [`setup`](/cli/setup) | Sign in, install the agent skills and pick your defaults |
| [`audit`](/cli/audit) | Run full website audit (crawl + analyze) |
| [`crawl`](/cli/crawl) | Crawl website without analysis |
| [`analyze`](/cli/analyze) | Run audit rules on stored crawl |
| [`report`](/cli/report) | View and query stored audit reports |
| [`entities`](/cli/entities) | Query the entity map of a stored audit |
| [`pages`](/cli/pages) | List the pages of a stored audit with their titles, descriptions, links and flags |
| [`init`](/cli/init) | Create squirrel.toml config file |
| [`config`](/cli/config) | View and modify configuration |
| [`feedback`](/cli/feedback) | Send feedback to squirrelscan team |
| [`support`](/cli/support) | Open and follow support tickets with the team |
| [`auth`](/cli/auth) | Authentication for cloud features and publishing |
| [`ci`](/cli/ci) | Audit a deployed URL in the cloud and fail on findings new since the previous audit |
| [`credits`](/cli/credits) | Show cloud credit balance and pricing |
| [`mcp`](/cli/mcp) | Run the local MCP server for agents |

### Self-management commands

Commands for managing the CLI itself:

| Command | Description |
|---------|-------------|
| [`self install`](/cli/self#install) | Bootstrap local installation |
| [`self update`](/cli/self#update) | Check and apply updates |
| [`self completion`](/cli/self#completion) | Generate shell completions |
| [`self doctor`](/cli/self#doctor) | Run health checks |
| [`self version`](/cli/self#version) | Show version information |
| [`self settings`](/cli/self#settings) | Manage CLI settings |
| [`self uninstall`](/cli/self#uninstall) | Remove squirrel from system |

## Quick examples

### Run audit on website

```bash
squirrel audit https://nutshop.squirrelscan.com
```

### Crawl 200 pages and export as JSON

```bash
squirrel audit https://nutshop.squirrelscan.com -m 200 -f json -o report.json
```

### View latest audit report

```bash
squirrel report
```

### List all stored audits

```bash
squirrel report --list
```

### Update to latest version

```bash
squirrel self update
```

## Global options

All commands support:

| Option | Description |
|--------|-------------|
| `-c, --config-file` | Path to config file (default: auto-discover) |

## Getting help

View help for any command:

```bash
squirrel --help
squirrel audit --help
squirrel self update --help
```

## Next steps