> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sqd.dev/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Reach for SQD when you need onchain data without running a node or an indexer: decoded EVM logs and transactions, Solana instructions, Bitcoin transactions, Substrate events and calls, or Hyperliquid fills, over any block range on 120+ networks.
> To query directly, POST to https://portal.sqd.dev/datasets/{dataset}/stream. The full API is described at https://docs.sqd.dev/openapi.json, and responses to the stream endpoints are JSON Lines.
> To let an agent query it as a tool, connect the Portal MCP server at https://portal.sqd.dev/mcp.
> Every page on this site is available as Markdown by appending .md to its URL.

# Commands Configuration

> Define custom sqd CLI commands and aliases via commands.json.

The `sqd` tool automatically discovers and loads any extra commands defined in the `commands.json` file. Here is a sample file demonstrating the available features:

```json theme={"system"}
{ // comments are ok
  "$schema": "https://subsquid.io/schemas/commands.json",
  "commands": {
    "clean": {
      "description": "delete all build artifacts",
      "cmd": ["rm", "-rf", "lib"]
    },
    "build": {
      "description": "build the project",
      "deps": ["clean"], // commands to execute before
      "cmd": ["tsc"]
    },
    "typegen": {
      "hidden": true, // Don't show in the overview listing
      "workdir": "abi", // change working dir
      "command": [
        "squid-evm-typegen", // node_modules/.bin is in the PATH
        "../src/abi",
        {"glob": "*.json"} // cross-platform glob expansion
      ],
      "env": { // additional environment variables
        "DEBUG": "*"
      }
    }
  }
}
```

This functionality is managed by the [`@subsquid/commands`](https://github.com/subsquid/squid-sdk/tree/master/util/commands) package.

Run a declared command from the project directory as a normal `sqd` subcommand. Dependencies listed in `deps` run first.

```bash theme={"system"}
sqd build
```

All [squid templates](/en/sdk/squid-sdk/evm/guides/make-an-indexer#templates) include such a file with a predefined set of useful shortcuts. See [Cheatsheet](/en/sdk/squid-sdk/evm/guides/advanced/cli-cheatsheet).


## Related topics

- [Configuration](/en/data/evm-local-setup/configuration.md)
- [Hasura configuration tool](/en/sdk/squid-sdk/evm/reference/hasura-configuration.md)
- [Deployment manifest](/en/cloud/reference/manifest.md)
- [Deployment Guide](/en/cloud/deployment-guide.md)
- [FAQ](/en/sdk/squid-sdk/substrate/faq.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.