@temps-sdk/cli 0.1.37 → 0.2.0-beta.1

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.
Files changed (130) hide show
  1. package/README.md +14 -0
  2. package/dist/index.js +32148 -34152
  3. package/dist/skills/temps/SKILL.md +148 -0
  4. package/dist/skills/temps/agents/openai.yaml +7 -0
  5. package/dist/skills/temps/evals/evals.json +112 -0
  6. package/dist/skills/temps/howtos/backup-recovery.md +41 -0
  7. package/dist/skills/temps/howtos/ci-automation.md +17 -0
  8. package/dist/skills/temps/howtos/curated-services.md +69 -0
  9. package/dist/skills/temps/howtos/deploy-application.md +36 -0
  10. package/dist/skills/temps/howtos/diagnose-deployment.md +17 -0
  11. package/dist/skills/temps/howtos/edge-rules.md +135 -0
  12. package/dist/skills/temps/howtos/framework-routing.md +28 -0
  13. package/dist/skills/temps/howtos/javascript-typescript.md +57 -0
  14. package/dist/skills/temps/howtos/managed-services.md +83 -0
  15. package/dist/skills/temps/howtos/observability-onboarding.md +52 -0
  16. package/dist/skills/temps/howtos/projects-and-monorepos.md +50 -0
  17. package/dist/skills/temps/howtos/python.md +42 -0
  18. package/dist/skills/temps/howtos/rust.md +30 -0
  19. package/dist/skills/temps/references/cli-runtime.md +60 -0
  20. package/dist/skills/temps/references/commands/INDEX.md +102 -0
  21. package/dist/skills/temps/references/commands/access.md +53 -0
  22. package/dist/skills/temps/references/commands/ai.md +47 -0
  23. package/dist/skills/temps/references/commands/alarms.md +91 -0
  24. package/dist/skills/temps/references/commands/analytics.md +568 -0
  25. package/dist/skills/temps/references/commands/apikeys.md +98 -0
  26. package/dist/skills/temps/references/commands/audit.md +41 -0
  27. package/dist/skills/temps/references/commands/backups.md +269 -0
  28. package/dist/skills/temps/references/commands/cloud.md +385 -0
  29. package/dist/skills/temps/references/commands/cluster.md +31 -0
  30. package/dist/skills/temps/references/commands/configure.md +62 -0
  31. package/dist/skills/temps/references/commands/containers.md +110 -0
  32. package/dist/skills/temps/references/commands/context.md +55 -0
  33. package/dist/skills/temps/references/commands/custom-domains.md +98 -0
  34. package/dist/skills/temps/references/commands/data.md +87 -0
  35. package/dist/skills/temps/references/commands/delivery-profiles.md +69 -0
  36. package/dist/skills/temps/references/commands/delivery.md +116 -0
  37. package/dist/skills/temps/references/commands/deploy-image.md +23 -0
  38. package/dist/skills/temps/references/commands/deploy-local-image.md +28 -0
  39. package/dist/skills/temps/references/commands/deploy-static.md +23 -0
  40. package/dist/skills/temps/references/commands/deploy.md +23 -0
  41. package/dist/skills/temps/references/commands/deployments.md +173 -0
  42. package/dist/skills/temps/references/commands/dns-provider.md +196 -0
  43. package/dist/skills/temps/references/commands/dns.md +181 -0
  44. package/dist/skills/temps/references/commands/domains.md +188 -0
  45. package/dist/skills/temps/references/commands/drop.md +23 -0
  46. package/dist/skills/temps/references/commands/dsn.md +84 -0
  47. package/dist/skills/temps/references/commands/edge-rules.md +218 -0
  48. package/dist/skills/temps/references/commands/email-domains.md +160 -0
  49. package/dist/skills/temps/references/commands/email-providers.md +96 -0
  50. package/dist/skills/temps/references/commands/emails.md +79 -0
  51. package/dist/skills/temps/references/commands/env-pull.md +18 -0
  52. package/dist/skills/temps/references/commands/env-push.md +19 -0
  53. package/dist/skills/temps/references/commands/environments.md +500 -0
  54. package/dist/skills/temps/references/commands/errors.md +763 -0
  55. package/dist/skills/temps/references/commands/facets.md +63 -0
  56. package/dist/skills/temps/references/commands/flags.md +246 -0
  57. package/dist/skills/temps/references/commands/funnels.md +92 -0
  58. package/dist/skills/temps/references/commands/incidents.md +115 -0
  59. package/dist/skills/temps/references/commands/init.md +18 -0
  60. package/dist/skills/temps/references/commands/instances.md +62 -0
  61. package/dist/skills/temps/references/commands/instantiations.md +57 -0
  62. package/dist/skills/temps/references/commands/ip-access.md +153 -0
  63. package/dist/skills/temps/references/commands/link.md +17 -0
  64. package/dist/skills/temps/references/commands/load-balancer.md +73 -0
  65. package/dist/skills/temps/references/commands/login.md +22 -0
  66. package/dist/skills/temps/references/commands/logout.md +16 -0
  67. package/dist/skills/temps/references/commands/logs.md +290 -0
  68. package/dist/skills/temps/references/commands/mcp-servers.md +74 -0
  69. package/dist/skills/temps/references/commands/mcp.md +72 -0
  70. package/dist/skills/temps/references/commands/metrics.md +79 -0
  71. package/dist/skills/temps/references/commands/migrate.md +118 -0
  72. package/dist/skills/temps/references/commands/monitors.md +162 -0
  73. package/dist/skills/temps/references/commands/network-policy.md +120 -0
  74. package/dist/skills/temps/references/commands/nodes.md +254 -0
  75. package/dist/skills/temps/references/commands/notification-preferences.md +47 -0
  76. package/dist/skills/temps/references/commands/notifications.md +233 -0
  77. package/dist/skills/temps/references/commands/open.md +19 -0
  78. package/dist/skills/temps/references/commands/otel-forward.md +226 -0
  79. package/dist/skills/temps/references/commands/otel.md +38 -0
  80. package/dist/skills/temps/references/commands/platform.md +151 -0
  81. package/dist/skills/temps/references/commands/plugin.md +222 -0
  82. package/dist/skills/temps/references/commands/presets.md +37 -0
  83. package/dist/skills/temps/references/commands/project-groups.md +292 -0
  84. package/dist/skills/temps/references/commands/projects.md +329 -0
  85. package/dist/skills/temps/references/commands/providers.md +290 -0
  86. package/dist/skills/temps/references/commands/proxy-logs.md +85 -0
  87. package/dist/skills/temps/references/commands/revenue.md +52 -0
  88. package/dist/skills/temps/references/commands/rollback.md +20 -0
  89. package/dist/skills/temps/references/commands/runtime-logs.md +21 -0
  90. package/dist/skills/temps/references/commands/sandbox.md +518 -0
  91. package/dist/skills/temps/references/commands/scans.md +113 -0
  92. package/dist/skills/temps/references/commands/secrets.md +75 -0
  93. package/dist/skills/temps/references/commands/server.md +50 -0
  94. package/dist/skills/temps/references/commands/services.md +642 -0
  95. package/dist/skills/temps/references/commands/session-replay.md +84 -0
  96. package/dist/skills/temps/references/commands/settings.md +84 -0
  97. package/dist/skills/temps/references/commands/setup.md +25 -0
  98. package/dist/skills/temps/references/commands/skills.md +93 -0
  99. package/dist/skills/temps/references/commands/start.md +21 -0
  100. package/dist/skills/temps/references/commands/status-pages.md +455 -0
  101. package/dist/skills/temps/references/commands/status.md +19 -0
  102. package/dist/skills/temps/references/commands/stop.md +16 -0
  103. package/dist/skills/temps/references/commands/surveys.md +165 -0
  104. package/dist/skills/temps/references/commands/teams.md +143 -0
  105. package/dist/skills/temps/references/commands/templates.md +67 -0
  106. package/dist/skills/temps/references/commands/tokens.md +77 -0
  107. package/dist/skills/temps/references/commands/traces.md +100 -0
  108. package/dist/skills/temps/references/commands/traefik-discovery.md +123 -0
  109. package/dist/skills/temps/references/commands/tunnels.md +139 -0
  110. package/dist/skills/temps/references/commands/up.md +27 -0
  111. package/dist/skills/temps/references/commands/users.md +115 -0
  112. package/dist/skills/temps/references/commands/webhooks.md +171 -0
  113. package/dist/skills/temps/references/commands/whoami.md +15 -0
  114. package/dist/skills/temps/references/commands/workflow.md +44 -0
  115. package/dist/skills/temps/references/commands/workflows.md +216 -0
  116. package/dist/skills/temps/references/observability/analytics.md +146 -0
  117. package/dist/skills/temps/references/observability/error-tracking.md +73 -0
  118. package/dist/skills/temps/references/observability/hygiene.md +112 -0
  119. package/dist/skills/temps/references/observability/logs.md +43 -0
  120. package/dist/skills/temps/references/observability/metrics.md +41 -0
  121. package/dist/skills/temps/references/observability/tracing.md +392 -0
  122. package/dist/skills/temps/references/runtime-contract.md +115 -0
  123. package/dist/skills/temps/references/workflows/platform-operations.md +164 -0
  124. package/dist/skills/temps/scripts/detect_project_capabilities.py +239 -0
  125. package/dist/skills/temps/scripts/generate_command_references.py +144 -0
  126. package/dist/skills/temps/scripts/test_detect_project_capabilities.py +124 -0
  127. package/dist/skills/temps/scripts/test_generate_command_references.py +128 -0
  128. package/dist/skills/temps/scripts/test_validate_skill.py +43 -0
  129. package/dist/skills/temps/scripts/validate_skill.py +97 -0
  130. package/package.json +7 -2
