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

# Context & Configuration

The CLI keeps two kinds of state: connection settings (which Tapedrive deployment and
wallet) and the active tape. The config file lives at `~/.tape/cli-config.yaml` by
default, and every setting has a flag and an environment-variable override
(`TAPE_RPC_URL`, `TAPE_KEYPAIR`, `TAPE_CONFIG`).

## Deployment and wallet

The global options match Solana CLI conventions. `--url` (`-u`) accepts the one-letter shortcuts `l`, `d`, `t`, `m` or a full RPC URL. `--keypair` (`-k`) defaults to the Solana CLI's path at `~/.config/solana/id.json`.

Use `l` for local Tapedrive. Tapenet runs on Solana devnet, so its shortcut is `d`.

```bash theme={null}
tape balance -u d -k ~/wallets/dev.json
```

## The active tape

Most commands target a tape, and they fall back to the active one unless `--tape` says otherwise. `tape create` sets its new tape active by default. Switching and checking:

```bash theme={null}
tape use ./project.tape.json
```

```text Output theme={null}
active tape: ./project.tape.json
address:     3fTapeAddressExampleBase58Value111111111111
```

`tape address` prints the active tape's address; `tape keypair` prints its keypair path.

## Site domain

`tape deploy` and `tape object sync` print the site URL as
`https://<label>.<site domain>/`. The site domain defaults to Tapenet's `tape.site`. For a
local deployment or another gateway, set `TAPE_SITE_DOMAIN` or add `site_domain` to the
config file:

```yaml ~/.tape/cli-config.yaml theme={null}
site_domain: sites.example.net
```

## Output and diagnostics

`--output json` (`-o json`) switches from text to JSON for scripting. `--verbose` turns on debug logs, and `--timings` prints a per-command SDK timing summary to stderr.

```bash theme={null}
tape info -o json | jq .capacity_bytes
```
