@temps-sdk/cli 0.2.0-beta.1 → 0.2.0-beta.3
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/dist/index.js +104770 -87351
- package/dist/skills/temps/SKILL.md +6 -3
- package/dist/skills/temps/evals/evals.json +38 -0
- package/dist/skills/temps/howtos/agent-handoff.md +106 -0
- package/dist/skills/temps/howtos/install-temps.md +151 -0
- package/dist/skills/temps/references/commands/INDEX.md +7 -0
- package/dist/skills/temps/references/commands/agents.md +731 -0
- package/dist/skills/temps/references/commands/ai.md +2636 -11
- package/dist/skills/temps/references/commands/alarms.md +125 -0
- package/dist/skills/temps/references/commands/analytics.md +1001 -3
- package/dist/skills/temps/references/commands/apikeys.md +48 -1
- package/dist/skills/temps/references/commands/audit.md +1 -0
- package/dist/skills/temps/references/commands/backups.md +306 -0
- package/dist/skills/temps/references/commands/blob.md +169 -0
- package/dist/skills/temps/references/commands/cloud.md +59 -0
- package/dist/skills/temps/references/commands/cluster.md +223 -0
- package/dist/skills/temps/references/commands/containers.md +45 -0
- package/dist/skills/temps/references/commands/custom-domains.md +32 -0
- package/dist/skills/temps/references/commands/data.md +1 -0
- package/dist/skills/temps/references/commands/deploy-image.md +3 -1
- package/dist/skills/temps/references/commands/deploy-local-image.md +3 -0
- package/dist/skills/temps/references/commands/deployments.md +559 -0
- package/dist/skills/temps/references/commands/dns-provider.md +63 -0
- package/dist/skills/temps/references/commands/domains.md +104 -0
- package/dist/skills/temps/references/commands/email-domains.md +1 -0
- package/dist/skills/temps/references/commands/email-providers.md +59 -1
- package/dist/skills/temps/references/commands/emails.md +91 -0
- package/dist/skills/temps/references/commands/environments.md +483 -2
- package/dist/skills/temps/references/commands/errors.md +563 -3
- package/dist/skills/temps/references/commands/flags.md +76 -0
- package/dist/skills/temps/references/commands/funnels.md +22 -2
- package/dist/skills/temps/references/commands/incidents.md +18 -0
- package/dist/skills/temps/references/commands/ingress.md +26 -0
- package/dist/skills/temps/references/commands/ip-access.md +96 -1
- package/dist/skills/temps/references/commands/kv.md +184 -0
- package/dist/skills/temps/references/commands/load-balancer.md +2 -0
- package/dist/skills/temps/references/commands/login.md +4 -1
- package/dist/skills/temps/references/commands/logs.md +272 -0
- package/dist/skills/temps/references/commands/mcp.md +14 -1
- package/dist/skills/temps/references/commands/migrate.md +17 -0
- package/dist/skills/temps/references/commands/monitors.md +386 -0
- package/dist/skills/temps/references/commands/network-policy.md +27 -0
- package/dist/skills/temps/references/commands/nodes.md +155 -2
- package/dist/skills/temps/references/commands/notifications.md +149 -0
- package/dist/skills/temps/references/commands/otel.md +438 -0
- package/dist/skills/temps/references/commands/platform.md +64 -0
- package/dist/skills/temps/references/commands/plugin.md +76 -0
- package/dist/skills/temps/references/commands/preview-gateway.md +91 -0
- package/dist/skills/temps/references/commands/project-groups.md +31 -0
- package/dist/skills/temps/references/commands/projects.md +453 -6
- package/dist/skills/temps/references/commands/providers.md +519 -0
- package/dist/skills/temps/references/commands/proxy-logs.md +111 -0
- package/dist/skills/temps/references/commands/revenue.md +219 -0
- package/dist/skills/temps/references/commands/sandbox.md +732 -9
- package/dist/skills/temps/references/commands/secrets.md +3 -0
- package/dist/skills/temps/references/commands/server.md +107 -0
- package/dist/skills/temps/references/commands/services.md +831 -5
- package/dist/skills/temps/references/commands/settings.md +384 -0
- package/dist/skills/temps/references/commands/shield.md +354 -0
- package/dist/skills/temps/references/commands/start.md +1 -0
- package/dist/skills/temps/references/commands/status-pages.md +103 -3
- package/dist/skills/temps/references/commands/teams.md +14 -0
- package/dist/skills/temps/references/commands/templates.md +14 -0
- package/dist/skills/temps/references/commands/tokens.md +106 -0
- package/dist/skills/temps/references/commands/traces.md +149 -0
- package/dist/skills/temps/references/commands/tunnels.md +2 -0
- package/dist/skills/temps/references/commands/users.md +111 -0
- package/dist/skills/temps/references/commands/vault.md +662 -0
- package/dist/skills/temps/references/commands/webhooks.md +4 -0
- package/dist/skills/temps/references/commands/workflows.md +347 -0
- package/dist/skills/temps/scripts/generate_command_references.py +5 -3
- package/dist/skills/temps/scripts/test_generate_command_references.py +3 -1
- package/package.json +3 -2
|
@@ -7,15 +7,15 @@ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing
|
|
|
7
7
|
## Contents
|
|
8
8
|
|
|
9
9
|
- [`analytics keys`](#analytics-keys)
|
|
10
|
-
- [`analytics conversions`](#analytics-conversions)
|
|
10
|
+
- [`analytics conversions`](#analytics-conversions-alias-goals)
|
|
11
11
|
- [`analytics identity`](#analytics-identity)
|
|
12
|
-
- [`analytics overview`](#analytics-overview)
|
|
12
|
+
- [`analytics overview`](#analytics-overview-alias-o)
|
|
13
13
|
- [`analytics top`](#analytics-top)
|
|
14
14
|
- [`analytics outbound`](#analytics-outbound)
|
|
15
15
|
- [`analytics downloads`](#analytics-downloads)
|
|
16
16
|
- [`analytics not-found`](#analytics-not-found)
|
|
17
17
|
- [`analytics funnels`](#analytics-funnels)
|
|
18
|
-
- [`analytics performance`](#analytics-performance)
|
|
18
|
+
- [`analytics performance`](#analytics-performance-alias-speed)
|
|
19
19
|
- [`analytics ai-agents`](#analytics-ai-agents)
|
|
20
20
|
- [`analytics ai-pages`](#analytics-ai-pages)
|
|
21
21
|
- [`analytics ai-page`](#analytics-ai-page)
|
|
@@ -28,6 +28,40 @@ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing
|
|
|
28
28
|
- [`analytics api-summary`](#analytics-api-summary)
|
|
29
29
|
- [`analytics enrich`](#analytics-enrich)
|
|
30
30
|
- [`analytics identify`](#analytics-identify)
|
|
31
|
+
- [`analytics get-active-visitors`](#analytics-get-active-visitors)
|
|
32
|
+
- [`analytics get-event-detail`](#analytics-get-event-detail)
|
|
33
|
+
- [`analytics get-event-entries`](#analytics-get-event-entries)
|
|
34
|
+
- [`analytics get-event-visitors`](#analytics-get-event-visitors)
|
|
35
|
+
- [`analytics get-events-count`](#analytics-get-events-count)
|
|
36
|
+
- [`analytics get-stats`](#analytics-get-stats)
|
|
37
|
+
- [`analytics get-global`](#analytics-get-global)
|
|
38
|
+
- [`analytics get`](#analytics-get)
|
|
39
|
+
- [`analytics check-has-events`](#analytics-check-has-events)
|
|
40
|
+
- [`analytics get-live-visitors-list`](#analytics-get-live-visitors-list)
|
|
41
|
+
- [`analytics get-page-flow`](#analytics-get-page-flow)
|
|
42
|
+
- [`analytics get-page-hourly-sessions`](#analytics-get-page-hourly-sessions)
|
|
43
|
+
- [`analytics get-page-path-detail`](#analytics-get-page-path-detail)
|
|
44
|
+
- [`analytics get-page-path-visitors`](#analytics-get-page-path-visitors)
|
|
45
|
+
- [`analytics get-page-paths-sparklines`](#analytics-get-page-paths-sparklines)
|
|
46
|
+
- [`analytics get-recent-activity`](#analytics-get-recent-activity)
|
|
47
|
+
- [`analytics get-session-details`](#analytics-get-session-details)
|
|
48
|
+
- [`analytics get-session-events`](#analytics-get-session-events)
|
|
49
|
+
- [`analytics get-session-logs`](#analytics-get-session-logs)
|
|
50
|
+
- [`analytics get-visitor-facets`](#analytics-get-visitor-facets)
|
|
51
|
+
- [`analytics get-visitors`](#analytics-get-visitors)
|
|
52
|
+
- [`analytics get-visitor-by-guid`](#analytics-get-visitor-by-guid)
|
|
53
|
+
- [`analytics get-visitor-by-id`](#analytics-get-visitor-by-id)
|
|
54
|
+
- [`analytics get-visitor-details`](#analytics-get-visitor-details)
|
|
55
|
+
- [`analytics identify-visitor-for-token`](#analytics-identify-visitor-for-token)
|
|
56
|
+
- [`analytics get-visitor-info`](#analytics-get-visitor-info)
|
|
57
|
+
- [`analytics get-visitor-journey`](#analytics-get-visitor-journey)
|
|
58
|
+
- [`analytics get-visitor-sessions`](#analytics-get-visitor-sessions)
|
|
59
|
+
- [`analytics get-visitor-stats`](#analytics-get-visitor-stats)
|
|
60
|
+
- [`analytics events`](#analytics-events)
|
|
61
|
+
- [`analytics visitors`](#analytics-visitors)
|
|
62
|
+
- [`analytics settings`](#analytics-settings)
|
|
63
|
+
- [`analytics get-api-callers`](#analytics-get-api-callers)
|
|
64
|
+
- [`analytics get-api-routes`](#analytics-get-api-routes)
|
|
31
65
|
|
|
32
66
|
## `analytics` (alias: `stats`)
|
|
33
67
|
|
|
@@ -57,6 +91,40 @@ View project analytics
|
|
|
57
91
|
- `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
92
|
- `enrich` - Attach identity or attributes to a visitor (merges into custom_data; a null value removes a key)
|
|
59
93
|
- `identify` - Label a visitor with your app's user id, as your backend would (browser identify cannot replace it)
|
|
94
|
+
- `get-active-visitors` - Get detailed active visitors
|
|
95
|
+
- `get-event-detail` - Get detailed analytics for a specific event
|
|
96
|
+
- `get-event-entries` - Get paginated list of raw occurrences of a specific event, including custom JSON properties
|
|
97
|
+
- `get-event-visitors` - Get paginated list of visitors who triggered a specific event
|
|
98
|
+
- `get-events-count` - Get analytics events count
|
|
99
|
+
- `get-stats` - Get general statistics across all projects for a time frame
|
|
100
|
+
- `get-global` - Get global analytics
|
|
101
|
+
- `get` - Get analytics projects
|
|
102
|
+
- `check-has-events` - Check analytics has events
|
|
103
|
+
- `get-live-visitors-list` - Get list of currently live visitors from visitor table
|
|
104
|
+
- `get-page-flow` - Get page flow analytics: entry pages, exit pages, drop-off points, and page transitions
|
|
105
|
+
- `get-page-hourly-sessions` - Get page hourly sessions
|
|
106
|
+
- `get-page-path-detail` - Get detailed analytics for a specific page path Returns visitors, page views, activity over time,..
|
|
107
|
+
- `get-page-path-visitors` - Get individual visitor sessions for a specific page path
|
|
108
|
+
- `get-page-paths-sparklines` - Get page paths sparklines
|
|
109
|
+
- `get-recent-activity` - Get recent activity events for real-time activity feed
|
|
110
|
+
- `get-session-details` - Get detailed information about a specific session including events and request logs
|
|
111
|
+
- `get-session-events` - Get analytics session events
|
|
112
|
+
- `get-session-logs` - Get session logs
|
|
113
|
+
- `get-visitor-facets` - Get filter dropdown contents for the visitors page
|
|
114
|
+
- `get-visitors` - Get list of visitors with summary information
|
|
115
|
+
- `get-visitor-by-guid` - Get visitor by GUID with geolocation data
|
|
116
|
+
- `get-visitor-by-id` - Get visitor by numeric ID with geolocation data
|
|
117
|
+
- `get-visitor-details` - Get detailed information about a specific visitor by numeric ID
|
|
118
|
+
- `identify-visitor-for-token` - Identify a visitor of the token's own project (ADR 109 D4)
|
|
119
|
+
- `get-visitor-info` - Get visitor record from database
|
|
120
|
+
- `get-visitor-journey` - Get the complete visitor journey: all events across all sessions, grouped by session
|
|
121
|
+
- `get-visitor-sessions` - Get all sessions for a specific visitor by numeric ID
|
|
122
|
+
- `get-visitor-stats` - Get visitor statistics
|
|
123
|
+
- `events` - Events commands
|
|
124
|
+
- `visitors` - Visitors commands
|
|
125
|
+
- `settings` - Settings commands
|
|
126
|
+
- `get-api-callers` - Return the top callers (by client IP, ranked by request count) in a project's API traffic window
|
|
127
|
+
- `get-api-routes` - Return the top routes (by request count) in a project's API traffic, grouped by raw '(method, path)'
|
|
60
128
|
|
|
61
129
|
### `analytics keys`
|
|
62
130
|
|
|
@@ -64,11 +132,26 @@ Manage analytics ingest keys (pa_...) for apps Temps does not deploy
|
|
|
64
132
|
|
|
65
133
|
**Subcommands:**
|
|
66
134
|
|
|
135
|
+
- `get` - Show one analytics ingest key
|
|
67
136
|
- `list` (`ls`) - List analytics ingest keys for a project
|
|
68
137
|
- `create` (`add`) - Mint a new analytics ingest key
|
|
69
138
|
- `update` - Update an ingest key's label, origin allowlist, or rate limit
|
|
70
139
|
- `rotate` - Replace an ingest key value, keeping the same row and scope
|
|
71
140
|
- `revoke` - Revoke (deactivate) an analytics ingest key
|
|
141
|
+
- `get-ingest-endpoint` - The public address an app Temps does not deploy should send analytics to
|
|
142
|
+
|
|
143
|
+
#### `analytics keys get`
|
|
144
|
+
|
|
145
|
+
Show one analytics ingest key
|
|
146
|
+
|
|
147
|
+
**Usage:** `analytics keys get <key-id> [options]`
|
|
148
|
+
|
|
149
|
+
**Options:**
|
|
150
|
+
|
|
151
|
+
| Flag | Description | Default | Required |
|
|
152
|
+
|------|-------------|---------|----------|
|
|
153
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
154
|
+
| `--json` | Output in JSON format | - | No |
|
|
72
155
|
|
|
73
156
|
#### `analytics keys list` (alias: `ls`)
|
|
74
157
|
|
|
@@ -79,6 +162,8 @@ List analytics ingest keys for a project
|
|
|
79
162
|
| Flag | Description | Default | Required |
|
|
80
163
|
|------|-------------|---------|----------|
|
|
81
164
|
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
165
|
+
| `--page <n>` | Page number (default: 1) | - | No |
|
|
166
|
+
| `--page-size <n>` | Items per page (default: 20, max: 100) | - | No |
|
|
82
167
|
| `--json` | Output in JSON format | - | No |
|
|
83
168
|
|
|
84
169
|
#### `analytics keys create` (alias: `add`)
|
|
@@ -141,6 +226,17 @@ Revoke (deactivate) an analytics ingest key
|
|
|
141
226
|
| `-f, --force` | Skip confirmation | - | No |
|
|
142
227
|
| `-y, --yes` | Skip confirmation (alias for --force) | - | No |
|
|
143
228
|
|
|
229
|
+
#### `analytics keys get-ingest-endpoint`
|
|
230
|
+
|
|
231
|
+
The public address an app Temps does not deploy should send analytics to
|
|
232
|
+
|
|
233
|
+
**Options:**
|
|
234
|
+
|
|
235
|
+
| Flag | Description | Default | Required |
|
|
236
|
+
|------|-------------|---------|----------|
|
|
237
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
238
|
+
| `--json` | Output in JSON format | - | No |
|
|
239
|
+
|
|
144
240
|
### `analytics conversions` (alias: `goals`)
|
|
145
241
|
|
|
146
242
|
Conversion goals: events or pages that count as success
|
|
@@ -152,6 +248,7 @@ Conversion goals: events or pages that count as success
|
|
|
152
248
|
- `update` - Replace a conversion's definition
|
|
153
249
|
- `delete` - Delete a conversion (recorded events are kept)
|
|
154
250
|
- `breakdown` - Where the visitors who converted came from
|
|
251
|
+
- `get-goal` - Get one conversion goal
|
|
155
252
|
|
|
156
253
|
#### `analytics conversions list`
|
|
157
254
|
|
|
@@ -164,6 +261,7 @@ List conversions with visitors, rate and revenue in a period
|
|
|
164
261
|
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
165
262
|
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 7d, 30d, 3m) | `30d` | No |
|
|
166
263
|
| `--json` | Output in JSON format | - | No |
|
|
264
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
167
265
|
|
|
168
266
|
#### `analytics conversions create`
|
|
169
267
|
|
|
@@ -227,6 +325,20 @@ Where the visitors who converted came from
|
|
|
227
325
|
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 7d, 30d, 3m) | `30d` | No |
|
|
228
326
|
| `--limit <n>` | Rows (default: 10, max: 100) | - | No |
|
|
229
327
|
| `--json` | Output in JSON format | - | No |
|
|
328
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
329
|
+
|
|
330
|
+
#### `analytics conversions get-goal`
|
|
331
|
+
|
|
332
|
+
Get one conversion goal
|
|
333
|
+
|
|
334
|
+
**Usage:** `analytics conversions get-goal <goal-id> [options]`
|
|
335
|
+
|
|
336
|
+
**Options:**
|
|
337
|
+
|
|
338
|
+
| Flag | Description | Default | Required |
|
|
339
|
+
|------|-------------|---------|----------|
|
|
340
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
341
|
+
| `--json` | Output in JSON format | - | No |
|
|
230
342
|
|
|
231
343
|
### `analytics identity`
|
|
232
344
|
|
|
@@ -273,6 +385,8 @@ Show analytics dashboard overview
|
|
|
273
385
|
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
274
386
|
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
|
|
275
387
|
| `--json` | Output in JSON format | - | No |
|
|
388
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
389
|
+
| `--deployment-id <n>` | Only this deployment (an ID) | - | No |
|
|
276
390
|
|
|
277
391
|
### `analytics top`
|
|
278
392
|
|
|
@@ -288,6 +402,16 @@ Show breakdown by dimension: pages, referrers, browsers, os, devices, countries,
|
|
|
288
402
|
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
|
|
289
403
|
| `--limit <n>` | Number of results (default: 20, max: 100) | - | No |
|
|
290
404
|
| `--json` | Output in JSON format | - | No |
|
|
405
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
406
|
+
| `--deployment-id <n>` | Only this deployment (an ID) | - | No |
|
|
407
|
+
| `--filter-browser <value>` | Only visitors on this browser | - | No |
|
|
408
|
+
| `--filter-channel <value>` | Only visitors from this channel (e.g. Organic Search) | - | No |
|
|
409
|
+
| `--filter-country <value>` | Only visitors from this country | - | No |
|
|
410
|
+
| `--filter-os <value>` | Only visitors on this operating system | - | No |
|
|
411
|
+
| `--filter-referrer <value>` | Only visitors from this referrer | - | No |
|
|
412
|
+
| `--filter-region <value>` | Only visitors from this region | - | No |
|
|
413
|
+
| `--include-crawlers` | Count crawler traffic too | - | No |
|
|
414
|
+
| `--no-include-crawlers` | Set include_crawlers to false | - | No |
|
|
291
415
|
|
|
292
416
|
### `analytics outbound`
|
|
293
417
|
|
|
@@ -301,6 +425,7 @@ Show the outbound links visitors clicked (outbound_click events)
|
|
|
301
425
|
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `7d` | No |
|
|
302
426
|
| `--limit <n>` | Number of results (default: 20, max: 100) | - | No |
|
|
303
427
|
| `--json` | Output in JSON format | - | No |
|
|
428
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
304
429
|
|
|
305
430
|
### `analytics downloads`
|
|
306
431
|
|
|
@@ -314,6 +439,7 @@ Show the files visitors downloaded (file_download events)
|
|
|
314
439
|
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `7d` | No |
|
|
315
440
|
| `--limit <n>` | Number of results (default: 20, max: 100) | - | No |
|
|
316
441
|
| `--json` | Output in JSON format | - | No |
|
|
442
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
317
443
|
|
|
318
444
|
### `analytics not-found`
|
|
319
445
|
|
|
@@ -327,6 +453,7 @@ Show pages visitors could not find: 404s Temps answered and not_found events
|
|
|
327
453
|
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `7d` | No |
|
|
328
454
|
| `--limit <n>` | Number of results (default: 20, max: 100) | - | No |
|
|
329
455
|
| `--json` | Output in JSON format | - | No |
|
|
456
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
330
457
|
|
|
331
458
|
### `analytics funnels`
|
|
332
459
|
|
|
@@ -339,6 +466,8 @@ Show funnel conversion metrics for all funnels
|
|
|
339
466
|
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
340
467
|
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `7d` | No |
|
|
341
468
|
| `--json` | Output in JSON format | - | No |
|
|
469
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
470
|
+
| `--country-code <value>` | Only visitors from this country (ISO code, e.g. DE) | - | No |
|
|
342
471
|
|
|
343
472
|
### `analytics performance` (alias: `speed`)
|
|
344
473
|
|
|
@@ -365,6 +494,21 @@ Show real-user Web Vitals and optional dimension breakdowns
|
|
|
365
494
|
| `--os <operating-system>` | Restrict samples to one operating system | - | No |
|
|
366
495
|
| `--json` | Output in JSON format | - | No |
|
|
367
496
|
|
|
497
|
+
**Subcommands:**
|
|
498
|
+
|
|
499
|
+
- `has-metrics` - Check if performance metrics exist for a project
|
|
500
|
+
|
|
501
|
+
#### `analytics performance has-metrics`
|
|
502
|
+
|
|
503
|
+
Check if performance metrics exist for a project
|
|
504
|
+
|
|
505
|
+
**Options:**
|
|
506
|
+
|
|
507
|
+
| Flag | Description | Default | Required |
|
|
508
|
+
|------|-------------|---------|----------|
|
|
509
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
510
|
+
| `--json` | Output in JSON format | - | No |
|
|
511
|
+
|
|
368
512
|
### `analytics ai-agents`
|
|
369
513
|
|
|
370
514
|
Show AI crawler / provider breakdown (web /analytics/ai-agents)
|
|
@@ -379,6 +523,7 @@ Show AI crawler / provider breakdown (web /analytics/ai-agents)
|
|
|
379
523
|
| `--group-by <mode>` | Group rows by "agent" (default) or "provider" | `agent` | No |
|
|
380
524
|
| `--path <path>` | Restrict to one URL path (e.g. /docs) | - | No |
|
|
381
525
|
| `--json` | Output in JSON format | - | No |
|
|
526
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
382
527
|
|
|
383
528
|
### `analytics ai-pages`
|
|
384
529
|
|
|
@@ -394,6 +539,7 @@ Show pages crawled by AI agents, with distinct-agent counts
|
|
|
394
539
|
| `--path <path>` | Restrict to one URL path (returns just that row) | - | No |
|
|
395
540
|
| `--with-agents` | Also fetch and render the per-agent split for each page (slower) | - | No |
|
|
396
541
|
| `--json` | Output in JSON format | - | No |
|
|
542
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
397
543
|
|
|
398
544
|
### `analytics ai-page`
|
|
399
545
|
|
|
@@ -410,6 +556,7 @@ Show which agents/providers crawled a single page (e.g. /docs)
|
|
|
410
556
|
| `--limit <n>` | Number of rows to fetch (default: 50, max: 100) | - | No |
|
|
411
557
|
| `--group-by <mode>` | Group rows by "agent" (default) or "provider" | `agent` | No |
|
|
412
558
|
| `--json` | Output in JSON format | - | No |
|
|
559
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
413
560
|
|
|
414
561
|
### `analytics api-overview`
|
|
415
562
|
|
|
@@ -532,6 +679,7 @@ Show an AI-generated summary of API traffic from /api-analytics/summary (require
|
|
|
532
679
|
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
533
680
|
| `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
|
|
534
681
|
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
|
|
682
|
+
| `--refresh` | Generate a fresh summary instead of the cached one | - | No |
|
|
535
683
|
| `--json` | Output in JSON format | - | No |
|
|
536
684
|
|
|
537
685
|
### `analytics enrich`
|
|
@@ -566,3 +714,853 @@ Label a visitor with your app's user id, as your backend would (browser identify
|
|
|
566
714
|
| `--set <key=value>` | Set one trait to a string value (repeatable) | `` | No |
|
|
567
715
|
| `--unset <key>` | Remove one trait (repeatable; sends null) | `` | No |
|
|
568
716
|
| `--json` | Output in JSON format | - | No |
|
|
717
|
+
|
|
718
|
+
### `analytics get-active-visitors`
|
|
719
|
+
|
|
720
|
+
Get detailed active visitors
|
|
721
|
+
|
|
722
|
+
**Options:**
|
|
723
|
+
|
|
724
|
+
| Flag | Description | Default | Required |
|
|
725
|
+
|------|-------------|---------|----------|
|
|
726
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
727
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
728
|
+
| `--deployment-id <n>` | Deployment ID (optional) | - | No |
|
|
729
|
+
| `--window-minutes <n>` | Time window in minutes for active visitors (default: 5) | - | No |
|
|
730
|
+
| `--json` | Output in JSON format | - | No |
|
|
731
|
+
|
|
732
|
+
### `analytics get-event-detail`
|
|
733
|
+
|
|
734
|
+
Get detailed analytics for a specific event
|
|
735
|
+
|
|
736
|
+
**Options:**
|
|
737
|
+
|
|
738
|
+
| Flag | Description | Default | Required |
|
|
739
|
+
|------|-------------|---------|----------|
|
|
740
|
+
| `--event-name <value>` | Event name to get details for [required] | - | No |
|
|
741
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
742
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
743
|
+
| `--start-date <value>` | Start date (ISO 8601) [required] | - | No |
|
|
744
|
+
| `--end-date <value>` | End date (ISO 8601) [required] | - | No |
|
|
745
|
+
| `--bucket-interval <value>` | Bucket interval: hour, day, week, month (default: auto) | - | No |
|
|
746
|
+
| `--json` | Output in JSON format | - | No |
|
|
747
|
+
|
|
748
|
+
### `analytics get-event-entries`
|
|
749
|
+
|
|
750
|
+
Get paginated list of raw occurrences of a specific event, including custom JSON properties
|
|
751
|
+
|
|
752
|
+
**Options:**
|
|
753
|
+
|
|
754
|
+
| Flag | Description | Default | Required |
|
|
755
|
+
|------|-------------|---------|----------|
|
|
756
|
+
| `--event-name <value>` | Event name to list occurrences for [required] | - | No |
|
|
757
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
758
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
759
|
+
| `--start-date <value>` | Start date (ISO 8601) [required] | - | No |
|
|
760
|
+
| `--end-date <value>` | End date (ISO 8601) [required] | - | No |
|
|
761
|
+
| `--page <n>` | Page number (1-based, default: 1) | - | No |
|
|
762
|
+
| `--per-page <n>` | Items per page (default: 20, max: 100) | - | No |
|
|
763
|
+
| `--json` | Output in JSON format | - | No |
|
|
764
|
+
|
|
765
|
+
### `analytics get-event-visitors`
|
|
766
|
+
|
|
767
|
+
Get paginated list of visitors who triggered a specific event
|
|
768
|
+
|
|
769
|
+
**Options:**
|
|
770
|
+
|
|
771
|
+
| Flag | Description | Default | Required |
|
|
772
|
+
|------|-------------|---------|----------|
|
|
773
|
+
| `--event-name <value>` | Event name to list visitors for [required] | - | No |
|
|
774
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
775
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
776
|
+
| `--start-date <value>` | Start date (ISO 8601) [required] | - | No |
|
|
777
|
+
| `--end-date <value>` | End date (ISO 8601) [required] | - | No |
|
|
778
|
+
| `--page <n>` | Page number (1-based, default: 1) | - | No |
|
|
779
|
+
| `--per-page <n>` | Items per page (default: 20, max: 100) | - | No |
|
|
780
|
+
| `--json` | Output in JSON format | - | No |
|
|
781
|
+
|
|
782
|
+
### `analytics get-events-count`
|
|
783
|
+
|
|
784
|
+
Get analytics events count
|
|
785
|
+
|
|
786
|
+
**Options:**
|
|
787
|
+
|
|
788
|
+
| Flag | Description | Default | Required |
|
|
789
|
+
|------|-------------|---------|----------|
|
|
790
|
+
| `--start-date <value>` | Start date in format YYYY-MM-DD HH:MM:SS [required] | - | No |
|
|
791
|
+
| `--end-date <value>` | End date in format YYYY-MM-DD HH:MM:SS [required] | - | No |
|
|
792
|
+
| `--project-id <n>` | Project ID or slug [required] | - | No |
|
|
793
|
+
| `--limit <n>` | Maximum number of results to return | - | No |
|
|
794
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
795
|
+
| `--custom-events-only` | Only return custom events, excluding system events like page_view, page_leave, heartbeat (default: true) | - | No |
|
|
796
|
+
| `--no-custom-events-only` | Set custom_events_only to false | - | No |
|
|
797
|
+
| `--breakdown <value>` | Breakdown by geography: 'country', 'region', or 'city' (optional) | - | No |
|
|
798
|
+
| `--json` | Output in JSON format | - | No |
|
|
799
|
+
|
|
800
|
+
### `analytics get-stats`
|
|
801
|
+
|
|
802
|
+
Get general statistics across all projects for a time frame
|
|
803
|
+
|
|
804
|
+
**Options:**
|
|
805
|
+
|
|
806
|
+
| Flag | Description | Default | Required |
|
|
807
|
+
|------|-------------|---------|----------|
|
|
808
|
+
| `--start-date <value>` | Start date in format YYYY-MM-DD HH:MM:SS [required] | - | No |
|
|
809
|
+
| `--end-date <value>` | End date in format YYYY-MM-DD HH:MM:SS [required] | - | No |
|
|
810
|
+
| `--project-ids <n>` | Optional: Filter by specific project IDs (comma-separated) (repeatable) | - | No |
|
|
811
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
812
|
+
| `--include-project-breakdown` | Whether to include per-project breakdown (default: false) | - | No |
|
|
813
|
+
| `--no-include-project-breakdown` | Set include_project_breakdown to false | - | No |
|
|
814
|
+
| `--json` | Output in JSON format | - | No |
|
|
815
|
+
|
|
816
|
+
### `analytics get-global`
|
|
817
|
+
|
|
818
|
+
Get global analytics
|
|
819
|
+
|
|
820
|
+
**Options:**
|
|
821
|
+
|
|
822
|
+
| Flag | Description | Default | Required |
|
|
823
|
+
|------|-------------|---------|----------|
|
|
824
|
+
| `--facet <value>` | Query parameter facet (one of: summary, traffic, pages, events, breakdown, speed) | - | No |
|
|
825
|
+
| `--project-id <n>` | Query parameter project_id | - | No |
|
|
826
|
+
| `--environment-id <n>` | Query parameter environment_id | - | No |
|
|
827
|
+
| `--start-date <value>` | Query parameter start_date [required] | - | No |
|
|
828
|
+
| `--end-date <value>` | Query parameter end_date [required] | - | No |
|
|
829
|
+
| `--search <value>` | Query parameter search | - | No |
|
|
830
|
+
| `--dimension <value>` | Query parameter dimension | - | No |
|
|
831
|
+
| `--device <value>` | Query parameter device | - | No |
|
|
832
|
+
| `--sort-by <value>` | Query parameter sort_by | - | No |
|
|
833
|
+
| `--sort-order <value>` | Query parameter sort_order | - | No |
|
|
834
|
+
| `--page <n>` | Query parameter page | - | No |
|
|
835
|
+
| `--per-page <n>` | Query parameter per_page | - | No |
|
|
836
|
+
| `--min-views <n>` | Query parameter min_views | - | No |
|
|
837
|
+
| `--min-sessions <n>` | Query parameter min_sessions | - | No |
|
|
838
|
+
| `--json` | Output in JSON format | - | No |
|
|
839
|
+
|
|
840
|
+
### `analytics get`
|
|
841
|
+
|
|
842
|
+
Get analytics projects
|
|
843
|
+
|
|
844
|
+
**Options:**
|
|
845
|
+
|
|
846
|
+
| Flag | Description | Default | Required |
|
|
847
|
+
|------|-------------|---------|----------|
|
|
848
|
+
| `--json` | Output in JSON format | - | No |
|
|
849
|
+
|
|
850
|
+
### `analytics check-has-events`
|
|
851
|
+
|
|
852
|
+
Check analytics has events
|
|
853
|
+
|
|
854
|
+
**Options:**
|
|
855
|
+
|
|
856
|
+
| Flag | Description | Default | Required |
|
|
857
|
+
|------|-------------|---------|----------|
|
|
858
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
859
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
860
|
+
| `--json` | Output in JSON format | - | No |
|
|
861
|
+
|
|
862
|
+
### `analytics get-live-visitors-list`
|
|
863
|
+
|
|
864
|
+
Get list of currently live visitors from visitor table
|
|
865
|
+
|
|
866
|
+
**Options:**
|
|
867
|
+
|
|
868
|
+
| Flag | Description | Default | Required |
|
|
869
|
+
|------|-------------|---------|----------|
|
|
870
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
871
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
872
|
+
| `--window-minutes <n>` | Time window in minutes for live visitors (default: 5) | - | No |
|
|
873
|
+
| `--json` | Output in JSON format | - | No |
|
|
874
|
+
|
|
875
|
+
### `analytics get-page-flow`
|
|
876
|
+
|
|
877
|
+
Get page flow analytics: entry pages, exit pages, drop-off points, and page transitions
|
|
878
|
+
|
|
879
|
+
**Options:**
|
|
880
|
+
|
|
881
|
+
| Flag | Description | Default | Required |
|
|
882
|
+
|------|-------------|---------|----------|
|
|
883
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
884
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
885
|
+
| `--start-date <value>` | Start date in ISO 8601 format [required] | - | No |
|
|
886
|
+
| `--end-date <value>` | End date in ISO 8601 format [required] | - | No |
|
|
887
|
+
| `--limit <n>` | Max entry/exit pages to return (default: 20, max: 100) | - | No |
|
|
888
|
+
| `--transitions-limit <n>` | Max page transitions to return (default: 50, max: 200) | - | No |
|
|
889
|
+
| `--min-views-for-dropoff <n>` | Minimum views for drop-off analysis (default: 5) | - | No |
|
|
890
|
+
| `--json` | Output in JSON format | - | No |
|
|
891
|
+
|
|
892
|
+
### `analytics get-page-hourly-sessions`
|
|
893
|
+
|
|
894
|
+
Get page hourly sessions
|
|
895
|
+
|
|
896
|
+
**Options:**
|
|
897
|
+
|
|
898
|
+
| Flag | Description | Default | Required |
|
|
899
|
+
|------|-------------|---------|----------|
|
|
900
|
+
| `--page-path <value>` | The page path to get sessions for [required] | - | No |
|
|
901
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
902
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
903
|
+
| `--start-time <value>` | Start time in format YYYY-MM-DD HH:MM:SS [required] | - | No |
|
|
904
|
+
| `--end-time <value>` | End time in format YYYY-MM-DD HH:MM:SS [required] | - | No |
|
|
905
|
+
| `--bucket-interval <value>` | Bucket interval: 'hour', 'day', 'week', or 'month' (default: auto-determined based on range) | - | No |
|
|
906
|
+
| `--json` | Output in JSON format | - | No |
|
|
907
|
+
|
|
908
|
+
### `analytics get-page-path-detail`
|
|
909
|
+
|
|
910
|
+
Get detailed analytics for a specific page path Returns visitors, page views, activity over time,..
|
|
911
|
+
|
|
912
|
+
**Options:**
|
|
913
|
+
|
|
914
|
+
| Flag | Description | Default | Required |
|
|
915
|
+
|------|-------------|---------|----------|
|
|
916
|
+
| `--page-path <value>` | The page path to get details for (URL-encoded) [required] | - | No |
|
|
917
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
918
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
919
|
+
| `--start-date <value>` | Start date in ISO 8601 format [required] | - | No |
|
|
920
|
+
| `--end-date <value>` | End date in ISO 8601 format [required] | - | No |
|
|
921
|
+
| `--bucket-interval <value>` | Bucket interval for time series: 'hour', 'day', 'week', 'month' (default: auto based on date range) | - | No |
|
|
922
|
+
| `--json` | Output in JSON format | - | No |
|
|
923
|
+
|
|
924
|
+
### `analytics get-page-path-visitors`
|
|
925
|
+
|
|
926
|
+
Get individual visitor sessions for a specific page path
|
|
927
|
+
|
|
928
|
+
**Options:**
|
|
929
|
+
|
|
930
|
+
| Flag | Description | Default | Required |
|
|
931
|
+
|------|-------------|---------|----------|
|
|
932
|
+
| `--page-path <value>` | The page path to get visitors for (URL-encoded) [required] | - | No |
|
|
933
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
934
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
935
|
+
| `--start-date <value>` | Start date in ISO 8601 format [required] | - | No |
|
|
936
|
+
| `--end-date <value>` | End date in ISO 8601 format [required] | - | No |
|
|
937
|
+
| `--page <n>` | Page number (1-based, default: 1) | - | No |
|
|
938
|
+
| `--per-page <n>` | Items per page (default: 50, max: 100) | - | No |
|
|
939
|
+
| `--json` | Output in JSON format | - | No |
|
|
940
|
+
|
|
941
|
+
### `analytics get-page-paths-sparklines`
|
|
942
|
+
|
|
943
|
+
Get page paths sparklines
|
|
944
|
+
|
|
945
|
+
**Options:**
|
|
946
|
+
|
|
947
|
+
| Flag | Description | Default | Required |
|
|
948
|
+
|------|-------------|---------|----------|
|
|
949
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
950
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
951
|
+
| `--start-time <value>` | Start time in ISO 8601 format [required] | - | No |
|
|
952
|
+
| `--end-time <value>` | End time in ISO 8601 format [required] | - | No |
|
|
953
|
+
| `--page-paths <value>` | Comma-separated list of page paths [required] | - | No |
|
|
954
|
+
| `--json` | Output in JSON format | - | No |
|
|
955
|
+
|
|
956
|
+
### `analytics get-recent-activity`
|
|
957
|
+
|
|
958
|
+
Get recent activity events for real-time activity feed
|
|
959
|
+
|
|
960
|
+
**Options:**
|
|
961
|
+
|
|
962
|
+
| Flag | Description | Default | Required |
|
|
963
|
+
|------|-------------|---------|----------|
|
|
964
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
965
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
966
|
+
| `--since-id <n>` | Return events with ID greater than this (cursor-based polling) | - | No |
|
|
967
|
+
| `--limit <n>` | Max events to return (default: 50, max: 100) | - | No |
|
|
968
|
+
| `--json` | Output in JSON format | - | No |
|
|
969
|
+
|
|
970
|
+
### `analytics get-session-details`
|
|
971
|
+
|
|
972
|
+
Get detailed information about a specific session including events and request logs
|
|
973
|
+
|
|
974
|
+
**Usage:** `analytics get-session-details <session-id> [options]`
|
|
975
|
+
|
|
976
|
+
**Options:**
|
|
977
|
+
|
|
978
|
+
| Flag | Description | Default | Required |
|
|
979
|
+
|------|-------------|---------|----------|
|
|
980
|
+
| `--project-id <n>` | Project ID or slug [required] | - | No |
|
|
981
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
982
|
+
| `--json` | Output in JSON format | - | No |
|
|
983
|
+
|
|
984
|
+
### `analytics get-session-events`
|
|
985
|
+
|
|
986
|
+
Get analytics session events
|
|
987
|
+
|
|
988
|
+
**Usage:** `analytics get-session-events <session-id> [options]`
|
|
989
|
+
|
|
990
|
+
**Options:**
|
|
991
|
+
|
|
992
|
+
| Flag | Description | Default | Required |
|
|
993
|
+
|------|-------------|---------|----------|
|
|
994
|
+
| `--project-id <n>` | Project ID or slug [required] | - | No |
|
|
995
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
996
|
+
| `--start-date <value>` | Start date in format YYYY-MM-DD HH:MM:SS | - | No |
|
|
997
|
+
| `--end-date <value>` | End date in format YYYY-MM-DD HH:MM:SS | - | No |
|
|
998
|
+
| `--limit <n>` | Number of results to return (default: 100) | - | No |
|
|
999
|
+
| `--offset <n>` | Number of results to skip (default: 0) | - | No |
|
|
1000
|
+
| `--json` | Output in JSON format | - | No |
|
|
1001
|
+
|
|
1002
|
+
### `analytics get-session-logs`
|
|
1003
|
+
|
|
1004
|
+
Get session logs
|
|
1005
|
+
|
|
1006
|
+
**Usage:** `analytics get-session-logs <session-id> [options]`
|
|
1007
|
+
|
|
1008
|
+
**Options:**
|
|
1009
|
+
|
|
1010
|
+
| Flag | Description | Default | Required |
|
|
1011
|
+
|------|-------------|---------|----------|
|
|
1012
|
+
| `--project-id <n>` | Project ID or slug [required] | - | No |
|
|
1013
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
1014
|
+
| `--start-date <value>` | Start date in format YYYY-MM-DD HH:MM:SS | - | No |
|
|
1015
|
+
| `--end-date <value>` | End date in format YYYY-MM-DD HH:MM:SS | - | No |
|
|
1016
|
+
| `--limit <n>` | Number of results to return (default: 100) | - | No |
|
|
1017
|
+
| `--offset <n>` | Number of results to skip (default: 0) | - | No |
|
|
1018
|
+
| `--json` | Output in JSON format | - | No |
|
|
1019
|
+
|
|
1020
|
+
### `analytics get-visitor-facets`
|
|
1021
|
+
|
|
1022
|
+
Get filter dropdown contents for the visitors page
|
|
1023
|
+
|
|
1024
|
+
**Options:**
|
|
1025
|
+
|
|
1026
|
+
| Flag | Description | Default | Required |
|
|
1027
|
+
|------|-------------|---------|----------|
|
|
1028
|
+
| `--start-date <value>` | Start date in format YYYY-MM-DD HH:MM:SS [required] | - | No |
|
|
1029
|
+
| `--end-date <value>` | End date in format YYYY-MM-DD HH:MM:SS [required] | - | No |
|
|
1030
|
+
| `--project-id <n>` | Project ID or slug [required] | - | No |
|
|
1031
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
1032
|
+
| `--include-crawlers` | Include crawlers (default: false) | - | No |
|
|
1033
|
+
| `--no-include-crawlers` | Set include_crawlers to false | - | No |
|
|
1034
|
+
| `--has-activity-only` | Hide ghost visitors (default: true) | - | No |
|
|
1035
|
+
| `--no-has-activity-only` | Set has_activity_only to false | - | No |
|
|
1036
|
+
| `--per-facet-limit <n>` | Top N values per dimension (default: 50, max: 200) | - | No |
|
|
1037
|
+
| `--filter-country <value>` | Geolocation country | - | No |
|
|
1038
|
+
| `--filter-region <value>` | Geolocation region | - | No |
|
|
1039
|
+
| `--filter-city <value>` | Geolocation city | - | No |
|
|
1040
|
+
| `--filter-channel <value>` | First-touch channel | - | No |
|
|
1041
|
+
| `--filter-referrer <value>` | First-touch referrer hostname (use 'Direct' for null) | - | No |
|
|
1042
|
+
| `--filter-user-id <value>` | User id set by identify(): the same user on every device | - | No |
|
|
1043
|
+
| `--json` | Output in JSON format | - | No |
|
|
1044
|
+
|
|
1045
|
+
### `analytics get-visitors`
|
|
1046
|
+
|
|
1047
|
+
Get list of visitors with summary information
|
|
1048
|
+
|
|
1049
|
+
**Options:**
|
|
1050
|
+
|
|
1051
|
+
| Flag | Description | Default | Required |
|
|
1052
|
+
|------|-------------|---------|----------|
|
|
1053
|
+
| `--start-date <value>` | Start date in format YYYY-MM-DD HH:MM:SS [required] | - | No |
|
|
1054
|
+
| `--end-date <value>` | End date in format YYYY-MM-DD HH:MM:SS [required] | - | No |
|
|
1055
|
+
| `--project-id <n>` | Project ID or slug [required] | - | No |
|
|
1056
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
1057
|
+
| `--include-crawlers` | Include crawlers (default: false) | - | No |
|
|
1058
|
+
| `--no-include-crawlers` | Set include_crawlers to false | - | No |
|
|
1059
|
+
| `--limit <n>` | Maximum number of visitors to return (default: 50) | - | No |
|
|
1060
|
+
| `--offset <n>` | Number of visitors to skip (default: 0) | - | No |
|
|
1061
|
+
| `--has-activity-only` | Filter to only include visitors with recorded activity (events/sessions) | - | No |
|
|
1062
|
+
| `--no-has-activity-only` | Set has_activity_only to false | - | No |
|
|
1063
|
+
| `--filter-country <value>` | Geolocation country | - | No |
|
|
1064
|
+
| `--filter-region <value>` | Geolocation region | - | No |
|
|
1065
|
+
| `--filter-city <value>` | Geolocation city | - | No |
|
|
1066
|
+
| `--filter-channel <value>` | First-touch channel | - | No |
|
|
1067
|
+
| `--filter-referrer <value>` | First-touch referrer hostname (use 'Direct' for null) | - | No |
|
|
1068
|
+
| `--filter-user-id <value>` | User id set by identify(): the same user on every device | - | No |
|
|
1069
|
+
| `--json` | Output in JSON format | - | No |
|
|
1070
|
+
|
|
1071
|
+
### `analytics get-visitor-by-guid`
|
|
1072
|
+
|
|
1073
|
+
Get visitor by GUID with geolocation data
|
|
1074
|
+
|
|
1075
|
+
**Usage:** `analytics get-visitor-by-guid <visitor-id> [options]`
|
|
1076
|
+
|
|
1077
|
+
**Options:**
|
|
1078
|
+
|
|
1079
|
+
| Flag | Description | Default | Required |
|
|
1080
|
+
|------|-------------|---------|----------|
|
|
1081
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
1082
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
1083
|
+
| `--json` | Output in JSON format | - | No |
|
|
1084
|
+
|
|
1085
|
+
### `analytics get-visitor-by-id`
|
|
1086
|
+
|
|
1087
|
+
Get visitor by numeric ID with geolocation data
|
|
1088
|
+
|
|
1089
|
+
**Usage:** `analytics get-visitor-by-id <id> [options]`
|
|
1090
|
+
|
|
1091
|
+
**Options:**
|
|
1092
|
+
|
|
1093
|
+
| Flag | Description | Default | Required |
|
|
1094
|
+
|------|-------------|---------|----------|
|
|
1095
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
1096
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
1097
|
+
| `--json` | Output in JSON format | - | No |
|
|
1098
|
+
|
|
1099
|
+
### `analytics get-visitor-details`
|
|
1100
|
+
|
|
1101
|
+
Get detailed information about a specific visitor by numeric ID
|
|
1102
|
+
|
|
1103
|
+
**Usage:** `analytics get-visitor-details <visitor-id> [options]`
|
|
1104
|
+
|
|
1105
|
+
**Options:**
|
|
1106
|
+
|
|
1107
|
+
| Flag | Description | Default | Required |
|
|
1108
|
+
|------|-------------|---------|----------|
|
|
1109
|
+
| `--project-id <n>` | Project ID or slug [required] | - | No |
|
|
1110
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
1111
|
+
| `--json` | Output in JSON format | - | No |
|
|
1112
|
+
|
|
1113
|
+
### `analytics identify-visitor-for-token`
|
|
1114
|
+
|
|
1115
|
+
Identify a visitor of the token's own project (ADR 109 D4)
|
|
1116
|
+
|
|
1117
|
+
**Usage:** `analytics identify-visitor-for-token <visitor-id> [options]`
|
|
1118
|
+
|
|
1119
|
+
**Options:**
|
|
1120
|
+
|
|
1121
|
+
| Flag | Description | Default | Required |
|
|
1122
|
+
|------|-------------|---------|----------|
|
|
1123
|
+
| `--traits <json>` | Traits merged into the visitor's 'custom_data' at the top level; a key set to 'null' is removed (JSON) | - | No |
|
|
1124
|
+
| `--user-id <value>` | The app's own id for the person (database id, UUID, email) [required] | - | No |
|
|
1125
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1126
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1127
|
+
| `--json` | Output in JSON format | - | No |
|
|
1128
|
+
|
|
1129
|
+
### `analytics get-visitor-info`
|
|
1130
|
+
|
|
1131
|
+
Get visitor record from database
|
|
1132
|
+
|
|
1133
|
+
**Usage:** `analytics get-visitor-info <visitor-id> [options]`
|
|
1134
|
+
|
|
1135
|
+
**Options:**
|
|
1136
|
+
|
|
1137
|
+
| Flag | Description | Default | Required |
|
|
1138
|
+
|------|-------------|---------|----------|
|
|
1139
|
+
| `--project-id <n>` | Project ID or slug [required] | - | No |
|
|
1140
|
+
| `--json` | Output in JSON format | - | No |
|
|
1141
|
+
|
|
1142
|
+
### `analytics get-visitor-journey`
|
|
1143
|
+
|
|
1144
|
+
Get the complete visitor journey: all events across all sessions, grouped by session
|
|
1145
|
+
|
|
1146
|
+
**Usage:** `analytics get-visitor-journey <visitor-id> [options]`
|
|
1147
|
+
|
|
1148
|
+
**Options:**
|
|
1149
|
+
|
|
1150
|
+
| Flag | Description | Default | Required |
|
|
1151
|
+
|------|-------------|---------|----------|
|
|
1152
|
+
| `--project-id <n>` | Project ID [required] | - | No |
|
|
1153
|
+
| `--limit-sessions <n>` | Maximum number of sessions to return (default: 50) | - | No |
|
|
1154
|
+
| `--json` | Output in JSON format | - | No |
|
|
1155
|
+
|
|
1156
|
+
### `analytics get-visitor-sessions`
|
|
1157
|
+
|
|
1158
|
+
Get all sessions for a specific visitor by numeric ID
|
|
1159
|
+
|
|
1160
|
+
**Usage:** `analytics get-visitor-sessions <visitor-id> [options]`
|
|
1161
|
+
|
|
1162
|
+
**Options:**
|
|
1163
|
+
|
|
1164
|
+
| Flag | Description | Default | Required |
|
|
1165
|
+
|------|-------------|---------|----------|
|
|
1166
|
+
| `--project-id <n>` | Project ID or slug [required] | - | No |
|
|
1167
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
1168
|
+
| `--limit <n>` | Maximum number of sessions to return (default: 100) | - | No |
|
|
1169
|
+
| `--json` | Output in JSON format | - | No |
|
|
1170
|
+
|
|
1171
|
+
### `analytics get-visitor-stats`
|
|
1172
|
+
|
|
1173
|
+
Get visitor statistics
|
|
1174
|
+
|
|
1175
|
+
**Usage:** `analytics get-visitor-stats <visitor-id> [options]`
|
|
1176
|
+
|
|
1177
|
+
**Options:**
|
|
1178
|
+
|
|
1179
|
+
| Flag | Description | Default | Required |
|
|
1180
|
+
|------|-------------|---------|----------|
|
|
1181
|
+
| `--project-id <n>` | Project ID or slug [required] | - | No |
|
|
1182
|
+
| `--json` | Output in JSON format | - | No |
|
|
1183
|
+
|
|
1184
|
+
### `analytics events`
|
|
1185
|
+
|
|
1186
|
+
Events commands
|
|
1187
|
+
|
|
1188
|
+
**Subcommands:**
|
|
1189
|
+
|
|
1190
|
+
- `get-dashboard` - Get dashboard analytics for multiple projects in a single batch request
|
|
1191
|
+
- `get-active-visitors` - Get active visitors count
|
|
1192
|
+
- `get-type-breakdown` - Get event type breakdown
|
|
1193
|
+
- `record-console` - Record an analytics event via the console API with explicit project ID
|
|
1194
|
+
- `get-property-timeline` - Get property timeline by grouping events by a column over time
|
|
1195
|
+
- `get-timeline` - Get events timeline
|
|
1196
|
+
- `has` - Check if project has any analytics events
|
|
1197
|
+
- `get-hourly-visits` - Get hourly visits
|
|
1198
|
+
- `get-session` - Get events for a specific session
|
|
1199
|
+
|
|
1200
|
+
#### `analytics events get-dashboard`
|
|
1201
|
+
|
|
1202
|
+
Get dashboard analytics for multiple projects in a single batch request
|
|
1203
|
+
|
|
1204
|
+
**Options:**
|
|
1205
|
+
|
|
1206
|
+
| Flag | Description | Default | Required |
|
|
1207
|
+
|------|-------------|---------|----------|
|
|
1208
|
+
| `--project-ids <value>` | Comma-separated list of project IDs [required] | - | No |
|
|
1209
|
+
| `--start-date <value>` | Start date for filtering [required] | - | No |
|
|
1210
|
+
| `--end-date <value>` | End date for filtering [required] | - | No |
|
|
1211
|
+
| `--json` | Output in JSON format | - | No |
|
|
1212
|
+
|
|
1213
|
+
#### `analytics events get-active-visitors`
|
|
1214
|
+
|
|
1215
|
+
Get active visitors count
|
|
1216
|
+
|
|
1217
|
+
**Options:**
|
|
1218
|
+
|
|
1219
|
+
| Flag | Description | Default | Required |
|
|
1220
|
+
|------|-------------|---------|----------|
|
|
1221
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1222
|
+
| `--environment-id <n>` | Filter by environment ID | - | No |
|
|
1223
|
+
| `--deployment-id <n>` | Filter by deployment ID | - | No |
|
|
1224
|
+
| `--json` | Output in JSON format | - | No |
|
|
1225
|
+
|
|
1226
|
+
#### `analytics events get-type-breakdown`
|
|
1227
|
+
|
|
1228
|
+
Get event type breakdown
|
|
1229
|
+
|
|
1230
|
+
**Options:**
|
|
1231
|
+
|
|
1232
|
+
| Flag | Description | Default | Required |
|
|
1233
|
+
|------|-------------|---------|----------|
|
|
1234
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1235
|
+
| `--start-date <value>` | Start date for filtering events [required] | - | No |
|
|
1236
|
+
| `--end-date <value>` | End date for filtering events [required] | - | No |
|
|
1237
|
+
| `--environment-id <n>` | Filter by environment ID | - | No |
|
|
1238
|
+
| `--aggregation-level <value>` | Aggregation level: events, sessions, or visitors (default: events) | - | No |
|
|
1239
|
+
| `--json` | Output in JSON format | - | No |
|
|
1240
|
+
|
|
1241
|
+
#### `analytics events record-console`
|
|
1242
|
+
|
|
1243
|
+
Record an analytics event via the console API with explicit project ID
|
|
1244
|
+
|
|
1245
|
+
**Options:**
|
|
1246
|
+
|
|
1247
|
+
| Flag | Description | Default | Required |
|
|
1248
|
+
|------|-------------|---------|----------|
|
|
1249
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1250
|
+
| `--deployment-id <n>` | Deployment ID to attribute the event to [required] | - | No |
|
|
1251
|
+
| `--environment-id <n>` | Environment ID to attribute the event to [required] | - | No |
|
|
1252
|
+
| `--event-data <json>` | Arbitrary JSON event data (JSON) | - | No |
|
|
1253
|
+
| `--event-name <value>` | Event name (e.g. "purchase", "signup", custom event names) [required] | - | No |
|
|
1254
|
+
| `--request-path <value>` | Page path context (defaults to "/") | - | No |
|
|
1255
|
+
| `--request-query <value>` | Query string context | - | No |
|
|
1256
|
+
| `--session-id <value>` | Encrypted '_temps_sid' cookie value from the user's browser | - | No |
|
|
1257
|
+
| `--visitor-id <value>` | Encrypted '_temps_visitor_id' cookie value from the user's browser | - | No |
|
|
1258
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1259
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1260
|
+
| `--json` | Output in JSON format | - | No |
|
|
1261
|
+
|
|
1262
|
+
#### `analytics events get-property-timeline`
|
|
1263
|
+
|
|
1264
|
+
Get property timeline by grouping events by a column over time
|
|
1265
|
+
|
|
1266
|
+
**Options:**
|
|
1267
|
+
|
|
1268
|
+
| Flag | Description | Default | Required |
|
|
1269
|
+
|------|-------------|---------|----------|
|
|
1270
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1271
|
+
| `--start-date <value>` | Start date in '%Y-%m-%d %H:%M:%S' format [required] | - | No |
|
|
1272
|
+
| `--end-date <value>` | End date in '%Y-%m-%d %H:%M:%S' format [required] | - | No |
|
|
1273
|
+
| `--group-by <value>` | Column to group by (channel, device_type, browser, etc.) [required] | - | No |
|
|
1274
|
+
| `--environment-id <n>` | Filter by environment ID | - | No |
|
|
1275
|
+
| `--deployment-id <n>` | Filter by deployment ID | - | No |
|
|
1276
|
+
| `--event-name <value>` | Filter by event name | - | No |
|
|
1277
|
+
| `--aggregation-level <value>` | Aggregation level: events, sessions, or visitors - default: events | - | No |
|
|
1278
|
+
| `--bucket-size <value>` | Time bucket: hour, day, week, month (default: auto-detect) | - | No |
|
|
1279
|
+
| `--include-crawlers` | Include crawler/bot traffic (default: false) | - | No |
|
|
1280
|
+
| `--no-include-crawlers` | Set include_crawlers to false | - | No |
|
|
1281
|
+
| `--json` | Output in JSON format | - | No |
|
|
1282
|
+
|
|
1283
|
+
#### `analytics events get-timeline`
|
|
1284
|
+
|
|
1285
|
+
Get events timeline
|
|
1286
|
+
|
|
1287
|
+
**Options:**
|
|
1288
|
+
|
|
1289
|
+
| Flag | Description | Default | Required |
|
|
1290
|
+
|------|-------------|---------|----------|
|
|
1291
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1292
|
+
| `--start-date <value>` | Start date for filtering events [required] | - | No |
|
|
1293
|
+
| `--end-date <value>` | End date for filtering events [required] | - | No |
|
|
1294
|
+
| `--environment-id <n>` | Filter by environment ID | - | No |
|
|
1295
|
+
| `--event-name <value>` | Filter by specific event name | - | No |
|
|
1296
|
+
| `--bucket-size <value>` | Bucket size: hour, day, or week (auto-detected if not specified) | - | No |
|
|
1297
|
+
| `--aggregation-level <value>` | Aggregation level: events, sessions, or visitors (default: events) | - | No |
|
|
1298
|
+
| `--json` | Output in JSON format | - | No |
|
|
1299
|
+
|
|
1300
|
+
#### `analytics events has`
|
|
1301
|
+
|
|
1302
|
+
Check if project has any analytics events
|
|
1303
|
+
|
|
1304
|
+
**Options:**
|
|
1305
|
+
|
|
1306
|
+
| Flag | Description | Default | Required |
|
|
1307
|
+
|------|-------------|---------|----------|
|
|
1308
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1309
|
+
| `--json` | Output in JSON format | - | No |
|
|
1310
|
+
|
|
1311
|
+
#### `analytics events get-hourly-visits`
|
|
1312
|
+
|
|
1313
|
+
Get hourly visits
|
|
1314
|
+
|
|
1315
|
+
**Options:**
|
|
1316
|
+
|
|
1317
|
+
| Flag | Description | Default | Required |
|
|
1318
|
+
|------|-------------|---------|----------|
|
|
1319
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1320
|
+
| `--start-date <value>` | Start date for filtering visits [required] | - | No |
|
|
1321
|
+
| `--end-date <value>` | End date for filtering visits [required] | - | No |
|
|
1322
|
+
| `--environment-id <n>` | Filter by environment ID | - | No |
|
|
1323
|
+
| `--aggregation-level <value>` | Aggregation level: events (page views), sessions (unique sessions), or visitors (unique visitors) -... | - | No |
|
|
1324
|
+
| `--json` | Output in JSON format | - | No |
|
|
1325
|
+
|
|
1326
|
+
#### `analytics events get-session`
|
|
1327
|
+
|
|
1328
|
+
Get events for a specific session
|
|
1329
|
+
|
|
1330
|
+
**Usage:** `analytics events get-session <session-id> [options]`
|
|
1331
|
+
|
|
1332
|
+
**Options:**
|
|
1333
|
+
|
|
1334
|
+
| Flag | Description | Default | Required |
|
|
1335
|
+
|------|-------------|---------|----------|
|
|
1336
|
+
| `--environment-id <n>` | Filter by environment ID | - | No |
|
|
1337
|
+
| `--json` | Output in JSON format | - | No |
|
|
1338
|
+
|
|
1339
|
+
### `analytics visitors`
|
|
1340
|
+
|
|
1341
|
+
Visitors commands
|
|
1342
|
+
|
|
1343
|
+
**Subcommands:**
|
|
1344
|
+
|
|
1345
|
+
- `get-activity-status` - Get activity status
|
|
1346
|
+
- `save-activity-settings` - Save activity settings
|
|
1347
|
+
- `suggest-activity-goals` - Suggest activity goals
|
|
1348
|
+
- `preview-activity-report` - Preview activity report
|
|
1349
|
+
- `run-activity-report` - Run activity report
|
|
1350
|
+
|
|
1351
|
+
#### `analytics visitors get-activity-status`
|
|
1352
|
+
|
|
1353
|
+
Get activity status
|
|
1354
|
+
|
|
1355
|
+
**Options:**
|
|
1356
|
+
|
|
1357
|
+
| Flag | Description | Default | Required |
|
|
1358
|
+
|------|-------------|---------|----------|
|
|
1359
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1360
|
+
| `--environment-id <n>` | Query parameter environment_id | - | No |
|
|
1361
|
+
| `--json` | Output in JSON format | - | No |
|
|
1362
|
+
|
|
1363
|
+
#### `analytics visitors save-activity-settings`
|
|
1364
|
+
|
|
1365
|
+
Save activity settings
|
|
1366
|
+
|
|
1367
|
+
**Options:**
|
|
1368
|
+
|
|
1369
|
+
| Flag | Description | Default | Required |
|
|
1370
|
+
|------|-------------|---------|----------|
|
|
1371
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1372
|
+
| `--application-context <value>` | Body field application_context [required] | - | No |
|
|
1373
|
+
| `--categories <json>` | Body field categories (JSON) [required] | - | No |
|
|
1374
|
+
| `--daily-enabled` | Body field daily_enabled [required] | - | No |
|
|
1375
|
+
| `--no-daily-enabled` | Set daily_enabled to false | - | No |
|
|
1376
|
+
| `--environment-id <n>` | Body field environment_id | - | No |
|
|
1377
|
+
| `--goal-title <value>` | Short operator-facing label for the selected analysis goal | - | No |
|
|
1378
|
+
| `--min-page-paths <n>` | Body field min_page_paths | - | No |
|
|
1379
|
+
| `--min-sessions <n>` | Body field min_sessions | - | No |
|
|
1380
|
+
| `--property-keys <value>` | Only these event-property keys may be sent to the provider (repeatable) [required] | - | No |
|
|
1381
|
+
| `--share-activity-with-ai` | Explicit permission to send the selected analytics fields to the configured AI provider [required] | - | No |
|
|
1382
|
+
| `--no-share-activity-with-ai` | Set share_activity_with_ai to false | - | No |
|
|
1383
|
+
| `--source-domain <value>` | Body field source_domain | - | No |
|
|
1384
|
+
| `--source-url <value>` | Body field source_url | - | No |
|
|
1385
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1386
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1387
|
+
| `--json` | Output in JSON format | - | No |
|
|
1388
|
+
|
|
1389
|
+
#### `analytics visitors suggest-activity-goals`
|
|
1390
|
+
|
|
1391
|
+
Suggest activity goals
|
|
1392
|
+
|
|
1393
|
+
**Options:**
|
|
1394
|
+
|
|
1395
|
+
| Flag | Description | Default | Required |
|
|
1396
|
+
|------|-------------|---------|----------|
|
|
1397
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1398
|
+
| `--environment-id <n>` | Body field environment_id | - | No |
|
|
1399
|
+
| `--share-with-ai` | Body field share_with_ai [required] | - | No |
|
|
1400
|
+
| `--no-share-with-ai` | Set share_with_ai to false | - | No |
|
|
1401
|
+
| `--url <value>` | Body field url [required] | - | No |
|
|
1402
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1403
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1404
|
+
| `--json` | Output in JSON format | - | No |
|
|
1405
|
+
|
|
1406
|
+
#### `analytics visitors preview-activity-report`
|
|
1407
|
+
|
|
1408
|
+
Preview activity report
|
|
1409
|
+
|
|
1410
|
+
**Options:**
|
|
1411
|
+
|
|
1412
|
+
| Flag | Description | Default | Required |
|
|
1413
|
+
|------|-------------|---------|----------|
|
|
1414
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1415
|
+
| `--environment-id <n>` | Body field environment_id | - | No |
|
|
1416
|
+
| `--goal <value>` | Body field goal [required] | - | No |
|
|
1417
|
+
| `--min-page-paths <n>` | Body field min_page_paths | - | No |
|
|
1418
|
+
| `--min-sessions <n>` | Body field min_sessions | - | No |
|
|
1419
|
+
| `--property-keys <value>` | Body field property_keys (repeatable) | - | No |
|
|
1420
|
+
| `--share-activity-with-ai` | Body field share_activity_with_ai [required] | - | No |
|
|
1421
|
+
| `--no-share-activity-with-ai` | Set share_activity_with_ai to false | - | No |
|
|
1422
|
+
| `--source-domain <value>` | Body field source_domain | - | No |
|
|
1423
|
+
| `--source-url <value>` | Body field source_url | - | No |
|
|
1424
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1425
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1426
|
+
| `--json` | Output in JSON format | - | No |
|
|
1427
|
+
|
|
1428
|
+
#### `analytics visitors run-activity-report`
|
|
1429
|
+
|
|
1430
|
+
Run activity report
|
|
1431
|
+
|
|
1432
|
+
**Options:**
|
|
1433
|
+
|
|
1434
|
+
| Flag | Description | Default | Required |
|
|
1435
|
+
|------|-------------|---------|----------|
|
|
1436
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1437
|
+
| `--json` | Output in JSON format | - | No |
|
|
1438
|
+
|
|
1439
|
+
### `analytics settings`
|
|
1440
|
+
|
|
1441
|
+
Settings commands
|
|
1442
|
+
|
|
1443
|
+
**Subcommands:**
|
|
1444
|
+
|
|
1445
|
+
- `get-filtered-traffic` - How many events were counted and how many were kept out of the project's analytics, by reason, over the..
|
|
1446
|
+
- `get` - Get a project's analytics traffic settings and whether datacenter detection is available on this instance
|
|
1447
|
+
- `update` - Change a project's analytics traffic settings
|
|
1448
|
+
- `list-traffic-filters` - List a project's traffic filters, newest first
|
|
1449
|
+
- `create-traffic-filter` - Add a traffic filter
|
|
1450
|
+
- `delete-traffic-filter` - Remove a traffic filter
|
|
1451
|
+
|
|
1452
|
+
#### `analytics settings get-filtered-traffic`
|
|
1453
|
+
|
|
1454
|
+
How many events were counted and how many were kept out of the project's analytics, by reason, over the..
|
|
1455
|
+
|
|
1456
|
+
**Options:**
|
|
1457
|
+
|
|
1458
|
+
| Flag | Description | Default | Required |
|
|
1459
|
+
|------|-------------|---------|----------|
|
|
1460
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1461
|
+
| `--days <n>` | Window in days, ending now (default 7, max 30) | - | No |
|
|
1462
|
+
| `--json` | Output in JSON format | - | No |
|
|
1463
|
+
|
|
1464
|
+
#### `analytics settings get`
|
|
1465
|
+
|
|
1466
|
+
Get a project's analytics traffic settings and whether datacenter detection is available on this instance
|
|
1467
|
+
|
|
1468
|
+
**Options:**
|
|
1469
|
+
|
|
1470
|
+
| Flag | Description | Default | Required |
|
|
1471
|
+
|------|-------------|---------|----------|
|
|
1472
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1473
|
+
| `--json` | Output in JSON format | - | No |
|
|
1474
|
+
|
|
1475
|
+
#### `analytics settings update`
|
|
1476
|
+
|
|
1477
|
+
Change a project's analytics traffic settings
|
|
1478
|
+
|
|
1479
|
+
**Options:**
|
|
1480
|
+
|
|
1481
|
+
| Flag | Description | Default | Required |
|
|
1482
|
+
|------|-------------|---------|----------|
|
|
1483
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1484
|
+
| `--exclude-datacenter-traffic` | Body field exclude_datacenter_traffic | - | No |
|
|
1485
|
+
| `--no-exclude-datacenter-traffic` | Set exclude_datacenter_traffic to false | - | No |
|
|
1486
|
+
| `--exclude-spam-referrers` | Body field exclude_spam_referrers | - | No |
|
|
1487
|
+
| `--no-exclude-spam-referrers` | Set exclude_spam_referrers to false | - | No |
|
|
1488
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1489
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1490
|
+
| `--json` | Output in JSON format | - | No |
|
|
1491
|
+
|
|
1492
|
+
#### `analytics settings list-traffic-filters`
|
|
1493
|
+
|
|
1494
|
+
List a project's traffic filters, newest first
|
|
1495
|
+
|
|
1496
|
+
**Options:**
|
|
1497
|
+
|
|
1498
|
+
| Flag | Description | Default | Required |
|
|
1499
|
+
|------|-------------|---------|----------|
|
|
1500
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1501
|
+
| `--kind <value>` | Only filters of this kind (one of: referrer, ip, asn, country) | - | No |
|
|
1502
|
+
| `--page <n>` | Page number, starting at 1 (default 1) | - | No |
|
|
1503
|
+
| `--page-size <n>` | Page size (default 20, max 100) | - | No |
|
|
1504
|
+
| `--json` | Output in JSON format | - | No |
|
|
1505
|
+
|
|
1506
|
+
#### `analytics settings create-traffic-filter`
|
|
1507
|
+
|
|
1508
|
+
Add a traffic filter
|
|
1509
|
+
|
|
1510
|
+
**Options:**
|
|
1511
|
+
|
|
1512
|
+
| Flag | Description | Default | Required |
|
|
1513
|
+
|------|-------------|---------|----------|
|
|
1514
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1515
|
+
| `--kind <value>` | What a traffic filter matches on (one of: referrer, ip, asn, country) [required] | - | No |
|
|
1516
|
+
| `--note <value>` | Why the filter exists, for whoever reviews it later | - | No |
|
|
1517
|
+
| `--value <value>` | A domain or URL ('referrer'), an IP address or CIDR range ('ip'), a network number with or without the... [required] | - | No |
|
|
1518
|
+
| `--from-file <path>` | Start the request body from a JSON file (- for stdin); flags override it | - | No |
|
|
1519
|
+
| `--set <field=value>` | Set a body field by path, e.g. limits.memory=512 (repeatable) | - | No |
|
|
1520
|
+
| `--json` | Output in JSON format | - | No |
|
|
1521
|
+
|
|
1522
|
+
#### `analytics settings delete-traffic-filter`
|
|
1523
|
+
|
|
1524
|
+
Remove a traffic filter
|
|
1525
|
+
|
|
1526
|
+
**Usage:** `analytics settings delete-traffic-filter <filter-id> [options]`
|
|
1527
|
+
|
|
1528
|
+
**Options:**
|
|
1529
|
+
|
|
1530
|
+
| Flag | Description | Default | Required |
|
|
1531
|
+
|------|-------------|---------|----------|
|
|
1532
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1533
|
+
| `-y, --yes` | Do not ask for confirmation | - | No |
|
|
1534
|
+
| `--json` | Output in JSON format | - | No |
|
|
1535
|
+
|
|
1536
|
+
### `analytics get-api-callers`
|
|
1537
|
+
|
|
1538
|
+
Return the top callers (by client IP, ranked by request count) in a project's API traffic window
|
|
1539
|
+
|
|
1540
|
+
**Options:**
|
|
1541
|
+
|
|
1542
|
+
| Flag | Description | Default | Required |
|
|
1543
|
+
|------|-------------|---------|----------|
|
|
1544
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1545
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
1546
|
+
| `--start-date <value>` | Window start (ISO 8601) [required] | - | No |
|
|
1547
|
+
| `--end-date <value>` | Window end (ISO 8601) [required] | - | No |
|
|
1548
|
+
| `--limit <n>` | Max callers to return (default: 20, max: 100) | - | No |
|
|
1549
|
+
| `--offset <n>` | Ranked callers to skip (default: 0) | - | No |
|
|
1550
|
+
| `--json` | Output in JSON format | - | No |
|
|
1551
|
+
|
|
1552
|
+
### `analytics get-api-routes`
|
|
1553
|
+
|
|
1554
|
+
Return the top routes (by request count) in a project's API traffic, grouped by raw '(method, path)'
|
|
1555
|
+
|
|
1556
|
+
**Options:**
|
|
1557
|
+
|
|
1558
|
+
| Flag | Description | Default | Required |
|
|
1559
|
+
|------|-------------|---------|----------|
|
|
1560
|
+
| `-p, --project <slug-or-id>` | Project slug or ID (default: the linked project) | - | No |
|
|
1561
|
+
| `--environment-id <n>` | Environment ID (optional) | - | No |
|
|
1562
|
+
| `--start-date <value>` | Window start (ISO 8601) [required] | - | No |
|
|
1563
|
+
| `--end-date <value>` | Window end (ISO 8601) [required] | - | No |
|
|
1564
|
+
| `--limit <n>` | Max routes to return (default: 20, max: 100) | - | No |
|
|
1565
|
+
| `--offset <n>` | Ranked routes to skip (default: 0) | - | No |
|
|
1566
|
+
| `--json` | Output in JSON format | - | No |
|