@@ -0,0 +1,568 @@
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 conversions`](#analytics-conversions)
11
+ - [`analytics identity`](#analytics-identity)
12
+ - [`analytics overview`](#analytics-overview)
13
+ - [`analytics top`](#analytics-top)
14
+ - [`analytics outbound`](#analytics-outbound)
15
+ - [`analytics downloads`](#analytics-downloads)
16
+ - [`analytics not-found`](#analytics-not-found)
17
+ - [`analytics funnels`](#analytics-funnels)
18
+ - [`analytics performance`](#analytics-performance)
19
+ - [`analytics ai-agents`](#analytics-ai-agents)
20
+ - [`analytics ai-pages`](#analytics-ai-pages)
21
+ - [`analytics ai-page`](#analytics-ai-page)
22
+ - [`analytics api-overview`](#analytics-api-overview)
23
+ - [`analytics api-routes`](#analytics-api-routes)
24
+ - [`analytics api-callers`](#analytics-api-callers)
25
+ - [`analytics api-ip`](#analytics-api-ip)
26
+ - [`analytics api-path`](#analytics-api-path)
27
+ - [`analytics api-query`](#analytics-api-query)
28
+ - [`analytics api-summary`](#analytics-api-summary)
29
+ - [`analytics enrich`](#analytics-enrich)
30
+ - [`analytics identify`](#analytics-identify)
31
+
32
+ ## `analytics` (alias: `stats`)
33
+
34
+ View project analytics
35
+
36
+ **Subcommands:**
37
+
38
+ - `keys` - Manage analytics ingest keys (pa_...) for apps Temps does not deploy
39
+ - `conversions` (`goals`) - Conversion goals: events or pages that count as success
40
+ - `identity` - Whether visitors are recognised by a stored id or tracked cookieless, and who may identify them
41
+ - `overview` (`o`) - Show analytics dashboard overview
42
+ - `top` - Show breakdown by dimension: pages, referrers, browsers, os, devices, countries, regions, cities, channels, events, languages, utm_source, utm_medium, utm_campaign
43
+ - `outbound` - Show the outbound links visitors clicked (outbound_click events)
44
+ - `downloads` - Show the files visitors downloaded (file_download events)
45
+ - `not-found` - Show pages visitors could not find: 404s Temps answered and not_found events
46
+ - `funnels` - Show funnel conversion metrics for all funnels
47
+ - `performance` (`speed`) - Show real-user Web Vitals and optional dimension breakdowns
48
+ - `ai-agents` - Show AI crawler / provider breakdown (web /analytics/ai-agents)
49
+ - `ai-pages` - Show pages crawled by AI agents, with distinct-agent counts
50
+ - `ai-page` - Show which agents/providers crawled a single page (e.g. /docs)
51
+ - `api-overview` - Show API traffic timeseries (requests, errors, latency) from /api-analytics/timeseries
52
+ - `api-routes` - Show top API routes by request count from /api-analytics/routes
53
+ - `api-callers` - Show top API callers by client IP from /api-analytics/callers
54
+ - `api-ip` - Show routes called by one client IP with latency and error analytics
55
+ - `api-path` - Show client IPs calling one path with latency and error analytics
56
+ - `api-query` - Run a typed multi-dimensional API traffic aggregation
57
+ - `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)
58
+ - `enrich` - Attach identity or attributes to a visitor (merges into custom_data; a null value removes a key)
59
+ - `identify` - Label a visitor with your app's user id, as your backend would (browser identify cannot replace it)
60
+
61
+ ### `analytics keys`
62
+
63
+ Manage analytics ingest keys (pa_...) for apps Temps does not deploy
64
+
65
+ **Subcommands:**
66
+
67
+ - `list` (`ls`) - List analytics ingest keys for a project
68
+ - `create` (`add`) - Mint a new analytics ingest key
69
+ - `update` - Update an ingest key's label, origin allowlist, or rate limit
70
+ - `rotate` - Replace an ingest key value, keeping the same row and scope
71
+ - `revoke` - Revoke (deactivate) an analytics ingest key
72
+
73
+ #### `analytics keys list` (alias: `ls`)
74
+
75
+ List analytics ingest keys for a project
76
+
77
+ **Options:**
78
+
79
+ | Flag | Description | Default | Required |
80
+ |------|-------------|---------|----------|
81
+ | `-p, --project <project>` | Project slug or ID | - | No |
82
+ | `--json` | Output in JSON format | - | No |
83
+
84
+ #### `analytics keys create` (alias: `add`)
85
+
86
+ Mint a new analytics ingest key
87
+
88
+ **Options:**
89
+
90
+ | Flag | Description | Default | Required |
91
+ |------|-------------|---------|----------|
92
+ | `-p, --project <project>` | Project slug or ID | - | No |
93
+ | `-n, --name <name>` | Operator-facing label for the key | - | No |
94
+ | `--environment-id <id>` | Scope the key to one environment (omit for a project-wide key) | - | No |
95
+ | `--allowed-origins <origins...>` | Browser origins allowed to use this key (omit to allow any origin) | - | No |
96
+ | `--rate-limit <n>` | Requests per minute (omit for the server default; 0 or less for unlimited) | - | No |
97
+ | `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
98
+ | `--json` | Output in JSON format | - | No |
99
+
100
+ #### `analytics keys update`
101
+
102
+ Update an ingest key's label, origin allowlist, or rate limit
103
+
104
+ **Options:**
105
+
106
+ | Flag | Description | Default | Required |
107
+ |------|-------------|---------|----------|
108
+ | `-p, --project <project>` | Project slug or ID | - | No |
109
+ | `--key-id <id>` | Analytics ingest key ID | - | Yes |
110
+ | `-n, --name <name>` | New operator-facing label | - | No |
111
+ | `--allowed-origins <origins...>` | Replace the origin allowlist with these origins | - | No |
112
+ | `--clear-origins` | Clear the origin allowlist (allow any origin) | - | No |
113
+ | `--rate-limit <n>` | New requests-per-minute limit | - | No |
114
+ | `--clear-rate-limit` | Clear the rate limit (unlimited) | - | No |
115
+ | `--json` | Output in JSON format | - | No |
116
+
117
+ #### `analytics keys rotate`
118
+
119
+ Replace an ingest key value, keeping the same row and scope
120
+
121
+ **Options:**
122
+
123
+ | Flag | Description | Default | Required |
124
+ |------|-------------|---------|----------|
125
+ | `-p, --project <project>` | Project slug or ID | - | No |
126
+ | `--key-id <id>` | Analytics ingest key ID | - | Yes |
127
+ | `-f, --force` | Skip confirmation | - | No |
128
+ | `-y, --yes` | Skip confirmation (alias for --force) | - | No |
129
+ | `--json` | Output in JSON format | - | No |
130
+
131
+ #### `analytics keys revoke`
132
+
133
+ Revoke (deactivate) an analytics ingest key
134
+
135
+ **Options:**
136
+
137
+ | Flag | Description | Default | Required |
138
+ |------|-------------|---------|----------|
139
+ | `-p, --project <project>` | Project slug or ID | - | No |
140
+ | `--key-id <id>` | Analytics ingest key ID | - | Yes |
141
+ | `-f, --force` | Skip confirmation | - | No |
142
+ | `-y, --yes` | Skip confirmation (alias for --force) | - | No |
143
+
144
+ ### `analytics conversions` (alias: `goals`)
145
+
146
+ Conversion goals: events or pages that count as success
147
+
148
+ **Subcommands:**
149
+
150
+ - `list` - List conversions with visitors, rate and revenue in a period
151
+ - `create` - Define a conversion
152
+ - `update` - Replace a conversion's definition
153
+ - `delete` - Delete a conversion (recorded events are kept)
154
+ - `breakdown` - Where the visitors who converted came from
155
+
156
+ #### `analytics conversions list`
157
+
158
+ List conversions with visitors, rate and revenue in a period
159
+
160
+ **Options:**
161
+
162
+ | Flag | Description | Default | Required |
163
+ |------|-------------|---------|----------|
164
+ | `-p, --project <project>` | Project slug or ID | - | No |
165
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 7d, 30d, 3m) | `30d` | No |
166
+ | `--json` | Output in JSON format | - | No |
167
+
168
+ #### `analytics conversions create`
169
+
170
+ Define a conversion
171
+
172
+ **Options:**
173
+
174
+ | Flag | Description | Default | Required |
175
+ |------|-------------|---------|----------|
176
+ | `-p, --project <project>` | Project slug or ID | - | No |
177
+ | `-n, --name <name>` | Name shown in reports, e.g. Signup | - | No |
178
+ | `--event <name>` | Count this event, e.g. signup | - | No |
179
+ | `--page <path>` | Count visits to this path; * matches anything, e.g. /docs/* | - | No |
180
+ | `--property <key=value>` | Only events whose property has this value, e.g. plan=pro | - | No |
181
+ | `--revenue-property <key>` | Event property holding the amount, e.g. amount | - | No |
182
+ | `--currency <code>` | ISO 4217 currency of the amount, e.g. EUR | - | No |
183
+ | `--json` | Output in JSON format | - | No |
184
+
185
+ #### `analytics conversions update`
186
+
187
+ Replace a conversion's definition
188
+
189
+ **Options:**
190
+
191
+ | Flag | Description | Default | Required |
192
+ |------|-------------|---------|----------|
193
+ | `-p, --project <project>` | Project slug or ID | - | No |
194
+ | `--goal-id <id>` | Conversion ID (see list) | - | Yes |
195
+ | `-n, --name <name>` | Name shown in reports, e.g. Signup | - | No |
196
+ | `--event <name>` | Count this event, e.g. signup | - | No |
197
+ | `--page <path>` | Count visits to this path; * matches anything, e.g. /docs/* | - | No |
198
+ | `--property <key=value>` | Only events whose property has this value, e.g. plan=pro | - | No |
199
+ | `--revenue-property <key>` | Event property holding the amount, e.g. amount | - | No |
200
+ | `--currency <code>` | ISO 4217 currency of the amount, e.g. EUR | - | No |
201
+ | `--json` | Output in JSON format | - | No |
202
+
203
+ #### `analytics conversions delete`
204
+
205
+ Delete a conversion (recorded events are kept)
206
+
207
+ **Options:**
208
+
209
+ | Flag | Description | Default | Required |
210
+ |------|-------------|---------|----------|
211
+ | `-p, --project <project>` | Project slug or ID | - | No |
212
+ | `--goal-id <id>` | Conversion ID (see list) | - | Yes |
213
+ | `-f, --force` | Skip confirmation | - | No |
214
+ | `-y, --yes` | Skip confirmation (alias for --force) | - | No |
215
+
216
+ #### `analytics conversions breakdown`
217
+
218
+ Where the visitors who converted came from
219
+
220
+ **Options:**
221
+
222
+ | Flag | Description | Default | Required |
223
+ |------|-------------|---------|----------|
224
+ | `-p, --project <project>` | Project slug or ID | - | No |
225
+ | `--goal-id <id>` | Conversion ID (see list) | - | Yes |
226
+ | `--by <dimension>` | One of channel, referrer, utm_source, utm_medium, utm_campaign, page, country, device_type, browser, operating_system | `channel` | No |
227
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 7d, 30d, 3m) | `30d` | No |
228
+ | `--limit <n>` | Rows (default: 10, max: 100) | - | No |
229
+ | `--json` | Output in JSON format | - | No |
230
+
231
+ ### `analytics identity`
232
+
233
+ Whether visitors are recognised by a stored id or tracked cookieless, and who may identify them
234
+
235
+ **Subcommands:**
236
+
237
+ - `show` - Show the identity mode, whether browser identify is accepted, and what they change
238
+ - `set` - Switch between persistent and cookieless tracking, or accept/refuse browser identify
239
+
240
+ #### `analytics identity show`
241
+
242
+ Show the identity mode, whether browser identify is accepted, and what they change
243
+
244
+ **Options:**
245
+
246
+ | Flag | Description | Default | Required |
247
+ |------|-------------|---------|----------|
248
+ | `-p, --project <project>` | Project slug or ID | - | No |
249
+ | `--json` | Output in JSON format | - | No |
250
+
251
+ #### `analytics identity set`
252
+
253
+ Switch between persistent and cookieless tracking, or accept/refuse browser identify
254
+
255
+ **Options:**
256
+
257
+ | Flag | Description | Default | Required |
258
+ |------|-------------|---------|----------|
259
+ | `-p, --project <project>` | Project slug or ID | - | No |
260
+ | `--mode <mode>` | One of persistent, cookieless | - | No |
261
+ | `--browser-identify <accept\|refuse>` | Whether identify() from the browser is applied; refuse leaves identify to the app's backend | - | No |
262
+ | `-y, --yes` | Skip confirmation | - | No |
263
+ | `--json` | Output in JSON format | - | No |
264
+
265
+ ### `analytics overview` (alias: `o`)
266
+
267
+ Show analytics dashboard overview
268
+
269
+ **Options:**
270
+
271
+ | Flag | Description | Default | Required |
272
+ |------|-------------|---------|----------|
273
+ | `-p, --project <project>` | Project slug or ID | - | No |
274
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
275
+ | `--json` | Output in JSON format | - | No |
276
+
277
+ ### `analytics top`
278
+
279
+ Show breakdown by dimension: pages, referrers, browsers, os, devices, countries, regions, cities, channels, events, languages, utm_source, utm_medium, utm_campaign
280
+
281
+ **Usage:** `analytics top <dimension> [options]`
282
+
283
+ **Options:**
284
+
285
+ | Flag | Description | Default | Required |
286
+ |------|-------------|---------|----------|
287
+ | `-p, --project <project>` | Project slug or ID | - | No |
288
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
289
+ | `--limit <n>` | Number of results (default: 20, max: 100) | - | No |
290
+ | `--json` | Output in JSON format | - | No |
291
+
292
+ ### `analytics outbound`
293
+
294
+ Show the outbound links visitors clicked (outbound_click events)
295
+
296
+ **Options:**
297
+
298
+ | Flag | Description | Default | Required |
299
+ |------|-------------|---------|----------|
300
+ | `-p, --project <project>` | Project slug or ID | - | No |
301
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `7d` | No |
302
+ | `--limit <n>` | Number of results (default: 20, max: 100) | - | No |
303
+ | `--json` | Output in JSON format | - | No |
304
+
305
+ ### `analytics downloads`
306
+
307
+ Show the files visitors downloaded (file_download events)
308
+
309
+ **Options:**
310
+
311
+ | Flag | Description | Default | Required |
312
+ |------|-------------|---------|----------|
313
+ | `-p, --project <project>` | Project slug or ID | - | No |
314
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `7d` | No |
315
+ | `--limit <n>` | Number of results (default: 20, max: 100) | - | No |
316
+ | `--json` | Output in JSON format | - | No |
317
+
318
+ ### `analytics not-found`
319
+
320
+ Show pages visitors could not find: 404s Temps answered and not_found events
321
+
322
+ **Options:**
323
+
324
+ | Flag | Description | Default | Required |
325
+ |------|-------------|---------|----------|
326
+ | `-p, --project <project>` | Project slug or ID | - | No |
327
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `7d` | No |
328
+ | `--limit <n>` | Number of results (default: 20, max: 100) | - | No |
329
+ | `--json` | Output in JSON format | - | No |
330
+
331
+ ### `analytics funnels`
332
+
333
+ Show funnel conversion metrics for all funnels
334
+
335
+ **Options:**
336
+
337
+ | Flag | Description | Default | Required |
338
+ |------|-------------|---------|----------|
339
+ | `-p, --project <project>` | Project slug or ID | - | No |
340
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `7d` | No |
341
+ | `--json` | Output in JSON format | - | No |
342
+
343
+ ### `analytics performance` (alias: `speed`)
344
+
345
+ Show real-user Web Vitals and optional dimension breakdowns
346
+
347
+ **Options:**
348
+
349
+ | Flag | Description | Default | Required |
350
+ |------|-------------|---------|----------|
351
+ | `-p, --project <project>` | Project slug or ID | - | No |
352
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (ignored with --start-date/--end-date) | `7d` | No |
353
+ | `--start-date <date>` | Explicit window start (RFC 3339; requires --end-date) | - | No |
354
+ | `--end-date <date>` | Explicit window end (RFC 3339; requires --start-date) | - | No |
355
+ | `--environment-id <id>` | Restrict samples to one environment ID | - | No |
356
+ | `--deployment-id <id>` | Restrict samples to one deployment ID | - | No |
357
+ | `--device <device>` | Device filter: desktop or mobile | - | No |
358
+ | `--include-bots` | Include crawler and datacenter bot samples | - | No |
359
+ | `--group-by <dimension>` | Break down by path, country, region, city, device_type, browser, or operating_system | - | No |
360
+ | `--path <path>` | Restrict samples to one page pathname | - | No |
361
+ | `--country <country>` | Restrict samples to one country | - | No |
362
+ | `--region <region>` | Restrict samples to one region | - | No |
363
+ | `--city <city>` | Restrict samples to one city | - | No |
364
+ | `--browser <browser>` | Restrict samples to one browser | - | No |
365
+ | `--os <operating-system>` | Restrict samples to one operating system | - | No |
366
+ | `--json` | Output in JSON format | - | No |
367
+
368
+ ### `analytics ai-agents`
369
+
370
+ Show AI crawler / provider breakdown (web /analytics/ai-agents)
371
+
372
+ **Options:**
373
+
374
+ | Flag | Description | Default | Required |
375
+ |------|-------------|---------|----------|
376
+ | `-p, --project <project>` | Project slug or ID | - | No |
377
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 24h, 7d, 30d) | `24h` | No |
378
+ | `--limit <n>` | Number of rows to fetch (default: 20, max: 100) | - | No |
379
+ | `--group-by <mode>` | Group rows by "agent" (default) or "provider" | `agent` | No |
380
+ | `--path <path>` | Restrict to one URL path (e.g. /docs) | - | No |
381
+ | `--json` | Output in JSON format | - | No |
382
+
383
+ ### `analytics ai-pages`
384
+
385
+ Show pages crawled by AI agents, with distinct-agent counts
386
+
387
+ **Options:**
388
+
389
+ | Flag | Description | Default | Required |
390
+ |------|-------------|---------|----------|
391
+ | `-p, --project <project>` | Project slug or ID | - | No |
392
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 24h, 7d, 30d) | `24h` | No |
393
+ | `--limit <n>` | Number of pages to fetch (default: 20, max: 100) | - | No |
394
+ | `--path <path>` | Restrict to one URL path (returns just that row) | - | No |
395
+ | `--with-agents` | Also fetch and render the per-agent split for each page (slower) | - | No |
396
+ | `--json` | Output in JSON format | - | No |
397
+
398
+ ### `analytics ai-page`
399
+
400
+ Show which agents/providers crawled a single page (e.g. /docs)
401
+
402
+ **Usage:** `analytics ai-page <path> [options]`
403
+
404
+ **Options:**
405
+
406
+ | Flag | Description | Default | Required |
407
+ |------|-------------|---------|----------|
408
+ | `-p, --project <project>` | Project slug or ID | - | No |
409
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 24h, 7d, 30d) | `24h` | No |
410
+ | `--limit <n>` | Number of rows to fetch (default: 50, max: 100) | - | No |
411
+ | `--group-by <mode>` | Group rows by "agent" (default) or "provider" | `agent` | No |
412
+ | `--json` | Output in JSON format | - | No |
413
+
414
+ ### `analytics api-overview`
415
+
416
+ Show API traffic timeseries (requests, errors, latency) from /api-analytics/timeseries
417
+
418
+ **Options:**
419
+
420
+ | Flag | Description | Default | Required |
421
+ |------|-------------|---------|----------|
422
+ | `-p, --project <project>` | Project slug or ID | - | No |
423
+ | `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
424
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
425
+ | `--json` | Output in JSON format | - | No |
426
+
427
+ ### `analytics api-routes`
428
+
429
+ Show top API routes by request count from /api-analytics/routes
430
+
431
+ **Options:**
432
+
433
+ | Flag | Description | Default | Required |
434
+ |------|-------------|---------|----------|
435
+ | `-p, --project <project>` | Project slug or ID | - | No |
436
+ | `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
437
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
438
+ | `--limit <n>` | Number of routes to return (default: 20, max: 100) | - | No |
439
+ | `--offset <n>` | Number of ranked routes to skip (default: 0) | - | No |
440
+ | `--sort-by <metric>` | Sort by requests, latency_avg, or error_rate | `requests` | No |
441
+ | `--order <direction>` | Sort direction: asc or desc | `desc` | No |
442
+ | `--include-synthetic` | Include Temps status-monitor checks | - | No |
443
+ | `--json` | Output in JSON format | - | No |
444
+
445
+ ### `analytics api-callers`
446
+
447
+ Show top API callers by client IP from /api-analytics/callers
448
+
449
+ **Options:**
450
+
451
+ | Flag | Description | Default | Required |
452
+ |------|-------------|---------|----------|
453
+ | `-p, --project <project>` | Project slug or ID | - | No |
454
+ | `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
455
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
456
+ | `--limit <n>` | Number of callers to return (default: 20, max: 100) | - | No |
457
+ | `--offset <n>` | Number of ranked callers to skip (default: 0) | - | No |
458
+ | `--sort-by <metric>` | Sort by requests or error_rate | `requests` | No |
459
+ | `--order <direction>` | Sort direction: asc or desc | `desc` | No |
460
+ | `--include-synthetic` | Include Temps status-monitor checks | - | No |
461
+ | `--json` | Output in JSON format | - | No |
462
+
463
+ ### `analytics api-ip`
464
+
465
+ Show routes called by one client IP with latency and error analytics
466
+
467
+ **Usage:** `analytics api-ip <ip> [options]`
468
+
469
+ **Options:**
470
+
471
+ | Flag | Description | Default | Required |
472
+ |------|-------------|---------|----------|
473
+ | `-p, --project <project>` | Project slug or ID | - | No |
474
+ | `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
475
+ | `--period <period>` | Time period (e.g. 1h, 24h, 7d, 30d) | `24h` | No |
476
+ | `--limit <n>` | Rows per page (default: 20, max: 100) | - | No |
477
+ | `--page <n>` | Page number | `1` | No |
478
+ | `--sort-by <metric>` | Sort by requests, latency_avg, or error_rate | `requests` | No |
479
+ | `--order <direction>` | Sort direction: asc or desc | `desc` | No |
480
+ | `--include-synthetic` | Include Temps status-monitor checks | - | No |
481
+ | `--json` | Output in JSON format | - | No |
482
+
483
+ ### `analytics api-path`
484
+
485
+ Show client IPs calling one path with latency and error analytics
486
+
487
+ **Usage:** `analytics api-path <path> [options]`
488
+
489
+ **Options:**
490
+
491
+ | Flag | Description | Default | Required |
492
+ |------|-------------|---------|----------|
493
+ | `-p, --project <project>` | Project slug or ID | - | No |
494
+ | `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
495
+ | `--period <period>` | Time period (e.g. 1h, 24h, 7d, 30d) | `24h` | No |
496
+ | `--limit <n>` | Rows per page (default: 20, max: 100) | - | No |
497
+ | `--page <n>` | Page number | `1` | No |
498
+ | `--sort-by <metric>` | Sort by requests or error_rate | `requests` | No |
499
+ | `--order <direction>` | Sort direction: asc or desc | `desc` | No |
500
+ | `--include-synthetic` | Include Temps status-monitor checks | - | No |
501
+ | `--json` | Output in JSON format | - | No |
502
+
503
+ ### `analytics api-query`
504
+
505
+ Run a typed multi-dimensional API traffic aggregation
506
+
507
+ **Options:**
508
+
509
+ | Flag | Description | Default | Required |
510
+ |------|-------------|---------|----------|
511
+ | `--group-by <dimensions>` | Comma-separated dimensions (omit for one overall rollup) | - | No |
512
+ | `--metrics <metrics>` | Comma-separated metrics (e.g. requests,error_rate,latency_p95) | - | Yes |
513
+ | `--filter <dimension:operator:value>` | Repeatable filter (operators: eq, not_eq, contains, starts_with, in) | `` | No |
514
+ | `--sort-by <field>` | Requested dimension or metric to sort by | - | No |
515
+ | `--order <direction>` | Sort direction: asc or desc | `desc` | No |
516
+ | `-p, --project <project>` | Project slug or ID | - | No |
517
+ | `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
518
+ | `--period <period>` | Time period (e.g. 1h, 24h, 7d, 30d) | `24h` | No |
519
+ | `--page <n>` | Page number | `1` | No |
520
+ | `--limit <n>` | Rows per page (default: 20, max: 100) | - | No |
521
+ | `--include-synthetic` | Include Temps status-monitor checks | - | No |
522
+ | `--json` | Output in JSON format | - | No |
523
+
524
+ ### `analytics api-summary`
525
+
526
+ Show an AI-generated summary of API traffic from /api-analytics/summary (requires AI Assistance to be configured and enabled on the project)
527
+
528
+ **Options:**
529
+
530
+ | Flag | Description | Default | Required |
531
+ |------|-------------|---------|----------|
532
+ | `-p, --project <project>` | Project slug or ID | - | No |
533
+ | `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
534
+ | `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
535
+ | `--json` | Output in JSON format | - | No |
536
+
537
+ ### `analytics enrich`
538
+
539
+ Attach identity or attributes to a visitor (merges into custom_data; a null value removes a key)
540
+
541
+ **Usage:** `analytics enrich <visitor-id> [options]`
542
+
543
+ **Options:**
544
+
545
+ | Flag | Description | Default | Required |
546
+ |------|-------------|---------|----------|
547
+ | `-d, --data <json>` | JSON object to merge, e.g. '{"user_id":"user_123"}' | - | No |
548
+ | `-f, --file <path>` | Read the JSON object to merge from a file | - | No |
549
+ | `--set <key=value>` | Set one key to a string value (repeatable; use --data for numbers, booleans, or nested values) | `` | No |
550
+ | `--unset <key>` | Remove one top-level key (repeatable; sends null) | `` | No |
551
+ | `--json` | Output in JSON format | - | No |
552
+
553
+ ### `analytics identify`
554
+
555
+ Label a visitor with your app's user id, as your backend would (browser identify cannot replace it)
556
+
557
+ **Usage:** `analytics identify <visitor-id> [options]`
558
+
559
+ **Options:**
560
+
561
+ | Flag | Description | Default | Required |
562
+ |------|-------------|---------|----------|
563
+ | `-p, --project <project>` | Project slug or ID | - | No |
564
+ | `--user-id <id>` | Your app's id for this person (at most 256 characters) | - | Yes |
565
+ | `-d, --data <json>` | Traits as a JSON object, e.g. '{"plan":"pro"}' | - | No |
566
+ | `--set <key=value>` | Set one trait to a string value (repeatable) | `` | No |
567
+ | `--unset <key>` | Remove one trait (repeatable; sends null) | `` | No |
568
+ | `--json` | Output in JSON format | - | No |
@@ -0,0 +1,98 @@
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
+ | `--project-id <id>` | Confine to one project’s deployment and environment APIs | - | No |
44
+ | `--environment-id <id>` | Confine to one environment (requires --project-id) | - | No |
45
+ | `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
46
+
47
+ ### `apikeys show`
48
+
49
+ Show API key details
50
+
51
+ **Options:**
52
+
53
+ | Flag | Description | Default | Required |
54
+ |------|-------------|---------|----------|
55
+ | `--id <id>` | API key ID | - | Yes |
56
+ | `--json` | Output in JSON format | - | No |
57
+
58
+ ### `apikeys remove` (alias: `rm`)
59
+
60
+ Delete an API key
61
+
62
+ **Options:**
63
+
64
+ | Flag | Description | Default | Required |
65
+ |------|-------------|---------|----------|
66
+ | `--id <id>` | API key ID | - | Yes |
67
+ | `-f, --force` | Skip confirmation | - | No |
68
+ | `-y, --yes` | Skip confirmation prompts (alias for --force) | - | No |
69
+
70
+ ### `apikeys activate`
71
+
72
+ Activate a deactivated API key
73
+
74
+ **Options:**
75
+
76
+ | Flag | Description | Default | Required |
77
+ |------|-------------|---------|----------|
78
+ | `--id <id>` | API key ID | - | Yes |
79
+
80
+ ### `apikeys deactivate`
81
+
82
+ Deactivate an API key
83
+
84
+ **Options:**
85
+
86
+ | Flag | Description | Default | Required |
87
+ |------|-------------|---------|----------|
88
+ | `--id <id>` | API key ID | - | Yes |
89
+
90
+ ### `apikeys permissions`
91
+
92
+ List available API key permissions
93
+
94
+ **Options:**
95
+
96
+ | Flag | Description | Default | Required |
97
+ |------|-------------|---------|----------|
98
+ | `--json` | Output in JSON format | - | No |