@temps-sdk/cli 0.1.36 → 0.1.38
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +193 -0
- package/dist/index.js +89808 -89620
- package/dist/skills/temps/SKILL.md +140 -0
- package/dist/skills/temps/agents/openai.yaml +7 -0
- package/dist/skills/temps/evals/evals.json +95 -0
- package/dist/skills/temps/howtos/backup-recovery.md +41 -0
- package/dist/skills/temps/howtos/ci-automation.md +18 -0
- package/dist/skills/temps/howtos/deploy-application.md +29 -0
- package/dist/skills/temps/howtos/diagnose-deployment.md +17 -0
- package/dist/skills/temps/howtos/framework-routing.md +28 -0
- package/dist/skills/temps/howtos/javascript-typescript.md +57 -0
- package/dist/skills/temps/howtos/managed-services.md +83 -0
- package/dist/skills/temps/howtos/observability-onboarding.md +52 -0
- package/dist/skills/temps/howtos/projects-and-monorepos.md +49 -0
- package/dist/skills/temps/howtos/python.md +42 -0
- package/dist/skills/temps/howtos/rust.md +30 -0
- package/dist/skills/temps/references/cli-runtime.md +68 -0
- package/dist/skills/temps/references/commands/INDEX.md +97 -0
- package/dist/skills/temps/references/commands/access.md +49 -0
- package/dist/skills/temps/references/commands/ai.md +43 -0
- package/dist/skills/temps/references/commands/alarms.md +87 -0
- package/dist/skills/temps/references/commands/analytics.md +369 -0
- package/dist/skills/temps/references/commands/apikeys.md +96 -0
- package/dist/skills/temps/references/commands/audit.md +41 -0
- package/dist/skills/temps/references/commands/backups.md +263 -0
- package/dist/skills/temps/references/commands/cloud.md +371 -0
- package/dist/skills/temps/references/commands/cluster.md +31 -0
- package/dist/skills/temps/references/commands/configure.md +55 -0
- package/dist/skills/temps/references/commands/containers.md +110 -0
- package/dist/skills/temps/references/commands/context.md +49 -0
- package/dist/skills/temps/references/commands/custom-domains.md +98 -0
- package/dist/skills/temps/references/commands/data.md +90 -0
- package/dist/skills/temps/references/commands/delivery-profiles.md +69 -0
- package/dist/skills/temps/references/commands/delivery.md +116 -0
- package/dist/skills/temps/references/commands/deploy-image.md +23 -0
- package/dist/skills/temps/references/commands/deploy-local-image.md +28 -0
- package/dist/skills/temps/references/commands/deploy-static.md +23 -0
- package/dist/skills/temps/references/commands/deploy.md +21 -0
- package/dist/skills/temps/references/commands/deployments.md +172 -0
- package/dist/skills/temps/references/commands/dns-provider.md +196 -0
- package/dist/skills/temps/references/commands/dns.md +181 -0
- package/dist/skills/temps/references/commands/domains.md +187 -0
- package/dist/skills/temps/references/commands/drop.md +21 -0
- package/dist/skills/temps/references/commands/dsn.md +84 -0
- package/dist/skills/temps/references/commands/email-domains.md +160 -0
- package/dist/skills/temps/references/commands/email-providers.md +91 -0
- package/dist/skills/temps/references/commands/emails.md +79 -0
- package/dist/skills/temps/references/commands/env-pull.md +16 -0
- package/dist/skills/temps/references/commands/env-push.md +17 -0
- package/dist/skills/temps/references/commands/environments.md +252 -0
- package/dist/skills/temps/references/commands/errors.md +250 -0
- package/dist/skills/temps/references/commands/facets.md +57 -0
- package/dist/skills/temps/references/commands/flags.md +143 -0
- package/dist/skills/temps/references/commands/funnels.md +92 -0
- package/dist/skills/temps/references/commands/incidents.md +111 -0
- package/dist/skills/temps/references/commands/init.md +16 -0
- package/dist/skills/temps/references/commands/instances.md +56 -0
- package/dist/skills/temps/references/commands/instantiations.md +53 -0
- package/dist/skills/temps/references/commands/ip-access.md +153 -0
- package/dist/skills/temps/references/commands/link.md +15 -0
- package/dist/skills/temps/references/commands/load-balancer.md +73 -0
- package/dist/skills/temps/references/commands/login.md +17 -0
- package/dist/skills/temps/references/commands/logout.md +16 -0
- package/dist/skills/temps/references/commands/logs.md +167 -0
- package/dist/skills/temps/references/commands/mcp-servers.md +70 -0
- package/dist/skills/temps/references/commands/mcp.md +65 -0
- package/dist/skills/temps/references/commands/metrics.md +79 -0
- package/dist/skills/temps/references/commands/migrate.md +109 -0
- package/dist/skills/temps/references/commands/monitors.md +92 -0
- package/dist/skills/temps/references/commands/nodes.md +200 -0
- package/dist/skills/temps/references/commands/notification-preferences.md +47 -0
- package/dist/skills/temps/references/commands/notifications.md +211 -0
- package/dist/skills/temps/references/commands/open.md +17 -0
- package/dist/skills/temps/references/commands/otel-forward.md +210 -0
- package/dist/skills/temps/references/commands/otel.md +38 -0
- package/dist/skills/temps/references/commands/platform.md +147 -0
- package/dist/skills/temps/references/commands/plugin.md +193 -0
- package/dist/skills/temps/references/commands/presets.md +35 -0
- package/dist/skills/temps/references/commands/project-groups.md +255 -0
- package/dist/skills/temps/references/commands/projects.md +270 -0
- package/dist/skills/temps/references/commands/providers.md +277 -0
- package/dist/skills/temps/references/commands/proxy-logs.md +85 -0
- package/dist/skills/temps/references/commands/revenue.md +48 -0
- package/dist/skills/temps/references/commands/rollback.md +18 -0
- package/dist/skills/temps/references/commands/runtime-logs.md +21 -0
- package/dist/skills/temps/references/commands/sandbox.md +428 -0
- package/dist/skills/temps/references/commands/scans.md +113 -0
- package/dist/skills/temps/references/commands/secrets.md +65 -0
- package/dist/skills/temps/references/commands/server.md +50 -0
- package/dist/skills/temps/references/commands/services.md +636 -0
- package/dist/skills/temps/references/commands/session-replay.md +76 -0
- package/dist/skills/temps/references/commands/settings.md +84 -0
- package/dist/skills/temps/references/commands/setup.md +25 -0
- package/dist/skills/temps/references/commands/skills.md +87 -0
- package/dist/skills/temps/references/commands/start.md +20 -0
- package/dist/skills/temps/references/commands/status-pages.md +188 -0
- package/dist/skills/temps/references/commands/status.md +17 -0
- package/dist/skills/temps/references/commands/stop.md +16 -0
- package/dist/skills/temps/references/commands/teams.md +129 -0
- package/dist/skills/temps/references/commands/templates.md +61 -0
- package/dist/skills/temps/references/commands/tokens.md +77 -0
- package/dist/skills/temps/references/commands/traces.md +42 -0
- package/dist/skills/temps/references/commands/traefik-discovery.md +113 -0
- package/dist/skills/temps/references/commands/up.md +25 -0
- package/dist/skills/temps/references/commands/users.md +99 -0
- package/dist/skills/temps/references/commands/webhooks.md +165 -0
- package/dist/skills/temps/references/commands/whoami.md +15 -0
- package/dist/skills/temps/references/commands/workflow.md +42 -0
- package/dist/skills/temps/references/observability/analytics.md +146 -0
- package/dist/skills/temps/references/observability/error-tracking.md +73 -0
- package/dist/skills/temps/references/observability/hygiene.md +112 -0
- package/dist/skills/temps/references/observability/logs.md +43 -0
- package/dist/skills/temps/references/observability/metrics.md +41 -0
- package/dist/skills/temps/references/observability/tracing.md +392 -0
- package/dist/skills/temps/references/runtime-contract.md +115 -0
- package/dist/skills/temps/references/workflows/platform-operations.md +154 -0
- package/dist/skills/temps/scripts/__pycache__/generate_command_references.cpython-314.pyc +0 -0
- package/dist/skills/temps/scripts/__pycache__/test_generate_command_references.cpython-314.pyc +0 -0
- package/dist/skills/temps/scripts/__pycache__/test_validate_skill.cpython-314.pyc +0 -0
- package/dist/skills/temps/scripts/__pycache__/validate_skill.cpython-314.pyc +0 -0
- package/dist/skills/temps/scripts/detect_project_capabilities.py +239 -0
- package/dist/skills/temps/scripts/generate_command_references.py +144 -0
- package/dist/skills/temps/scripts/test_detect_project_capabilities.py +124 -0
- package/dist/skills/temps/scripts/test_generate_command_references.py +128 -0
- package/dist/skills/temps/scripts/test_validate_skill.py +84 -0
- package/dist/skills/temps/scripts/validate_skill.py +111 -0
- package/package.json +2 -2
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
<!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
|
|
2
|
+
|
|
3
|
+
# `analytics` command reference
|
|
4
|
+
|
|
5
|
+
Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
|
|
6
|
+
|
|
7
|
+
## Contents
|
|
8
|
+
|
|
9
|
+
- [`analytics keys`](#analytics-keys)
|
|
10
|
+
- [`analytics overview`](#analytics-overview)
|
|
11
|
+
- [`analytics top`](#analytics-top)
|
|
12
|
+
- [`analytics funnels`](#analytics-funnels)
|
|
13
|
+
- [`analytics performance`](#analytics-performance)
|
|
14
|
+
- [`analytics ai-agents`](#analytics-ai-agents)
|
|
15
|
+
- [`analytics ai-pages`](#analytics-ai-pages)
|
|
16
|
+
- [`analytics ai-page`](#analytics-ai-page)
|
|
17
|
+
- [`analytics api-overview`](#analytics-api-overview)
|
|
18
|
+
- [`analytics api-routes`](#analytics-api-routes)
|
|
19
|
+
- [`analytics api-callers`](#analytics-api-callers)
|
|
20
|
+
- [`analytics api-ip`](#analytics-api-ip)
|
|
21
|
+
- [`analytics api-path`](#analytics-api-path)
|
|
22
|
+
- [`analytics api-query`](#analytics-api-query)
|
|
23
|
+
- [`analytics api-summary`](#analytics-api-summary)
|
|
24
|
+
- [`analytics enrich`](#analytics-enrich)
|
|
25
|
+
|
|
26
|
+
## `analytics` (alias: `stats`)
|
|
27
|
+
|
|
28
|
+
View project analytics
|
|
29
|
+
|
|
30
|
+
**Subcommands:**
|
|
31
|
+
|
|
32
|
+
- `keys` - Manage analytics ingest keys (pa_...) for apps Temps does not deploy
|
|
33
|
+
- `overview` (`o`) - Show analytics dashboard overview
|
|
34
|
+
- `top` - Show breakdown by dimension: pages, referrers, browsers, os, devices, countries, regions, cities, channels, events, languages, utm_source, utm_medium, utm_campaign
|
|
35
|
+
- `funnels` - Show funnel conversion metrics for all funnels
|
|
36
|
+
- `performance` (`speed`) - Show real-user Web Vitals and optional dimension breakdowns
|
|
37
|
+
- `ai-agents` - Show AI crawler / provider breakdown (web /analytics/ai-agents)
|
|
38
|
+
- `ai-pages` - Show pages crawled by AI agents, with distinct-agent counts
|
|
39
|
+
- `ai-page` - Show which agents/providers crawled a single page (e.g. /docs)
|
|
40
|
+
- `api-overview` - Show API traffic timeseries (requests, errors, latency) from /api-analytics/timeseries
|
|
41
|
+
- `api-routes` - Show top API routes by request count from /api-analytics/routes
|
|
42
|
+
- `api-callers` - Show top API callers by client IP from /api-analytics/callers
|
|
43
|
+
- `api-ip` - Show routes called by one client IP with latency and error analytics
|
|
44
|
+
- `api-path` - Show client IPs calling one path with latency and error analytics
|
|
45
|
+
- `api-query` - Run a typed multi-dimensional API traffic aggregation
|
|
46
|
+
- `api-summary` - Show an AI-generated summary of API traffic from /api-analytics/summary (requires AI Assistance to be configured and enabled on the project)
|
|
47
|
+
- `enrich` - Attach identity or attributes to a visitor (merges into custom_data; a null value removes a key)
|
|
48
|
+
|
|
49
|
+
### `analytics keys`
|
|
50
|
+
|
|
51
|
+
Manage analytics ingest keys (pa_...) for apps Temps does not deploy
|
|
52
|
+
|
|
53
|
+
**Subcommands:**
|
|
54
|
+
|
|
55
|
+
- `list` (`ls`) - List analytics ingest keys for a project
|
|
56
|
+
- `create` (`add`) - Mint a new analytics ingest key
|
|
57
|
+
- `update` - Update an ingest key's label, origin allowlist, or rate limit
|
|
58
|
+
- `rotate` - Replace an ingest key value, keeping the same row and scope
|
|
59
|
+
- `revoke` - Revoke (deactivate) an analytics ingest key
|
|
60
|
+
|
|
61
|
+
#### `analytics keys list` (alias: `ls`)
|
|
62
|
+
|
|
63
|
+
List analytics ingest keys for a project
|
|
64
|
+
|
|
65
|
+
**Options:**
|
|
66
|
+
|
|
67
|
+
| Flag | Description | Default | Required |
|
|
68
|
+
|------|-------------|---------|----------|
|
|
69
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
70
|
+
| `--json` | Output in JSON format | - | No |
|
|
71
|
+
|
|
72
|
+
#### `analytics keys create` (alias: `add`)
|
|
73
|
+
|
|
74
|
+
Mint a new analytics ingest key
|
|
75
|
+
|
|
76
|
+
**Options:**
|
|
77
|
+
|
|
78
|
+
| Flag | Description | Default | Required |
|
|
79
|
+
|------|-------------|---------|----------|
|
|
80
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
81
|
+
| `-n, --name <name>` | Operator-facing label for the key | - | No |
|
|
82
|
+
| `--environment-id <id>` | Scope the key to one environment (omit for a project-wide key) | - | No |
|
|
83
|
+
| `--allowed-origins <origins...>` | Browser origins allowed to use this key (omit to allow any origin) | - | No |
|
|
84
|
+
| `--rate-limit <n>` | Requests per minute (omit for the server default; 0 or less for unlimited) | - | No |
|
|
85
|
+
| `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
|
|
86
|
+
| `--json` | Output in JSON format | - | No |
|
|
87
|
+
|
|
88
|
+
#### `analytics keys update`
|
|
89
|
+
|
|
90
|
+
Update an ingest key's label, origin allowlist, or rate limit
|
|
91
|
+
|
|
92
|
+
**Options:**
|
|
93
|
+
|
|
94
|
+
| Flag | Description | Default | Required |
|
|
95
|
+
|------|-------------|---------|----------|
|
|
96
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
97
|
+
| `--key-id <id>` | Analytics ingest key ID | - | Yes |
|
|
98
|
+
| `-n, --name <name>` | New operator-facing label | - | No |
|
|
99
|
+
| `--allowed-origins <origins...>` | Replace the origin allowlist with these origins | - | No |
|
|
100
|
+
| `--clear-origins` | Clear the origin allowlist (allow any origin) | - | No |
|
|
101
|
+
| `--rate-limit <n>` | New requests-per-minute limit | - | No |
|
|
102
|
+
| `--clear-rate-limit` | Clear the rate limit (unlimited) | - | No |
|
|
103
|
+
| `--json` | Output in JSON format | - | No |
|
|
104
|
+
|
|
105
|
+
#### `analytics keys rotate`
|
|
106
|
+
|
|
107
|
+
Replace an ingest key value, keeping the same row and scope
|
|
108
|
+
|
|
109
|
+
**Options:**
|
|
110
|
+
|
|
111
|
+
| Flag | Description | Default | Required |
|
|
112
|
+
|------|-------------|---------|----------|
|
|
113
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
114
|
+
| `--key-id <id>` | Analytics ingest key ID | - | Yes |
|
|
115
|
+
| `-f, --force` | Skip confirmation | - | No |
|
|
116
|
+
| `-y, --yes` | Skip confirmation (alias for --force) | - | No |
|
|
117
|
+
| `--json` | Output in JSON format | - | No |
|
|
118
|
+
|
|
119
|
+
#### `analytics keys revoke`
|
|
120
|
+
|
|
121
|
+
Revoke (deactivate) an analytics ingest key
|
|
122
|
+
|
|
123
|
+
**Options:**
|
|
124
|
+
|
|
125
|
+
| Flag | Description | Default | Required |
|
|
126
|
+
|------|-------------|---------|----------|
|
|
127
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
128
|
+
| `--key-id <id>` | Analytics ingest key ID | - | Yes |
|
|
129
|
+
| `-f, --force` | Skip confirmation | - | No |
|
|
130
|
+
| `-y, --yes` | Skip confirmation (alias for --force) | - | No |
|
|
131
|
+
|
|
132
|
+
### `analytics overview` (alias: `o`)
|
|
133
|
+
|
|
134
|
+
Show analytics dashboard overview
|
|
135
|
+
|
|
136
|
+
**Options:**
|
|
137
|
+
|
|
138
|
+
| Flag | Description | Default | Required |
|
|
139
|
+
|------|-------------|---------|----------|
|
|
140
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
141
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
|
|
142
|
+
| `--json` | Output in JSON format | - | No |
|
|
143
|
+
|
|
144
|
+
### `analytics top`
|
|
145
|
+
|
|
146
|
+
Show breakdown by dimension: pages, referrers, browsers, os, devices, countries, regions, cities, channels, events, languages, utm_source, utm_medium, utm_campaign
|
|
147
|
+
|
|
148
|
+
**Options:**
|
|
149
|
+
|
|
150
|
+
| Flag | Description | Default | Required |
|
|
151
|
+
|------|-------------|---------|----------|
|
|
152
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
153
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
|
|
154
|
+
| `--limit <n>` | Number of results (default: 20, max: 100) | - | No |
|
|
155
|
+
| `--json` | Output in JSON format | - | No |
|
|
156
|
+
|
|
157
|
+
### `analytics funnels`
|
|
158
|
+
|
|
159
|
+
Show funnel conversion metrics for all funnels
|
|
160
|
+
|
|
161
|
+
**Options:**
|
|
162
|
+
|
|
163
|
+
| Flag | Description | Default | Required |
|
|
164
|
+
|------|-------------|---------|----------|
|
|
165
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
166
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `7d` | No |
|
|
167
|
+
| `--json` | Output in JSON format | - | No |
|
|
168
|
+
|
|
169
|
+
### `analytics performance` (alias: `speed`)
|
|
170
|
+
|
|
171
|
+
Show real-user Web Vitals and optional dimension breakdowns
|
|
172
|
+
|
|
173
|
+
**Options:**
|
|
174
|
+
|
|
175
|
+
| Flag | Description | Default | Required |
|
|
176
|
+
|------|-------------|---------|----------|
|
|
177
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
178
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (ignored with --start-date/--end-date) | `7d` | No |
|
|
179
|
+
| `--start-date <date>` | Explicit window start (RFC 3339; requires --end-date) | - | No |
|
|
180
|
+
| `--end-date <date>` | Explicit window end (RFC 3339; requires --start-date) | - | No |
|
|
181
|
+
| `--environment-id <id>` | Restrict samples to one environment ID | - | No |
|
|
182
|
+
| `--deployment-id <id>` | Restrict samples to one deployment ID | - | No |
|
|
183
|
+
| `--device <device>` | Device filter: desktop or mobile | - | No |
|
|
184
|
+
| `--include-bots` | Include crawler and datacenter bot samples | - | No |
|
|
185
|
+
| `--group-by <dimension>` | Break down by path, country, region, city, device_type, browser, or operating_system | - | No |
|
|
186
|
+
| `--path <path>` | Restrict samples to one page pathname | - | No |
|
|
187
|
+
| `--country <country>` | Restrict samples to one country | - | No |
|
|
188
|
+
| `--region <region>` | Restrict samples to one region | - | No |
|
|
189
|
+
| `--city <city>` | Restrict samples to one city | - | No |
|
|
190
|
+
| `--browser <browser>` | Restrict samples to one browser | - | No |
|
|
191
|
+
| `--os <operating-system>` | Restrict samples to one operating system | - | No |
|
|
192
|
+
| `--json` | Output in JSON format | - | No |
|
|
193
|
+
|
|
194
|
+
### `analytics ai-agents`
|
|
195
|
+
|
|
196
|
+
Show AI crawler / provider breakdown (web /analytics/ai-agents)
|
|
197
|
+
|
|
198
|
+
**Options:**
|
|
199
|
+
|
|
200
|
+
| Flag | Description | Default | Required |
|
|
201
|
+
|------|-------------|---------|----------|
|
|
202
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
203
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 24h, 7d, 30d) | `24h` | No |
|
|
204
|
+
| `--limit <n>` | Number of rows to fetch (default: 20, max: 100) | - | No |
|
|
205
|
+
| `--group-by <mode>` | Group rows by "agent" (default) or "provider" | `agent` | No |
|
|
206
|
+
| `--path <path>` | Restrict to one URL path (e.g. /docs) | - | No |
|
|
207
|
+
| `--json` | Output in JSON format | - | No |
|
|
208
|
+
|
|
209
|
+
### `analytics ai-pages`
|
|
210
|
+
|
|
211
|
+
Show pages crawled by AI agents, with distinct-agent counts
|
|
212
|
+
|
|
213
|
+
**Options:**
|
|
214
|
+
|
|
215
|
+
| Flag | Description | Default | Required |
|
|
216
|
+
|------|-------------|---------|----------|
|
|
217
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
218
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 24h, 7d, 30d) | `24h` | No |
|
|
219
|
+
| `--limit <n>` | Number of pages to fetch (default: 20, max: 100) | - | No |
|
|
220
|
+
| `--path <path>` | Restrict to one URL path (returns just that row) | - | No |
|
|
221
|
+
| `--with-agents` | Also fetch and render the per-agent split for each page (slower) | - | No |
|
|
222
|
+
| `--json` | Output in JSON format | - | No |
|
|
223
|
+
|
|
224
|
+
### `analytics ai-page`
|
|
225
|
+
|
|
226
|
+
Show which agents/providers crawled a single page (e.g. /docs)
|
|
227
|
+
|
|
228
|
+
**Options:**
|
|
229
|
+
|
|
230
|
+
| Flag | Description | Default | Required |
|
|
231
|
+
|------|-------------|---------|----------|
|
|
232
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
233
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 24h, 7d, 30d) | `24h` | No |
|
|
234
|
+
| `--limit <n>` | Number of rows to fetch (default: 50, max: 100) | - | No |
|
|
235
|
+
| `--group-by <mode>` | Group rows by "agent" (default) or "provider" | `agent` | No |
|
|
236
|
+
| `--json` | Output in JSON format | - | No |
|
|
237
|
+
|
|
238
|
+
### `analytics api-overview`
|
|
239
|
+
|
|
240
|
+
Show API traffic timeseries (requests, errors, latency) from /api-analytics/timeseries
|
|
241
|
+
|
|
242
|
+
**Options:**
|
|
243
|
+
|
|
244
|
+
| Flag | Description | Default | Required |
|
|
245
|
+
|------|-------------|---------|----------|
|
|
246
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
247
|
+
| `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
|
|
248
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
|
|
249
|
+
| `--json` | Output in JSON format | - | No |
|
|
250
|
+
|
|
251
|
+
### `analytics api-routes`
|
|
252
|
+
|
|
253
|
+
Show top API routes by request count from /api-analytics/routes
|
|
254
|
+
|
|
255
|
+
**Options:**
|
|
256
|
+
|
|
257
|
+
| Flag | Description | Default | Required |
|
|
258
|
+
|------|-------------|---------|----------|
|
|
259
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
260
|
+
| `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
|
|
261
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
|
|
262
|
+
| `--limit <n>` | Number of routes to return (default: 20, max: 100) | - | No |
|
|
263
|
+
| `--offset <n>` | Number of ranked routes to skip (default: 0) | - | No |
|
|
264
|
+
| `--sort-by <metric>` | Sort by requests, latency_avg, or error_rate | `requests` | No |
|
|
265
|
+
| `--order <direction>` | Sort direction: asc or desc | `desc` | No |
|
|
266
|
+
| `--include-synthetic` | Include Temps status-monitor checks | - | No |
|
|
267
|
+
| `--json` | Output in JSON format | - | No |
|
|
268
|
+
|
|
269
|
+
### `analytics api-callers`
|
|
270
|
+
|
|
271
|
+
Show top API callers by client IP from /api-analytics/callers
|
|
272
|
+
|
|
273
|
+
**Options:**
|
|
274
|
+
|
|
275
|
+
| Flag | Description | Default | Required |
|
|
276
|
+
|------|-------------|---------|----------|
|
|
277
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
278
|
+
| `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
|
|
279
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
|
|
280
|
+
| `--limit <n>` | Number of callers to return (default: 20, max: 100) | - | No |
|
|
281
|
+
| `--offset <n>` | Number of ranked callers to skip (default: 0) | - | No |
|
|
282
|
+
| `--sort-by <metric>` | Sort by requests or error_rate | `requests` | No |
|
|
283
|
+
| `--order <direction>` | Sort direction: asc or desc | `desc` | No |
|
|
284
|
+
| `--include-synthetic` | Include Temps status-monitor checks | - | No |
|
|
285
|
+
| `--json` | Output in JSON format | - | No |
|
|
286
|
+
|
|
287
|
+
### `analytics api-ip`
|
|
288
|
+
|
|
289
|
+
Show routes called by one client IP with latency and error analytics
|
|
290
|
+
|
|
291
|
+
**Options:**
|
|
292
|
+
|
|
293
|
+
| Flag | Description | Default | Required |
|
|
294
|
+
|------|-------------|---------|----------|
|
|
295
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
296
|
+
| `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
|
|
297
|
+
| `--period <period>` | Time period (e.g. 1h, 24h, 7d, 30d) | `24h` | No |
|
|
298
|
+
| `--limit <n>` | Rows per page (default: 20, max: 100) | - | No |
|
|
299
|
+
| `--page <n>` | Page number | `1` | No |
|
|
300
|
+
| `--sort-by <metric>` | Sort by requests, latency_avg, or error_rate | `requests` | No |
|
|
301
|
+
| `--order <direction>` | Sort direction: asc or desc | `desc` | No |
|
|
302
|
+
| `--include-synthetic` | Include Temps status-monitor checks | - | No |
|
|
303
|
+
| `--json` | Output in JSON format | - | No |
|
|
304
|
+
|
|
305
|
+
### `analytics api-path`
|
|
306
|
+
|
|
307
|
+
Show client IPs calling one path with latency and error analytics
|
|
308
|
+
|
|
309
|
+
**Options:**
|
|
310
|
+
|
|
311
|
+
| Flag | Description | Default | Required |
|
|
312
|
+
|------|-------------|---------|----------|
|
|
313
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
314
|
+
| `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
|
|
315
|
+
| `--period <period>` | Time period (e.g. 1h, 24h, 7d, 30d) | `24h` | No |
|
|
316
|
+
| `--limit <n>` | Rows per page (default: 20, max: 100) | - | No |
|
|
317
|
+
| `--page <n>` | Page number | `1` | No |
|
|
318
|
+
| `--sort-by <metric>` | Sort by requests or error_rate | `requests` | No |
|
|
319
|
+
| `--order <direction>` | Sort direction: asc or desc | `desc` | No |
|
|
320
|
+
| `--include-synthetic` | Include Temps status-monitor checks | - | No |
|
|
321
|
+
| `--json` | Output in JSON format | - | No |
|
|
322
|
+
|
|
323
|
+
### `analytics api-query`
|
|
324
|
+
|
|
325
|
+
Run a typed multi-dimensional API traffic aggregation
|
|
326
|
+
|
|
327
|
+
**Options:**
|
|
328
|
+
|
|
329
|
+
| Flag | Description | Default | Required |
|
|
330
|
+
|------|-------------|---------|----------|
|
|
331
|
+
| `--group-by <dimensions>` | Comma-separated dimensions (omit for one overall rollup) | - | No |
|
|
332
|
+
| `--metrics <metrics>` | Comma-separated metrics (e.g. requests,error_rate,latency_p95) | - | Yes |
|
|
333
|
+
| `--filter <dimension:operator:value>` | Repeatable filter (operators: eq, not_eq, contains, starts_with, in) | `` | No |
|
|
334
|
+
| `--sort-by <field>` | Requested dimension or metric to sort by | - | No |
|
|
335
|
+
| `--order <direction>` | Sort direction: asc or desc | `desc` | No |
|
|
336
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
337
|
+
| `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
|
|
338
|
+
| `--period <period>` | Time period (e.g. 1h, 24h, 7d, 30d) | `24h` | No |
|
|
339
|
+
| `--page <n>` | Page number | `1` | No |
|
|
340
|
+
| `--limit <n>` | Rows per page (default: 20, max: 100) | - | No |
|
|
341
|
+
| `--include-synthetic` | Include Temps status-monitor checks | - | No |
|
|
342
|
+
| `--json` | Output in JSON format | - | No |
|
|
343
|
+
|
|
344
|
+
### `analytics api-summary`
|
|
345
|
+
|
|
346
|
+
Show an AI-generated summary of API traffic from /api-analytics/summary (requires AI Assistance to be configured and enabled on the project)
|
|
347
|
+
|
|
348
|
+
**Options:**
|
|
349
|
+
|
|
350
|
+
| Flag | Description | Default | Required |
|
|
351
|
+
|------|-------------|---------|----------|
|
|
352
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
353
|
+
| `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
|
|
354
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
|
|
355
|
+
| `--json` | Output in JSON format | - | No |
|
|
356
|
+
|
|
357
|
+
### `analytics enrich`
|
|
358
|
+
|
|
359
|
+
Attach identity or attributes to a visitor (merges into custom_data; a null value removes a key)
|
|
360
|
+
|
|
361
|
+
**Options:**
|
|
362
|
+
|
|
363
|
+
| Flag | Description | Default | Required |
|
|
364
|
+
|------|-------------|---------|----------|
|
|
365
|
+
| `-d, --data <json>` | JSON object to merge, e.g. '{"user_id":"user_123"}' | - | No |
|
|
366
|
+
| `-f, --file <path>` | Read the JSON object to merge from a file | - | No |
|
|
367
|
+
| `--set <key=value>` | Set one key to a string value (repeatable; use --data for numbers, booleans, or nested values) | `` | No |
|
|
368
|
+
| `--unset <key>` | Remove one top-level key (repeatable; sends null) | `` | No |
|
|
369
|
+
| `--json` | Output in JSON format | - | No |
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
<!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
|
|
2
|
+
|
|
3
|
+
# `apikeys` command reference
|
|
4
|
+
|
|
5
|
+
Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
|
|
6
|
+
|
|
7
|
+
## `apikeys` (alias: `keys`)
|
|
8
|
+
|
|
9
|
+
Manage API keys for programmatic access
|
|
10
|
+
|
|
11
|
+
**Subcommands:**
|
|
12
|
+
|
|
13
|
+
- `list` (`ls`) - List all API keys
|
|
14
|
+
- `create` (`add`) - Create a new API key
|
|
15
|
+
- `show` - Show API key details
|
|
16
|
+
- `remove` (`rm`) - Delete an API key
|
|
17
|
+
- `activate` - Activate a deactivated API key
|
|
18
|
+
- `deactivate` - Deactivate an API key
|
|
19
|
+
- `permissions` - List available API key permissions
|
|
20
|
+
|
|
21
|
+
### `apikeys list` (alias: `ls`)
|
|
22
|
+
|
|
23
|
+
List all API keys
|
|
24
|
+
|
|
25
|
+
**Options:**
|
|
26
|
+
|
|
27
|
+
| Flag | Description | Default | Required |
|
|
28
|
+
|------|-------------|---------|----------|
|
|
29
|
+
| `--json` | Output in JSON format | - | No |
|
|
30
|
+
|
|
31
|
+
### `apikeys create` (alias: `add`)
|
|
32
|
+
|
|
33
|
+
Create a new API key
|
|
34
|
+
|
|
35
|
+
**Options:**
|
|
36
|
+
|
|
37
|
+
| Flag | Description | Default | Required |
|
|
38
|
+
|------|-------------|---------|----------|
|
|
39
|
+
| `-n, --name <name>` | API key name | - | No |
|
|
40
|
+
| `-r, --role <role>` | Role type (admin, platform_admin, user, reader, api_reader, custom, metrics_ingest) | - | No |
|
|
41
|
+
| `-e, --expires-in <days>` | Expires in N days (7, 30, 90, 365) | - | No |
|
|
42
|
+
| `-p, --permissions <permissions>` | Comma-separated list of permissions | - | No |
|
|
43
|
+
| `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
|
|
44
|
+
|
|
45
|
+
### `apikeys show`
|
|
46
|
+
|
|
47
|
+
Show API key details
|
|
48
|
+
|
|
49
|
+
**Options:**
|
|
50
|
+
|
|
51
|
+
| Flag | Description | Default | Required |
|
|
52
|
+
|------|-------------|---------|----------|
|
|
53
|
+
| `--id <id>` | API key ID | - | Yes |
|
|
54
|
+
| `--json` | Output in JSON format | - | No |
|
|
55
|
+
|
|
56
|
+
### `apikeys remove` (alias: `rm`)
|
|
57
|
+
|
|
58
|
+
Delete an API key
|
|
59
|
+
|
|
60
|
+
**Options:**
|
|
61
|
+
|
|
62
|
+
| Flag | Description | Default | Required |
|
|
63
|
+
|------|-------------|---------|----------|
|
|
64
|
+
| `--id <id>` | API key ID | - | Yes |
|
|
65
|
+
| `-f, --force` | Skip confirmation | - | No |
|
|
66
|
+
| `-y, --yes` | Skip confirmation prompts (alias for --force) | - | No |
|
|
67
|
+
|
|
68
|
+
### `apikeys activate`
|
|
69
|
+
|
|
70
|
+
Activate a deactivated API key
|
|
71
|
+
|
|
72
|
+
**Options:**
|
|
73
|
+
|
|
74
|
+
| Flag | Description | Default | Required |
|
|
75
|
+
|------|-------------|---------|----------|
|
|
76
|
+
| `--id <id>` | API key ID | - | Yes |
|
|
77
|
+
|
|
78
|
+
### `apikeys deactivate`
|
|
79
|
+
|
|
80
|
+
Deactivate an API key
|
|
81
|
+
|
|
82
|
+
**Options:**
|
|
83
|
+
|
|
84
|
+
| Flag | Description | Default | Required |
|
|
85
|
+
|------|-------------|---------|----------|
|
|
86
|
+
| `--id <id>` | API key ID | - | Yes |
|
|
87
|
+
|
|
88
|
+
### `apikeys permissions`
|
|
89
|
+
|
|
90
|
+
List available API key permissions
|
|
91
|
+
|
|
92
|
+
**Options:**
|
|
93
|
+
|
|
94
|
+
| Flag | Description | Default | Required |
|
|
95
|
+
|------|-------------|---------|----------|
|
|
96
|
+
| `--json` | Output in JSON format | - | No |
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
<!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
|
|
2
|
+
|
|
3
|
+
# `audit` command reference
|
|
4
|
+
|
|
5
|
+
Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
|
|
6
|
+
|
|
7
|
+
## `audit`
|
|
8
|
+
|
|
9
|
+
View audit logs
|
|
10
|
+
|
|
11
|
+
**Subcommands:**
|
|
12
|
+
|
|
13
|
+
- `list` (`ls`) - List audit logs
|
|
14
|
+
- `show` - Show audit log details
|
|
15
|
+
|
|
16
|
+
### `audit list` (alias: `ls`)
|
|
17
|
+
|
|
18
|
+
List audit logs
|
|
19
|
+
|
|
20
|
+
**Options:**
|
|
21
|
+
|
|
22
|
+
| Flag | Description | Default | Required |
|
|
23
|
+
|------|-------------|---------|----------|
|
|
24
|
+
| `--json` | Output in JSON format | - | No |
|
|
25
|
+
| `--limit <n>` | Maximum number of logs to return | `50` | No |
|
|
26
|
+
| `--offset <n>` | Number of logs to skip | - | No |
|
|
27
|
+
| `--operation-type <type>` | Filter by operation type | - | No |
|
|
28
|
+
| `--user-id <id>` | Filter by user ID | - | No |
|
|
29
|
+
| `--from <timestamp>` | Start timestamp (ISO 8601 or epoch ms) | - | No |
|
|
30
|
+
| `--to <timestamp>` | End timestamp (ISO 8601 or epoch ms) | - | No |
|
|
31
|
+
|
|
32
|
+
### `audit show`
|
|
33
|
+
|
|
34
|
+
Show audit log details
|
|
35
|
+
|
|
36
|
+
**Options:**
|
|
37
|
+
|
|
38
|
+
| Flag | Description | Default | Required |
|
|
39
|
+
|------|-------------|---------|----------|
|
|
40
|
+
| `--id <id>` | Audit log ID | - | Yes |
|
|
41
|
+
| `--json` | Output in JSON format | - | No |
|