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

# squarecloud app network

> Square Cloud 上のアプリケーションの DNS、カスタムドメイン、エッジのオブザーバビリティを管理します。

アプリケーションの DNS レコード、カスタムドメイン、エッジのオブザーバビリティ（アナリティクス、エラー、ログ、レイテンシ、キャッシュ）を扱います。アプリケーション ID はすべてのサブコマンドで省略可能です。CLI は引数、次にカレントディレクトリの `squarecloud.app` 設定ファイル、最後にインタラクティブな選択メニューの順で解決します。

```bash theme={null}
squarecloud app network dns
# Shows the DNS records required to point a custom domain at the application.
```

```bash theme={null}
squarecloud app network domain example.com --app <appID>
# Sets the custom domain of the application.
```

analytics、errors、logs、performance はいずれも `--start`/`--end`（RFC 3339 形式のタイムスタンプ）を受け付け、デフォルトは過去 24 時間です:

```bash theme={null}
squarecloud app network analytics
# Summarizes visits, requests and traffic for the last 24 hours.
```

```bash theme={null}
squarecloud app network analytics --start 2026-07-01T00:00:00Z --end 2026-07-02T00:00:00Z --country BR --status 200
# Filters analytics by a custom window and one or more of: --country, --ip, --path, --status, --os,
# --browser, --protocol, --referer, --provider, --content-type, --bot.
```

```bash theme={null}
squarecloud app network errors
# Summarizes 5xx edge errors for the last 24 hours, with the top failing paths.
```

```bash theme={null}
squarecloud app network errors --include-4xx
# Also includes 4xx responses in the error breakdown.
```

```bash theme={null}
squarecloud app network logs
# Shows recent edge request logs. Requires a Pro or Enterprise plan.
```

```bash theme={null}
squarecloud app network performance
# Shows edge and origin latency percentiles (p50/p95/p99) and the slowest paths. Requires a Pro or Enterprise plan.
```

```bash theme={null}
squarecloud app network purge-cache
# Purges the entire edge cache of the application.
```

`purge-cache` サブコマンドは破壊的な操作です。パージする前に `y/N` の確認を求めます。確認をスキップするには `-y`/`--yes` を指定してください。

`dns`、`analytics`、`errors`、`logs`、`performance` は、機械可読な生データとして出力する `--json` を受け付けます。

このコマンドの詳細については `squarecloud app network --help` を使用してください。
