メインコンテンツへスキップ
アプリケーションの DNS レコード、カスタムドメイン、エッジのオブザーバビリティ(アナリティクス、エラー、ログ、レイテンシ、キャッシュ)を扱います。アプリケーション ID はすべてのサブコマンドで省略可能です。CLI は引数、次にカレントディレクトリの squarecloud.app 設定ファイル、最後にインタラクティブな選択メニューの順で解決します。
squarecloud app network dns
# Shows the DNS records required to point a custom domain at the application.
squarecloud app network domain example.com --app <appID>
# Sets the custom domain of the application.
analytics、errors、logs、performance はいずれも --start/--end(RFC 3339 形式のタイムスタンプ)を受け付け、デフォルトは過去 24 時間です:
squarecloud app network analytics
# Summarizes visits, requests and traffic for the last 24 hours.
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.
squarecloud app network errors
# Summarizes 5xx edge errors for the last 24 hours, with the top failing paths.
squarecloud app network errors --include-4xx
# Also includes 4xx responses in the error breakdown.
squarecloud app network logs
# Shows recent edge request logs. Requires a Pro or Enterprise plan.
squarecloud app network performance
# Shows edge and origin latency percentiles (p50/p95/p99) and the slowest paths. Requires a Pro or Enterprise plan.
squarecloud app network purge-cache
# Purges the entire edge cache of the application.
purge-cache サブコマンドは破壊的な操作です。パージする前に y/N の確認を求めます。確認をスキップするには -y/--yes を指定してください。 dnsanalyticserrorslogsperformance は、機械可読な生データとして出力する --json を受け付けます。 このコマンドの詳細については squarecloud app network --help を使用してください。