@temps-sdk/cli 0.1.38 → 0.2.0-beta.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -0
- package/dist/index.js +63877 -40097
- package/dist/skills/temps/SKILL.md +18 -9
- package/dist/skills/temps/evals/evals.json +23 -6
- package/dist/skills/temps/howtos/agent-handoff.md +106 -0
- package/dist/skills/temps/howtos/ci-automation.md +2 -3
- package/dist/skills/temps/howtos/curated-services.md +69 -0
- package/dist/skills/temps/howtos/deploy-application.md +8 -1
- package/dist/skills/temps/howtos/edge-rules.md +135 -0
- package/dist/skills/temps/howtos/managed-services.md +4 -4
- package/dist/skills/temps/howtos/projects-and-monorepos.md +2 -1
- package/dist/skills/temps/references/cli-runtime.md +10 -18
- package/dist/skills/temps/references/commands/INDEX.md +11 -0
- package/dist/skills/temps/references/commands/access.md +4 -0
- package/dist/skills/temps/references/commands/agents.md +731 -0
- package/dist/skills/temps/references/commands/ai.md +2638 -9
- package/dist/skills/temps/references/commands/alarms.md +129 -0
- package/dist/skills/temps/references/commands/analytics.md +1199 -2
- package/dist/skills/temps/references/commands/apikeys.md +50 -1
- package/dist/skills/temps/references/commands/audit.md +1 -0
- package/dist/skills/temps/references/commands/backups.md +312 -0
- package/dist/skills/temps/references/commands/blob.md +169 -0
- package/dist/skills/temps/references/commands/cloud.md +73 -0
- package/dist/skills/temps/references/commands/cluster.md +223 -0
- package/dist/skills/temps/references/commands/configure.md +7 -0
- package/dist/skills/temps/references/commands/containers.md +45 -0
- package/dist/skills/temps/references/commands/context.md +6 -0
- package/dist/skills/temps/references/commands/custom-domains.md +32 -0
- package/dist/skills/temps/references/commands/data.md +11 -13
- 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/deploy.md +2 -0
- package/dist/skills/temps/references/commands/deployments.md +560 -0
- package/dist/skills/temps/references/commands/dns-provider.md +63 -0
- package/dist/skills/temps/references/commands/domains.md +105 -0
- package/dist/skills/temps/references/commands/drop.md +2 -0
- package/dist/skills/temps/references/commands/edge-rules.md +218 -0
- package/dist/skills/temps/references/commands/email-domains.md +1 -0
- package/dist/skills/temps/references/commands/email-providers.md +64 -1
- package/dist/skills/temps/references/commands/emails.md +91 -0
- package/dist/skills/temps/references/commands/env-pull.md +2 -0
- package/dist/skills/temps/references/commands/env-push.md +2 -0
- package/dist/skills/temps/references/commands/environments.md +695 -2
- package/dist/skills/temps/references/commands/errors.md +1134 -61
- package/dist/skills/temps/references/commands/facets.md +6 -0
- package/dist/skills/temps/references/commands/flags.md +179 -0
- package/dist/skills/temps/references/commands/funnels.md +22 -2
- package/dist/skills/temps/references/commands/incidents.md +22 -0
- package/dist/skills/temps/references/commands/init.md +2 -0
- package/dist/skills/temps/references/commands/instances.md +6 -0
- package/dist/skills/temps/references/commands/instantiations.md +4 -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/link.md +2 -0
- package/dist/skills/temps/references/commands/load-balancer.md +2 -0
- package/dist/skills/temps/references/commands/login.md +9 -1
- package/dist/skills/temps/references/commands/logs.md +405 -10
- package/dist/skills/temps/references/commands/mcp-servers.md +4 -0
- package/dist/skills/temps/references/commands/mcp.md +8 -1
- package/dist/skills/temps/references/commands/migrate.md +26 -0
- package/dist/skills/temps/references/commands/monitors.md +456 -0
- package/dist/skills/temps/references/commands/network-policy.md +147 -0
- package/dist/skills/temps/references/commands/nodes.md +209 -2
- package/dist/skills/temps/references/commands/notifications.md +173 -2
- package/dist/skills/temps/references/commands/open.md +2 -0
- package/dist/skills/temps/references/commands/otel-forward.md +16 -0
- package/dist/skills/temps/references/commands/otel.md +436 -0
- package/dist/skills/temps/references/commands/platform.md +57 -0
- package/dist/skills/temps/references/commands/plugin.md +106 -1
- package/dist/skills/temps/references/commands/presets.md +2 -0
- package/dist/skills/temps/references/commands/preview-gateway.md +91 -0
- package/dist/skills/temps/references/commands/project-groups.md +72 -4
- package/dist/skills/temps/references/commands/projects.md +509 -4
- package/dist/skills/temps/references/commands/providers.md +533 -1
- package/dist/skills/temps/references/commands/proxy-logs.md +111 -0
- package/dist/skills/temps/references/commands/revenue.md +223 -0
- package/dist/skills/temps/references/commands/rollback.md +2 -0
- package/dist/skills/temps/references/commands/sandbox.md +790 -10
- package/dist/skills/temps/references/commands/secrets.md +19 -6
- package/dist/skills/temps/references/commands/server.md +107 -0
- package/dist/skills/temps/references/commands/services.md +836 -5
- package/dist/skills/temps/references/commands/session-replay.md +8 -0
- package/dist/skills/temps/references/commands/settings.md +346 -0
- package/dist/skills/temps/references/commands/shield.md +354 -0
- package/dist/skills/temps/references/commands/skills.md +6 -0
- package/dist/skills/temps/references/commands/start.md +1 -0
- package/dist/skills/temps/references/commands/status-pages.md +376 -9
- package/dist/skills/temps/references/commands/status.md +2 -0
- package/dist/skills/temps/references/commands/surveys.md +165 -0
- package/dist/skills/temps/references/commands/teams.md +28 -0
- package/dist/skills/temps/references/commands/templates.md +22 -2
- package/dist/skills/temps/references/commands/tokens.md +106 -0
- package/dist/skills/temps/references/commands/traces.md +207 -0
- package/dist/skills/temps/references/commands/traefik-discovery.md +10 -0
- package/dist/skills/temps/references/commands/tunnels.md +141 -0
- package/dist/skills/temps/references/commands/up.md +2 -0
- package/dist/skills/temps/references/commands/users.md +127 -0
- package/dist/skills/temps/references/commands/vault.md +662 -0
- package/dist/skills/temps/references/commands/webhooks.md +10 -0
- package/dist/skills/temps/references/commands/workflow.md +2 -0
- package/dist/skills/temps/references/commands/workflows.md +563 -0
- package/dist/skills/temps/references/observability/analytics.md +2 -2
- package/dist/skills/temps/references/workflows/platform-operations.md +46 -36
- package/dist/skills/temps/scripts/generate_command_references.py +5 -3
- package/dist/skills/temps/scripts/test_generate_command_references.py +3 -1
- package/dist/skills/temps/scripts/test_validate_skill.py +25 -66
- package/dist/skills/temps/scripts/validate_skill.py +29 -43
- package/package.json +9 -3
- package/dist/skills/temps/scripts/__pycache__/generate_command_references.cpython-314.pyc +0 -0
- package/dist/skills/temps/scripts/__pycache__/test_generate_command_references.cpython-314.pyc +0 -0
- package/dist/skills/temps/scripts/__pycache__/test_validate_skill.cpython-314.pyc +0 -0
- package/dist/skills/temps/scripts/__pycache__/validate_skill.cpython-314.pyc +0 -0
|
@@ -7,10 +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
|
|
10
|
+
- [`analytics conversions`](#analytics-conversions-alias-goals)
|
|
11
|
+
- [`analytics identity`](#analytics-identity)
|
|
12
|
+
- [`analytics overview`](#analytics-overview-alias-o)
|
|
11
13
|
- [`analytics top`](#analytics-top)
|
|
14
|
+
- [`analytics outbound`](#analytics-outbound)
|
|
15
|
+
- [`analytics downloads`](#analytics-downloads)
|
|
16
|
+
- [`analytics not-found`](#analytics-not-found)
|
|
12
17
|
- [`analytics funnels`](#analytics-funnels)
|
|
13
|
-
- [`analytics performance`](#analytics-performance)
|
|
18
|
+
- [`analytics performance`](#analytics-performance-alias-speed)
|
|
14
19
|
- [`analytics ai-agents`](#analytics-ai-agents)
|
|
15
20
|
- [`analytics ai-pages`](#analytics-ai-pages)
|
|
16
21
|
- [`analytics ai-page`](#analytics-ai-page)
|
|
@@ -22,6 +27,41 @@ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing
|
|
|
22
27
|
- [`analytics api-query`](#analytics-api-query)
|
|
23
28
|
- [`analytics api-summary`](#analytics-api-summary)
|
|
24
29
|
- [`analytics enrich`](#analytics-enrich)
|
|
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)
|
|
25
65
|
|
|
26
66
|
## `analytics` (alias: `stats`)
|
|
27
67
|
|
|
@@ -30,8 +70,13 @@ View project analytics
|
|
|
30
70
|
**Subcommands:**
|
|
31
71
|
|
|
32
72
|
- `keys` - Manage analytics ingest keys (pa_...) for apps Temps does not deploy
|
|
73
|
+
- `conversions` (`goals`) - Conversion goals: events or pages that count as success
|
|
74
|
+
- `identity` - Whether visitors are recognised by a stored id or tracked cookieless, and who may identify them
|
|
33
75
|
- `overview` (`o`) - Show analytics dashboard overview
|
|
34
76
|
- `top` - Show breakdown by dimension: pages, referrers, browsers, os, devices, countries, regions, cities, channels, events, languages, utm_source, utm_medium, utm_campaign
|
|
77
|
+
- `outbound` - Show the outbound links visitors clicked (outbound_click events)
|
|
78
|
+
- `downloads` - Show the files visitors downloaded (file_download events)
|
|
79
|
+
- `not-found` - Show pages visitors could not find: 404s Temps answered and not_found events
|
|
35
80
|
- `funnels` - Show funnel conversion metrics for all funnels
|
|
36
81
|
- `performance` (`speed`) - Show real-user Web Vitals and optional dimension breakdowns
|
|
37
82
|
- `ai-agents` - Show AI crawler / provider breakdown (web /analytics/ai-agents)
|
|
@@ -45,6 +90,41 @@ View project analytics
|
|
|
45
90
|
- `api-query` - Run a typed multi-dimensional API traffic aggregation
|
|
46
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)
|
|
47
92
|
- `enrich` - Attach identity or attributes to a visitor (merges into custom_data; a null value removes a key)
|
|
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)'
|
|
48
128
|
|
|
49
129
|
### `analytics keys`
|
|
50
130
|
|
|
@@ -52,11 +132,26 @@ Manage analytics ingest keys (pa_...) for apps Temps does not deploy
|
|
|
52
132
|
|
|
53
133
|
**Subcommands:**
|
|
54
134
|
|
|
135
|
+
- `get` - Show one analytics ingest key
|
|
55
136
|
- `list` (`ls`) - List analytics ingest keys for a project
|
|
56
137
|
- `create` (`add`) - Mint a new analytics ingest key
|
|
57
138
|
- `update` - Update an ingest key's label, origin allowlist, or rate limit
|
|
58
139
|
- `rotate` - Replace an ingest key value, keeping the same row and scope
|
|
59
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 |
|
|
60
155
|
|
|
61
156
|
#### `analytics keys list` (alias: `ls`)
|
|
62
157
|
|
|
@@ -67,6 +162,8 @@ List analytics ingest keys for a project
|
|
|
67
162
|
| Flag | Description | Default | Required |
|
|
68
163
|
|------|-------------|---------|----------|
|
|
69
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 |
|
|
70
167
|
| `--json` | Output in JSON format | - | No |
|
|
71
168
|
|
|
72
169
|
#### `analytics keys create` (alias: `add`)
|
|
@@ -129,6 +226,154 @@ Revoke (deactivate) an analytics ingest key
|
|
|
129
226
|
| `-f, --force` | Skip confirmation | - | No |
|
|
130
227
|
| `-y, --yes` | Skip confirmation (alias for --force) | - | No |
|
|
131
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
|
+
|
|
240
|
+
### `analytics conversions` (alias: `goals`)
|
|
241
|
+
|
|
242
|
+
Conversion goals: events or pages that count as success
|
|
243
|
+
|
|
244
|
+
**Subcommands:**
|
|
245
|
+
|
|
246
|
+
- `list` - List conversions with visitors, rate and revenue in a period
|
|
247
|
+
- `create` - Define a conversion
|
|
248
|
+
- `update` - Replace a conversion's definition
|
|
249
|
+
- `delete` - Delete a conversion (recorded events are kept)
|
|
250
|
+
- `breakdown` - Where the visitors who converted came from
|
|
251
|
+
- `get-goal` - Get one conversion goal
|
|
252
|
+
|
|
253
|
+
#### `analytics conversions list`
|
|
254
|
+
|
|
255
|
+
List conversions with visitors, rate and revenue in a period
|
|
256
|
+
|
|
257
|
+
**Options:**
|
|
258
|
+
|
|
259
|
+
| Flag | Description | Default | Required |
|
|
260
|
+
|------|-------------|---------|----------|
|
|
261
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
262
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 7d, 30d, 3m) | `30d` | No |
|
|
263
|
+
| `--json` | Output in JSON format | - | No |
|
|
264
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
265
|
+
|
|
266
|
+
#### `analytics conversions create`
|
|
267
|
+
|
|
268
|
+
Define a conversion
|
|
269
|
+
|
|
270
|
+
**Options:**
|
|
271
|
+
|
|
272
|
+
| Flag | Description | Default | Required |
|
|
273
|
+
|------|-------------|---------|----------|
|
|
274
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
275
|
+
| `-n, --name <name>` | Name shown in reports, e.g. Signup | - | No |
|
|
276
|
+
| `--event <name>` | Count this event, e.g. signup | - | No |
|
|
277
|
+
| `--page <path>` | Count visits to this path; * matches anything, e.g. /docs/* | - | No |
|
|
278
|
+
| `--property <key=value>` | Only events whose property has this value, e.g. plan=pro | - | No |
|
|
279
|
+
| `--revenue-property <key>` | Event property holding the amount, e.g. amount | - | No |
|
|
280
|
+
| `--currency <code>` | ISO 4217 currency of the amount, e.g. EUR | - | No |
|
|
281
|
+
| `--json` | Output in JSON format | - | No |
|
|
282
|
+
|
|
283
|
+
#### `analytics conversions update`
|
|
284
|
+
|
|
285
|
+
Replace a conversion's definition
|
|
286
|
+
|
|
287
|
+
**Options:**
|
|
288
|
+
|
|
289
|
+
| Flag | Description | Default | Required |
|
|
290
|
+
|------|-------------|---------|----------|
|
|
291
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
292
|
+
| `--goal-id <id>` | Conversion ID (see list) | - | Yes |
|
|
293
|
+
| `-n, --name <name>` | Name shown in reports, e.g. Signup | - | No |
|
|
294
|
+
| `--event <name>` | Count this event, e.g. signup | - | No |
|
|
295
|
+
| `--page <path>` | Count visits to this path; * matches anything, e.g. /docs/* | - | No |
|
|
296
|
+
| `--property <key=value>` | Only events whose property has this value, e.g. plan=pro | - | No |
|
|
297
|
+
| `--revenue-property <key>` | Event property holding the amount, e.g. amount | - | No |
|
|
298
|
+
| `--currency <code>` | ISO 4217 currency of the amount, e.g. EUR | - | No |
|
|
299
|
+
| `--json` | Output in JSON format | - | No |
|
|
300
|
+
|
|
301
|
+
#### `analytics conversions delete`
|
|
302
|
+
|
|
303
|
+
Delete a conversion (recorded events are kept)
|
|
304
|
+
|
|
305
|
+
**Options:**
|
|
306
|
+
|
|
307
|
+
| Flag | Description | Default | Required |
|
|
308
|
+
|------|-------------|---------|----------|
|
|
309
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
310
|
+
| `--goal-id <id>` | Conversion ID (see list) | - | Yes |
|
|
311
|
+
| `-f, --force` | Skip confirmation | - | No |
|
|
312
|
+
| `-y, --yes` | Skip confirmation (alias for --force) | - | No |
|
|
313
|
+
|
|
314
|
+
#### `analytics conversions breakdown`
|
|
315
|
+
|
|
316
|
+
Where the visitors who converted came from
|
|
317
|
+
|
|
318
|
+
**Options:**
|
|
319
|
+
|
|
320
|
+
| Flag | Description | Default | Required |
|
|
321
|
+
|------|-------------|---------|----------|
|
|
322
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
323
|
+
| `--goal-id <id>` | Conversion ID (see list) | - | Yes |
|
|
324
|
+
| `--by <dimension>` | One of channel, referrer, utm_source, utm_medium, utm_campaign, page, country, device_type, browser, operating_system | `channel` | No |
|
|
325
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 7d, 30d, 3m) | `30d` | No |
|
|
326
|
+
| `--limit <n>` | Rows (default: 10, max: 100) | - | No |
|
|
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 |
|
|
342
|
+
|
|
343
|
+
### `analytics identity`
|
|
344
|
+
|
|
345
|
+
Whether visitors are recognised by a stored id or tracked cookieless, and who may identify them
|
|
346
|
+
|
|
347
|
+
**Subcommands:**
|
|
348
|
+
|
|
349
|
+
- `show` - Show the identity mode, whether browser identify is accepted, and what they change
|
|
350
|
+
- `set` - Switch between persistent and cookieless tracking, or accept/refuse browser identify
|
|
351
|
+
|
|
352
|
+
#### `analytics identity show`
|
|
353
|
+
|
|
354
|
+
Show the identity mode, whether browser identify is accepted, and what they change
|
|
355
|
+
|
|
356
|
+
**Options:**
|
|
357
|
+
|
|
358
|
+
| Flag | Description | Default | Required |
|
|
359
|
+
|------|-------------|---------|----------|
|
|
360
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
361
|
+
| `--json` | Output in JSON format | - | No |
|
|
362
|
+
|
|
363
|
+
#### `analytics identity set`
|
|
364
|
+
|
|
365
|
+
Switch between persistent and cookieless tracking, or accept/refuse browser identify
|
|
366
|
+
|
|
367
|
+
**Options:**
|
|
368
|
+
|
|
369
|
+
| Flag | Description | Default | Required |
|
|
370
|
+
|------|-------------|---------|----------|
|
|
371
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
372
|
+
| `--mode <mode>` | One of persistent, cookieless | - | No |
|
|
373
|
+
| `--browser-identify <accept\|refuse>` | Whether identify() from the browser is applied; refuse leaves identify to the app's backend | - | No |
|
|
374
|
+
| `-y, --yes` | Skip confirmation | - | No |
|
|
375
|
+
| `--json` | Output in JSON format | - | No |
|
|
376
|
+
|
|
132
377
|
### `analytics overview` (alias: `o`)
|
|
133
378
|
|
|
134
379
|
Show analytics dashboard overview
|
|
@@ -140,11 +385,15 @@ Show analytics dashboard overview
|
|
|
140
385
|
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
141
386
|
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
|
|
142
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 |
|
|
143
390
|
|
|
144
391
|
### `analytics top`
|
|
145
392
|
|
|
146
393
|
Show breakdown by dimension: pages, referrers, browsers, os, devices, countries, regions, cities, channels, events, languages, utm_source, utm_medium, utm_campaign
|
|
147
394
|
|
|
395
|
+
**Usage:** `analytics top <dimension> [options]`
|
|
396
|
+
|
|
148
397
|
**Options:**
|
|
149
398
|
|
|
150
399
|
| Flag | Description | Default | Required |
|
|
@@ -153,6 +402,58 @@ Show breakdown by dimension: pages, referrers, browsers, os, devices, countries,
|
|
|
153
402
|
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `24h` | No |
|
|
154
403
|
| `--limit <n>` | Number of results (default: 20, max: 100) | - | No |
|
|
155
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 |
|
|
415
|
+
|
|
416
|
+
### `analytics outbound`
|
|
417
|
+
|
|
418
|
+
Show the outbound links visitors clicked (outbound_click events)
|
|
419
|
+
|
|
420
|
+
**Options:**
|
|
421
|
+
|
|
422
|
+
| Flag | Description | Default | Required |
|
|
423
|
+
|------|-------------|---------|----------|
|
|
424
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
425
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `7d` | No |
|
|
426
|
+
| `--limit <n>` | Number of results (default: 20, max: 100) | - | No |
|
|
427
|
+
| `--json` | Output in JSON format | - | No |
|
|
428
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
429
|
+
|
|
430
|
+
### `analytics downloads`
|
|
431
|
+
|
|
432
|
+
Show the files visitors downloaded (file_download events)
|
|
433
|
+
|
|
434
|
+
**Options:**
|
|
435
|
+
|
|
436
|
+
| Flag | Description | Default | Required |
|
|
437
|
+
|------|-------------|---------|----------|
|
|
438
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
439
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `7d` | No |
|
|
440
|
+
| `--limit <n>` | Number of results (default: 20, max: 100) | - | No |
|
|
441
|
+
| `--json` | Output in JSON format | - | No |
|
|
442
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
443
|
+
|
|
444
|
+
### `analytics not-found`
|
|
445
|
+
|
|
446
|
+
Show pages visitors could not find: 404s Temps answered and not_found events
|
|
447
|
+
|
|
448
|
+
**Options:**
|
|
449
|
+
|
|
450
|
+
| Flag | Description | Default | Required |
|
|
451
|
+
|------|-------------|---------|----------|
|
|
452
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
453
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `7d` | No |
|
|
454
|
+
| `--limit <n>` | Number of results (default: 20, max: 100) | - | No |
|
|
455
|
+
| `--json` | Output in JSON format | - | No |
|
|
456
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
156
457
|
|
|
157
458
|
### `analytics funnels`
|
|
158
459
|
|
|
@@ -165,6 +466,8 @@ Show funnel conversion metrics for all funnels
|
|
|
165
466
|
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
166
467
|
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 6h, 48h, 7d, 30d, 3m) | `7d` | No |
|
|
167
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 |
|
|
168
471
|
|
|
169
472
|
### `analytics performance` (alias: `speed`)
|
|
170
473
|
|
|
@@ -191,6 +494,21 @@ Show real-user Web Vitals and optional dimension breakdowns
|
|
|
191
494
|
| `--os <operating-system>` | Restrict samples to one operating system | - | No |
|
|
192
495
|
| `--json` | Output in JSON format | - | No |
|
|
193
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
|
+
|
|
194
512
|
### `analytics ai-agents`
|
|
195
513
|
|
|
196
514
|
Show AI crawler / provider breakdown (web /analytics/ai-agents)
|
|
@@ -205,6 +523,7 @@ Show AI crawler / provider breakdown (web /analytics/ai-agents)
|
|
|
205
523
|
| `--group-by <mode>` | Group rows by "agent" (default) or "provider" | `agent` | No |
|
|
206
524
|
| `--path <path>` | Restrict to one URL path (e.g. /docs) | - | No |
|
|
207
525
|
| `--json` | Output in JSON format | - | No |
|
|
526
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
208
527
|
|
|
209
528
|
### `analytics ai-pages`
|
|
210
529
|
|
|
@@ -220,11 +539,14 @@ Show pages crawled by AI agents, with distinct-agent counts
|
|
|
220
539
|
| `--path <path>` | Restrict to one URL path (returns just that row) | - | No |
|
|
221
540
|
| `--with-agents` | Also fetch and render the per-agent split for each page (slower) | - | No |
|
|
222
541
|
| `--json` | Output in JSON format | - | No |
|
|
542
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
223
543
|
|
|
224
544
|
### `analytics ai-page`
|
|
225
545
|
|
|
226
546
|
Show which agents/providers crawled a single page (e.g. /docs)
|
|
227
547
|
|
|
548
|
+
**Usage:** `analytics ai-page <path> [options]`
|
|
549
|
+
|
|
228
550
|
**Options:**
|
|
229
551
|
|
|
230
552
|
| Flag | Description | Default | Required |
|
|
@@ -234,6 +556,7 @@ Show which agents/providers crawled a single page (e.g. /docs)
|
|
|
234
556
|
| `--limit <n>` | Number of rows to fetch (default: 50, max: 100) | - | No |
|
|
235
557
|
| `--group-by <mode>` | Group rows by "agent" (default) or "provider" | `agent` | No |
|
|
236
558
|
| `--json` | Output in JSON format | - | No |
|
|
559
|
+
| `--environment-id <n>` | Only this environment of the project (an ID) | - | No |
|
|
237
560
|
|
|
238
561
|
### `analytics api-overview`
|
|
239
562
|
|
|
@@ -288,6 +611,8 @@ Show top API callers by client IP from /api-analytics/callers
|
|
|
288
611
|
|
|
289
612
|
Show routes called by one client IP with latency and error analytics
|
|
290
613
|
|
|
614
|
+
**Usage:** `analytics api-ip <ip> [options]`
|
|
615
|
+
|
|
291
616
|
**Options:**
|
|
292
617
|
|
|
293
618
|
| Flag | Description | Default | Required |
|
|
@@ -306,6 +631,8 @@ Show routes called by one client IP with latency and error analytics
|
|
|
306
631
|
|
|
307
632
|
Show client IPs calling one path with latency and error analytics
|
|
308
633
|
|
|
634
|
+
**Usage:** `analytics api-path <path> [options]`
|
|
635
|
+
|
|
309
636
|
**Options:**
|
|
310
637
|
|
|
311
638
|
| Flag | Description | Default | Required |
|
|
@@ -352,12 +679,15 @@ Show an AI-generated summary of API traffic from /api-analytics/summary (require
|
|
|
352
679
|
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
353
680
|
| `--environment-id <id>` | Restrict traffic to one environment ID | - | No |
|
|
354
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 |
|
|
355
683
|
| `--json` | Output in JSON format | - | No |
|
|
356
684
|
|
|
357
685
|
### `analytics enrich`
|
|
358
686
|
|
|
359
687
|
Attach identity or attributes to a visitor (merges into custom_data; a null value removes a key)
|
|
360
688
|
|
|
689
|
+
**Usage:** `analytics enrich <visitor-id> [options]`
|
|
690
|
+
|
|
361
691
|
**Options:**
|
|
362
692
|
|
|
363
693
|
| Flag | Description | Default | Required |
|
|
@@ -367,3 +697,870 @@ Attach identity or attributes to a visitor (merges into custom_data; a null valu
|
|
|
367
697
|
| `--set <key=value>` | Set one key to a string value (repeatable; use --data for numbers, booleans, or nested values) | `` | No |
|
|
368
698
|
| `--unset <key>` | Remove one top-level key (repeatable; sends null) | `` | No |
|
|
369
699
|
| `--json` | Output in JSON format | - | No |
|
|
700
|
+
|
|
701
|
+
### `analytics identify`
|
|
702
|
+
|
|
703
|
+
Label a visitor with your app's user id, as your backend would (browser identify cannot replace it)
|
|
704
|
+
|
|
705
|
+
**Usage:** `analytics identify <visitor-id> [options]`
|
|
706
|
+
|
|
707
|
+
**Options:**
|
|
708
|
+
|
|
709
|
+
| Flag | Description | Default | Required |
|
|
710
|
+
|------|-------------|---------|----------|
|
|
711
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
712
|
+
| `--user-id <id>` | Your app's id for this person (at most 256 characters) | - | Yes |
|
|
713
|
+
| `-d, --data <json>` | Traits as a JSON object, e.g. '{"plan":"pro"}' | - | No |
|
|
714
|
+
| `--set <key=value>` | Set one trait to a string value (repeatable) | `` | No |
|
|
715
|
+
| `--unset <key>` | Remove one trait (repeatable; sends null) | `` | No |
|
|
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 |
|