> ## 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 130+ 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.

# Authentication

> Authenticate the sqd CLI with SQD Cloud and run protected deployment commands.

# `sqd auth`

Log in to the Cloud

* [`sqd auth`](#sqd-auth)

## `sqd auth`

Log in to the Cloud

```
USAGE
  $ sqd auth -k <value> [--interactive]

FLAGS
  -k, --key=<value>       (required) Cloud auth key. Log in to https://app.subsquid.io to create or update your key.
      --[no-]interactive  Disable interactive mode
```

*See code: [src/commands/auth.ts](https://github.com/subsquid/squid-cli/tree/master/src/commands/auth.ts)*


## Related topics

- [Check Authentication Status](/en/cloud/reference/cli/whoami.md)
- [Authorization](/en/sdk/squid-sdk/substrate/reference/openreader/configuration/authorization.md)
- [Railway deployment](/en/sdk/pipes-sdk/evm/guides/advanced-topics/railway-deployment.md)
- [Configure Ponder with Portal](/en/sdk/alternative-clients/ponder/configuration.md)
- [sqd docs](/en/cloud/reference/cli/docs.md)
