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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (130) hide show
  1. package/README.md +14 -0
  2. package/dist/index.js +32148 -34152
  3. package/dist/skills/temps/SKILL.md +148 -0
  4. package/dist/skills/temps/agents/openai.yaml +7 -0
  5. package/dist/skills/temps/evals/evals.json +112 -0
  6. package/dist/skills/temps/howtos/backup-recovery.md +41 -0
  7. package/dist/skills/temps/howtos/ci-automation.md +17 -0
  8. package/dist/skills/temps/howtos/curated-services.md +69 -0
  9. package/dist/skills/temps/howtos/deploy-application.md +36 -0
  10. package/dist/skills/temps/howtos/diagnose-deployment.md +17 -0
  11. package/dist/skills/temps/howtos/edge-rules.md +135 -0
  12. package/dist/skills/temps/howtos/framework-routing.md +28 -0
  13. package/dist/skills/temps/howtos/javascript-typescript.md +57 -0
  14. package/dist/skills/temps/howtos/managed-services.md +83 -0
  15. package/dist/skills/temps/howtos/observability-onboarding.md +52 -0
  16. package/dist/skills/temps/howtos/projects-and-monorepos.md +50 -0
  17. package/dist/skills/temps/howtos/python.md +42 -0
  18. package/dist/skills/temps/howtos/rust.md +30 -0
  19. package/dist/skills/temps/references/cli-runtime.md +60 -0
  20. package/dist/skills/temps/references/commands/INDEX.md +102 -0
  21. package/dist/skills/temps/references/commands/access.md +53 -0
  22. package/dist/skills/temps/references/commands/ai.md +47 -0
  23. package/dist/skills/temps/references/commands/alarms.md +91 -0
  24. package/dist/skills/temps/references/commands/analytics.md +568 -0
  25. package/dist/skills/temps/references/commands/apikeys.md +98 -0
  26. package/dist/skills/temps/references/commands/audit.md +41 -0
  27. package/dist/skills/temps/references/commands/backups.md +269 -0
  28. package/dist/skills/temps/references/commands/cloud.md +385 -0
  29. package/dist/skills/temps/references/commands/cluster.md +31 -0
  30. package/dist/skills/temps/references/commands/configure.md +62 -0
  31. package/dist/skills/temps/references/commands/containers.md +110 -0
  32. package/dist/skills/temps/references/commands/context.md +55 -0
  33. package/dist/skills/temps/references/commands/custom-domains.md +98 -0
  34. package/dist/skills/temps/references/commands/data.md +87 -0
  35. package/dist/skills/temps/references/commands/delivery-profiles.md +69 -0
  36. package/dist/skills/temps/references/commands/delivery.md +116 -0
  37. package/dist/skills/temps/references/commands/deploy-image.md +23 -0
  38. package/dist/skills/temps/references/commands/deploy-local-image.md +28 -0
  39. package/dist/skills/temps/references/commands/deploy-static.md +23 -0
  40. package/dist/skills/temps/references/commands/deploy.md +23 -0
  41. package/dist/skills/temps/references/commands/deployments.md +173 -0
  42. package/dist/skills/temps/references/commands/dns-provider.md +196 -0
  43. package/dist/skills/temps/references/commands/dns.md +181 -0
  44. package/dist/skills/temps/references/commands/domains.md +188 -0
  45. package/dist/skills/temps/references/commands/drop.md +23 -0
  46. package/dist/skills/temps/references/commands/dsn.md +84 -0
  47. package/dist/skills/temps/references/commands/edge-rules.md +218 -0
  48. package/dist/skills/temps/references/commands/email-domains.md +160 -0
  49. package/dist/skills/temps/references/commands/email-providers.md +96 -0
  50. package/dist/skills/temps/references/commands/emails.md +79 -0
  51. package/dist/skills/temps/references/commands/env-pull.md +18 -0
  52. package/dist/skills/temps/references/commands/env-push.md +19 -0
  53. package/dist/skills/temps/references/commands/environments.md +500 -0
  54. package/dist/skills/temps/references/commands/errors.md +763 -0
  55. package/dist/skills/temps/references/commands/facets.md +63 -0
  56. package/dist/skills/temps/references/commands/flags.md +246 -0
  57. package/dist/skills/temps/references/commands/funnels.md +92 -0
  58. package/dist/skills/temps/references/commands/incidents.md +115 -0
  59. package/dist/skills/temps/references/commands/init.md +18 -0
  60. package/dist/skills/temps/references/commands/instances.md +62 -0
  61. package/dist/skills/temps/references/commands/instantiations.md +57 -0
  62. package/dist/skills/temps/references/commands/ip-access.md +153 -0
  63. package/dist/skills/temps/references/commands/link.md +17 -0
  64. package/dist/skills/temps/references/commands/load-balancer.md +73 -0
  65. package/dist/skills/temps/references/commands/login.md +22 -0
  66. package/dist/skills/temps/references/commands/logout.md +16 -0
  67. package/dist/skills/temps/references/commands/logs.md +290 -0
  68. package/dist/skills/temps/references/commands/mcp-servers.md +74 -0
  69. package/dist/skills/temps/references/commands/mcp.md +72 -0
  70. package/dist/skills/temps/references/commands/metrics.md +79 -0
  71. package/dist/skills/temps/references/commands/migrate.md +118 -0
  72. package/dist/skills/temps/references/commands/monitors.md +162 -0
  73. package/dist/skills/temps/references/commands/network-policy.md +120 -0
  74. package/dist/skills/temps/references/commands/nodes.md +254 -0
  75. package/dist/skills/temps/references/commands/notification-preferences.md +47 -0
  76. package/dist/skills/temps/references/commands/notifications.md +233 -0
  77. package/dist/skills/temps/references/commands/open.md +19 -0
  78. package/dist/skills/temps/references/commands/otel-forward.md +226 -0
  79. package/dist/skills/temps/references/commands/otel.md +38 -0
  80. package/dist/skills/temps/references/commands/platform.md +151 -0
  81. package/dist/skills/temps/references/commands/plugin.md +222 -0
  82. package/dist/skills/temps/references/commands/presets.md +37 -0
  83. package/dist/skills/temps/references/commands/project-groups.md +292 -0
  84. package/dist/skills/temps/references/commands/projects.md +329 -0
  85. package/dist/skills/temps/references/commands/providers.md +290 -0
  86. package/dist/skills/temps/references/commands/proxy-logs.md +85 -0
  87. package/dist/skills/temps/references/commands/revenue.md +52 -0
  88. package/dist/skills/temps/references/commands/rollback.md +20 -0
  89. package/dist/skills/temps/references/commands/runtime-logs.md +21 -0
  90. package/dist/skills/temps/references/commands/sandbox.md +518 -0
  91. package/dist/skills/temps/references/commands/scans.md +113 -0
  92. package/dist/skills/temps/references/commands/secrets.md +75 -0
  93. package/dist/skills/temps/references/commands/server.md +50 -0
  94. package/dist/skills/temps/references/commands/services.md +642 -0
  95. package/dist/skills/temps/references/commands/session-replay.md +84 -0
  96. package/dist/skills/temps/references/commands/settings.md +84 -0
  97. package/dist/skills/temps/references/commands/setup.md +25 -0
  98. package/dist/skills/temps/references/commands/skills.md +93 -0
  99. package/dist/skills/temps/references/commands/start.md +21 -0
  100. package/dist/skills/temps/references/commands/status-pages.md +455 -0
  101. package/dist/skills/temps/references/commands/status.md +19 -0
  102. package/dist/skills/temps/references/commands/stop.md +16 -0
  103. package/dist/skills/temps/references/commands/surveys.md +165 -0
  104. package/dist/skills/temps/references/commands/teams.md +143 -0
  105. package/dist/skills/temps/references/commands/templates.md +67 -0
  106. package/dist/skills/temps/references/commands/tokens.md +77 -0
  107. package/dist/skills/temps/references/commands/traces.md +100 -0
  108. package/dist/skills/temps/references/commands/traefik-discovery.md +123 -0
  109. package/dist/skills/temps/references/commands/tunnels.md +139 -0
  110. package/dist/skills/temps/references/commands/up.md +27 -0
  111. package/dist/skills/temps/references/commands/users.md +115 -0
  112. package/dist/skills/temps/references/commands/webhooks.md +171 -0
  113. package/dist/skills/temps/references/commands/whoami.md +15 -0
  114. package/dist/skills/temps/references/commands/workflow.md +44 -0
  115. package/dist/skills/temps/references/commands/workflows.md +216 -0
  116. package/dist/skills/temps/references/observability/analytics.md +146 -0
  117. package/dist/skills/temps/references/observability/error-tracking.md +73 -0
  118. package/dist/skills/temps/references/observability/hygiene.md +112 -0
  119. package/dist/skills/temps/references/observability/logs.md +43 -0
  120. package/dist/skills/temps/references/observability/metrics.md +41 -0
  121. package/dist/skills/temps/references/observability/tracing.md +392 -0
  122. package/dist/skills/temps/references/runtime-contract.md +115 -0
  123. package/dist/skills/temps/references/workflows/platform-operations.md +164 -0
  124. package/dist/skills/temps/scripts/detect_project_capabilities.py +239 -0
  125. package/dist/skills/temps/scripts/generate_command_references.py +144 -0
  126. package/dist/skills/temps/scripts/test_detect_project_capabilities.py +124 -0
  127. package/dist/skills/temps/scripts/test_generate_command_references.py +128 -0
  128. package/dist/skills/temps/scripts/test_validate_skill.py +43 -0
  129. package/dist/skills/temps/scripts/validate_skill.py +97 -0
  130. package/package.json +7 -2
@@ -0,0 +1,153 @@
1
+ <!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
2
+
3
+ # `ip-access` command reference
4
+
5
+ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
6
+
7
+ ## `ip-access` (alias: `ipa`)
8
+
9
+ Manage instance-wide IP access control rules, and per-project lists (ip-access project)
10
+
11
+ **Subcommands:**
12
+
13
+ - `list` (`ls`) - List all IP access control rules
14
+ - `create` (`add`) - Create a new IP access control rule
15
+ - `show` - Show IP access control rule details
16
+ - `update` - Update an IP access control rule
17
+ - `remove` (`rm`) - Delete an IP access control rule
18
+ - `check` - Check if an IP address is blocked
19
+ - `project` - Allow or deny IP ranges for one project or environment
20
+
21
+ ### `ip-access list` (alias: `ls`)
22
+
23
+ List all IP access control rules
24
+
25
+ **Options:**
26
+
27
+ | Flag | Description | Default | Required |
28
+ |------|-------------|---------|----------|
29
+ | `--json` | Output in JSON format | - | No |
30
+
31
+ ### `ip-access create` (alias: `add`)
32
+
33
+ Create a new IP access control rule
34
+
35
+ **Options:**
36
+
37
+ | Flag | Description | Default | Required |
38
+ |------|-------------|---------|----------|
39
+ | `--ip <ip_or_cidr>` | IPv4 or IPv6 address or CIDR range (e.g., "192.168.1.1", "10.0.0.0/24", or "2001:db8::/32") | - | No |
40
+ | `--action <action>` | Action to take: "allow" or "deny" | - | No |
41
+ | `--description <desc>` | Optional description/reason for the rule | - | No |
42
+ | `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
43
+
44
+ ### `ip-access show`
45
+
46
+ Show IP access control rule details
47
+
48
+ **Options:**
49
+
50
+ | Flag | Description | Default | Required |
51
+ |------|-------------|---------|----------|
52
+ | `--id <id>` | Rule ID | - | Yes |
53
+ | `--json` | Output in JSON format | - | No |
54
+
55
+ ### `ip-access update`
56
+
57
+ Update an IP access control rule
58
+
59
+ **Options:**
60
+
61
+ | Flag | Description | Default | Required |
62
+ |------|-------------|---------|----------|
63
+ | `--id <id>` | Rule ID | - | Yes |
64
+ | `--ip <ip>` | New IP address or CIDR range | - | No |
65
+ | `--action <action>` | New action: "allow" or "deny" | - | No |
66
+ | `--description <desc>` | New description/reason | - | No |
67
+
68
+ ### `ip-access remove` (alias: `rm`)
69
+
70
+ Delete an IP access control rule
71
+
72
+ **Options:**
73
+
74
+ | Flag | Description | Default | Required |
75
+ |------|-------------|---------|----------|
76
+ | `--id <id>` | Rule ID | - | Yes |
77
+ | `-f, --force` | Skip confirmation | - | No |
78
+ | `-y, --yes` | Skip confirmation prompts (alias for --force) | - | No |
79
+
80
+ ### `ip-access check`
81
+
82
+ Check if an IP address is blocked
83
+
84
+ **Options:**
85
+
86
+ | Flag | Description | Default | Required |
87
+ |------|-------------|---------|----------|
88
+ | `--ip <ip>` | IP address to check | - | No |
89
+ | `--json` | Output in JSON format | - | No |
90
+
91
+ ### `ip-access project`
92
+
93
+ Allow or deny IP ranges for one project or environment
94
+
95
+ **Subcommands:**
96
+
97
+ - `show` - Show the IP access list
98
+ - `set` - Replace the IP access list. A list that would lock out this machine needs --acknowledge-lockout
99
+ - `clear` - Remove the list (an environment then follows the project list)
100
+ - `test` - Check whether an address would be allowed
101
+
102
+ #### `ip-access project show`
103
+
104
+ Show the IP access list
105
+
106
+ **Options:**
107
+
108
+ | Flag | Description | Default | Required |
109
+ |------|-------------|---------|----------|
110
+ | `--project-id <id>` | Project ID | - | Yes |
111
+ | `--environment-id <id>` | Environment ID (omit for the project-wide list) | - | No |
112
+ | `--json` | Output in JSON format | - | No |
113
+
114
+ #### `ip-access project set`
115
+
116
+ Replace the IP access list. A list that would lock out this machine needs --acknowledge-lockout
117
+
118
+ **Options:**
119
+
120
+ | Flag | Description | Default | Required |
121
+ |------|-------------|---------|----------|
122
+ | `--project-id <id>` | Project ID | - | Yes |
123
+ | `--environment-id <id>` | Environment ID (omit for the project-wide list) | - | No |
124
+ | `--mode <mode>` | disabled, allow (only listed) or deny (block listed) | - | Yes |
125
+ | `--cidr <cidr>` | Address or CIDR range; repeat or comma-separate | `` | No |
126
+ | `--tailscale` | Include the Tailscale ranges (100.64.0.0/10 and fd7a:115c:a1e0::/48) | - | No |
127
+ | `--acknowledge-lockout` | Apply even if it would block the address you are calling from | - | No |
128
+ | `--json` | Output in JSON format | - | No |
129
+
130
+ #### `ip-access project clear`
131
+
132
+ Remove the list (an environment then follows the project list)
133
+
134
+ **Options:**
135
+
136
+ | Flag | Description | Default | Required |
137
+ |------|-------------|---------|----------|
138
+ | `--project-id <id>` | Project ID | - | Yes |
139
+ | `--environment-id <id>` | Environment ID (omit for the project-wide list) | - | No |
140
+ | `-y, --yes` | Skip confirmation | - | No |
141
+
142
+ #### `ip-access project test`
143
+
144
+ Check whether an address would be allowed
145
+
146
+ **Options:**
147
+
148
+ | Flag | Description | Default | Required |
149
+ |------|-------------|---------|----------|
150
+ | `--project-id <id>` | Project ID | - | Yes |
151
+ | `--environment-id <id>` | Environment ID (omit for the project-wide list) | - | No |
152
+ | `--ip <ip>` | Address to evaluate | - | Yes |
153
+ | `--json` | Output in JSON format | - | No |
@@ -0,0 +1,17 @@
1
+ <!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
2
+
3
+ # `link` command reference
4
+
5
+ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
6
+
7
+ ## `link`
8
+
9
+ Link current directory to a Temps project
10
+
11
+ **Usage:** `link [project-slug] [options]`
12
+
13
+ **Options:**
14
+
15
+ | Flag | Description | Default | Required |
16
+ |------|-------------|---------|----------|
17
+ | `-e, --environment <name>` | Set default environment | - | No |
@@ -0,0 +1,73 @@
1
+ <!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
2
+
3
+ # `load-balancer` command reference
4
+
5
+ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
6
+
7
+ ## `load-balancer` (alias: `lb`)
8
+
9
+ Manage load balancer routes
10
+
11
+ **Subcommands:**
12
+
13
+ - `list` (`ls`) - List load balancer routes
14
+ - `create` (`add`) - Create a load balancer route
15
+ - `show` - Show route details
16
+ - `update` - Update a load balancer route
17
+ - `remove` (`rm`) - Delete a load balancer route
18
+
19
+ ### `load-balancer list` (alias: `ls`)
20
+
21
+ List load balancer routes
22
+
23
+ **Options:**
24
+
25
+ | Flag | Description | Default | Required |
26
+ |------|-------------|---------|----------|
27
+ | `--json` | Output in JSON format | - | No |
28
+
29
+ ### `load-balancer create` (alias: `add`)
30
+
31
+ Create a load balancer route
32
+
33
+ **Options:**
34
+
35
+ | Flag | Description | Default | Required |
36
+ |------|-------------|---------|----------|
37
+ | `-d, --domain <domain>` | Domain for the route | - | No |
38
+ | `-t, --target <target>` | Target upstream URL | - | No |
39
+ | `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
40
+
41
+ ### `load-balancer show`
42
+
43
+ Show route details
44
+
45
+ **Options:**
46
+
47
+ | Flag | Description | Default | Required |
48
+ |------|-------------|---------|----------|
49
+ | `-d, --domain <domain>` | Domain of the route | - | Yes |
50
+ | `--json` | Output in JSON format | - | No |
51
+
52
+ ### `load-balancer update`
53
+
54
+ Update a load balancer route
55
+
56
+ **Options:**
57
+
58
+ | Flag | Description | Default | Required |
59
+ |------|-------------|---------|----------|
60
+ | `-d, --domain <domain>` | Domain of the route | - | Yes |
61
+ | `-t, --target <target>` | New target upstream URL | - | No |
62
+
63
+ ### `load-balancer remove` (alias: `rm`)
64
+
65
+ Delete a load balancer route
66
+
67
+ **Options:**
68
+
69
+ | Flag | Description | Default | Required |
70
+ |------|-------------|---------|----------|
71
+ | `-d, --domain <domain>` | Domain of the route | - | Yes |
72
+ | `-f, --force` | Skip confirmation | - | No |
73
+ | `-y, --yes` | Skip confirmation prompts (alias for --force) | - | No |
@@ -0,0 +1,22 @@
1
+ <!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
2
+
3
+ # `login` command reference
4
+
5
+ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
6
+
7
+ ## `login`
8
+
9
+ Authenticate with a Temps server. Opens the browser for interactive logins; use --api-key for headless / CI.
10
+
11
+ **Usage:** `login [url] [options]`
12
+
13
+ **Options:**
14
+
15
+ | Flag | Description | Default | Required |
16
+ |------|-------------|---------|----------|
17
+ | `-k, --api-key <key>` | Use a pre-minted API key (Settings → API Keys) instead of opening the browser. Required for headless / CI. | - | No |
18
+ | `--context <name>` | Save the credentials under this context name (defaults to URL host) | - | No |
19
+ | `--debug` | Print every request/response (URL, status, headers, raw body) to stderr. Also enabled via TEMPS_DEBUG=1. | - | No |
20
+ | `--api-key-file <path>` | Read the API key from a file (- reads stdin) instead of --api-key | - | No |
21
+ | `--api-key-stdin` | Read the API key from stdin instead of --api-key | - | No |
22
+ | `--trim-trailing-newline` | Drop exactly one trailing newline (\n or \r\n) from a value read from a file or stdin (kept byte-for-byte by default) | - | No |
@@ -0,0 +1,16 @@
1
+ <!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
2
+
3
+ # `logout` command reference
4
+
5
+ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
6
+
7
+ ## `logout`
8
+
9
+ Revoke the active context's API key on the server and forget it locally
10
+
11
+ **Options:**
12
+
13
+ | Flag | Description | Default | Required |
14
+ |------|-------------|---------|----------|
15
+ | `--context <name>` | Log out of a specific context (defaults to active) | - | No |
16
+ | `--local-only` | Skip server-side revocation; only clear local credentials | - | No |
@@ -0,0 +1,290 @@
1
+ <!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
2
+
3
+ # `logs` command reference
4
+
5
+ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
6
+
7
+ ## `logs` (alias: `glogs`)
8
+
9
+ Search collected logs across every project and database you can access
10
+
11
+ **Subcommands:**
12
+
13
+ - `search` - Search log lines across projects (newest first)
14
+ - `facets` - Distinct values and counts per field for the same filter scope
15
+ - `attributes` - Attribute keys observed in the window, most common first (requires the ClickHouse line index)
16
+ - `histogram` - Line counts bucketed over time, optionally split by a label or attribute (requires the ClickHouse line index)
17
+ - `aggregate` - Group-by aggregation over lines (requires the ClickHouse line index)
18
+ - `capabilities` - Whether container logs are being collected, and whether attribute facets, histograms and aggregates are available
19
+ - `saved` - Saved log searches: named filters you can reopen, chart on a dashboard and alert on
20
+ - `keys` - Ingest keys for POST /api/logs/ingest (newline-delimited JSON from Vector, Fluent Bit or any HTTP client)
21
+
22
+ ### `logs search`
23
+
24
+ Search log lines across projects (newest first)
25
+
26
+ **Options:**
27
+
28
+ | Flag | Description | Default | Required |
29
+ |------|-------------|---------|----------|
30
+ | `--limit <n>` | Lines per request (default: 200, max: 1000) | - | No |
31
+ | `--cursor <token>` | Resume from a previous next_cursor | - | No |
32
+ | `--all` | Follow next_cursor automatically until the results run out (or --max-pages is reached, default 20 pages) | - | No |
33
+ | `--max-pages <n>` | Page ceiling for --all (default: 20) | - | No |
34
+ | `--since <duration>` | Relative window ending now, e.g. 30m, 6h, 7d (default: 1h) | - | No |
35
+ | `--start-time <iso>` | Window start (ISO 8601); overrides --since | - | No |
36
+ | `--end-time <iso>` | Window end (ISO 8601); defaults to now | - | No |
37
+ | `--source <kind>` | collected (default), application, or service | - | No |
38
+ | `--project <id\|slug\|name>` | Restrict to a project, repeatable | `` | No |
39
+ | `--external-service <id\|name>` | Restrict to a managed database/service, repeatable | `` | No |
40
+ | `--scope <kind:id>` | Explicit resource identity, e.g. application:12, repeatable | `` | No |
41
+ | `--level <level>` | TRACE\|DEBUG\|INFO\|WARN\|ERROR, repeatable | `` | No |
42
+ | `--env <name>` | Environment, repeatable | `` | No |
43
+ | `--service <name>` | Container service label (web, worker, …), repeatable | `` | No |
44
+ | `--container <id>` | Container ID, repeatable | `` | No |
45
+ | `--node <id>` | Worker node ID, repeatable | `` | No |
46
+ | `--deploy <id>` | Deployment ID | - | No |
47
+ | `--text <substring>` | Case-insensitive message substring match | - | No |
48
+ | `--attr <pred>` | Attribute predicate, repeatable: <key>=<value>, <key>!=<value>, <key>^=<prefix>, <key>><value>, <key><<value>, or <key>? for "exists" (requires the ClickHouse line index) | `` | No |
49
+ | `--json` | Output in JSON format | - | No |
50
+
51
+ ### `logs facets`
52
+
53
+ Distinct values and counts per field for the same filter scope
54
+
55
+ **Options:**
56
+
57
+ | Flag | Description | Default | Required |
58
+ |------|-------------|---------|----------|
59
+ | `--field <name>` | Facet field, repeatable: env, service, level, stream, project, external_service, node, deploy, container (default: env, service, level, node, deploy) | `` | No |
60
+ | `--attr-keys <keys>` | Comma-separated label names and/or attr:<name> (e.g. worker,attr:cache) — routes to the attribute-aware endpoint, which requires the ClickHouse line index | - | No |
61
+ | `--limit <n>` | Max values per key when using --attr-keys or --attr (default 50, cap 1000) | - | No |
62
+ | `--since <duration>` | Relative window ending now, e.g. 30m, 6h, 7d (default: 1h) | - | No |
63
+ | `--start-time <iso>` | Window start (ISO 8601); overrides --since | - | No |
64
+ | `--end-time <iso>` | Window end (ISO 8601); defaults to now | - | No |
65
+ | `--source <kind>` | collected (default), application, or service | - | No |
66
+ | `--project <id\|slug\|name>` | Restrict to a project, repeatable | `` | No |
67
+ | `--external-service <id\|name>` | Restrict to a managed database/service, repeatable | `` | No |
68
+ | `--scope <kind:id>` | Explicit resource identity, e.g. application:12, repeatable | `` | No |
69
+ | `--level <level>` | TRACE\|DEBUG\|INFO\|WARN\|ERROR, repeatable | `` | No |
70
+ | `--env <name>` | Environment, repeatable | `` | No |
71
+ | `--service <name>` | Container service label (web, worker, …), repeatable | `` | No |
72
+ | `--container <id>` | Container ID, repeatable | `` | No |
73
+ | `--node <id>` | Worker node ID, repeatable | `` | No |
74
+ | `--deploy <id>` | Deployment ID | - | No |
75
+ | `--text <substring>` | Case-insensitive message substring match | - | No |
76
+ | `--attr <pred>` | Attribute predicate, repeatable: <key>=<value>, <key>!=<value>, <key>^=<prefix>, <key>><value>, <key><<value>, or <key>? for "exists" (requires the ClickHouse line index) | `` | No |
77
+ | `--json` | Output in JSON format | - | No |
78
+
79
+ ### `logs attributes`
80
+
81
+ Attribute keys observed in the window, most common first (requires the ClickHouse line index)
82
+
83
+ **Options:**
84
+
85
+ | Flag | Description | Default | Required |
86
+ |------|-------------|---------|----------|
87
+ | `--limit <n>` | Max keys returned (default 100, cap 1000) | - | No |
88
+ | `--since <duration>` | Relative window ending now, e.g. 30m, 6h, 7d (default: 1h) | - | No |
89
+ | `--start-time <iso>` | Window start (ISO 8601); overrides --since | - | No |
90
+ | `--end-time <iso>` | Window end (ISO 8601); defaults to now | - | No |
91
+ | `--source <kind>` | collected (default), application, or service | - | No |
92
+ | `--project <id\|slug\|name>` | Restrict to a project, repeatable | `` | No |
93
+ | `--external-service <id\|name>` | Restrict to a managed database/service, repeatable | `` | No |
94
+ | `--scope <kind:id>` | Explicit resource identity, e.g. application:12, repeatable | `` | No |
95
+ | `--level <level>` | TRACE\|DEBUG\|INFO\|WARN\|ERROR, repeatable | `` | No |
96
+ | `--env <name>` | Environment, repeatable | `` | No |
97
+ | `--service <name>` | Container service label (web, worker, …), repeatable | `` | No |
98
+ | `--container <id>` | Container ID, repeatable | `` | No |
99
+ | `--node <id>` | Worker node ID, repeatable | `` | No |
100
+ | `--deploy <id>` | Deployment ID | - | No |
101
+ | `--text <substring>` | Case-insensitive message substring match | - | No |
102
+ | `--attr <pred>` | Attribute predicate, repeatable: <key>=<value>, <key>!=<value>, <key>^=<prefix>, <key>><value>, <key><<value>, or <key>? for "exists" (requires the ClickHouse line index) | `` | No |
103
+ | `--json` | Output in JSON format | - | No |
104
+
105
+ ### `logs histogram`
106
+
107
+ Line counts bucketed over time, optionally split by a label or attribute (requires the ClickHouse line index)
108
+
109
+ **Options:**
110
+
111
+ | Flag | Description | Default | Required |
112
+ |------|-------------|---------|----------|
113
+ | `--bucket-secs <n>` | Bucket width in seconds (default 60) | - | No |
114
+ | `--group-by <key>` | One label name or attr:<name> to split series by | - | No |
115
+ | `--max-groups <n>` | Max series before folding the rest into "other" (default 8) | - | No |
116
+ | `--since <duration>` | Relative window ending now, e.g. 30m, 6h, 7d (default: 1h) | - | No |
117
+ | `--start-time <iso>` | Window start (ISO 8601); overrides --since | - | No |
118
+ | `--end-time <iso>` | Window end (ISO 8601); defaults to now | - | No |
119
+ | `--source <kind>` | collected (default), application, or service | - | No |
120
+ | `--project <id\|slug\|name>` | Restrict to a project, repeatable | `` | No |
121
+ | `--external-service <id\|name>` | Restrict to a managed database/service, repeatable | `` | No |
122
+ | `--scope <kind:id>` | Explicit resource identity, e.g. application:12, repeatable | `` | No |
123
+ | `--level <level>` | TRACE\|DEBUG\|INFO\|WARN\|ERROR, repeatable | `` | No |
124
+ | `--env <name>` | Environment, repeatable | `` | No |
125
+ | `--service <name>` | Container service label (web, worker, …), repeatable | `` | No |
126
+ | `--container <id>` | Container ID, repeatable | `` | No |
127
+ | `--node <id>` | Worker node ID, repeatable | `` | No |
128
+ | `--deploy <id>` | Deployment ID | - | No |
129
+ | `--text <substring>` | Case-insensitive message substring match | - | No |
130
+ | `--attr <pred>` | Attribute predicate, repeatable: <key>=<value>, <key>!=<value>, <key>^=<prefix>, <key>><value>, <key><<value>, or <key>? for "exists" (requires the ClickHouse line index) | `` | No |
131
+ | `--json` | Output in JSON format | - | No |
132
+
133
+ ### `logs aggregate`
134
+
135
+ Group-by aggregation over lines (requires the ClickHouse line index)
136
+
137
+ **Options:**
138
+
139
+ | Flag | Description | Default | Required |
140
+ |------|-------------|---------|----------|
141
+ | `--group-by <keys>` | Comma-separated label names and/or attr:<name> | - | Yes |
142
+ | `--metric <spec>` | count \| count_distinct:<k> \| avg:<k> \| p50:<k> \| p95:<k> \| p99:<k> \| max:<k> \| sum:<k> | - | Yes |
143
+ | `--limit <n>` | Max rows returned (default 50, cap 1000) | - | No |
144
+ | `--since <duration>` | Relative window ending now, e.g. 30m, 6h, 7d (default: 1h) | - | No |
145
+ | `--start-time <iso>` | Window start (ISO 8601); overrides --since | - | No |
146
+ | `--end-time <iso>` | Window end (ISO 8601); defaults to now | - | No |
147
+ | `--source <kind>` | collected (default), application, or service | - | No |
148
+ | `--project <id\|slug\|name>` | Restrict to a project, repeatable | `` | No |
149
+ | `--external-service <id\|name>` | Restrict to a managed database/service, repeatable | `` | No |
150
+ | `--scope <kind:id>` | Explicit resource identity, e.g. application:12, repeatable | `` | No |
151
+ | `--level <level>` | TRACE\|DEBUG\|INFO\|WARN\|ERROR, repeatable | `` | No |
152
+ | `--env <name>` | Environment, repeatable | `` | No |
153
+ | `--service <name>` | Container service label (web, worker, …), repeatable | `` | No |
154
+ | `--container <id>` | Container ID, repeatable | `` | No |
155
+ | `--node <id>` | Worker node ID, repeatable | `` | No |
156
+ | `--deploy <id>` | Deployment ID | - | No |
157
+ | `--text <substring>` | Case-insensitive message substring match | - | No |
158
+ | `--attr <pred>` | Attribute predicate, repeatable: <key>=<value>, <key>!=<value>, <key>^=<prefix>, <key>><value>, <key><<value>, or <key>? for "exists" (requires the ClickHouse line index) | `` | No |
159
+ | `--json` | Output in JSON format | - | No |
160
+
161
+ ### `logs capabilities`
162
+
163
+ Whether container logs are being collected, and whether attribute facets, histograms and aggregates are available
164
+
165
+ **Options:**
166
+
167
+ | Flag | Description | Default | Required |
168
+ |------|-------------|---------|----------|
169
+ | `--json` | Output in JSON format | - | No |
170
+
171
+ ### `logs saved`
172
+
173
+ Saved log searches: named filters you can reopen, chart on a dashboard and alert on
174
+
175
+ **Subcommands:**
176
+
177
+ - `list` - List the saved searches of a project, pinned first
178
+ - `create` - Save a log search
179
+ - `delete` - Delete a saved search (refused while an alert rule counts it)
180
+ - `series` - Chart a saved search over time: matching lines per bucket, or a numeric field
181
+
182
+ #### `logs saved list`
183
+
184
+ List the saved searches of a project, pinned first
185
+
186
+ **Options:**
187
+
188
+ | Flag | Description | Default | Required |
189
+ |------|-------------|---------|----------|
190
+ | `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
191
+ | `--json` | Output in JSON format | - | No |
192
+
193
+ #### `logs saved create`
194
+
195
+ Save a log search
196
+
197
+ **Options:**
198
+
199
+ | Flag | Description | Default | Required |
200
+ |------|-------------|---------|----------|
201
+ | `--name <name>` | Name, unique within the project | - | Yes |
202
+ | `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
203
+ | `--description <text>` | What the search is for | - | No |
204
+ | `--source <kind>` | collected (default), application, or service | - | No |
205
+ | `--level <level>` | Log level, repeatable | `` | No |
206
+ | `--env <name>` | Environment, repeatable | `` | No |
207
+ | `--service <name>` | Service label, repeatable | `` | No |
208
+ | `--container <id>` | Container id, repeatable | `` | No |
209
+ | `--node <id>` | Node id, repeatable | `` | No |
210
+ | `--deploy <id>` | Deployment id | - | No |
211
+ | `--text <needle>` | Text the message must contain | - | No |
212
+ | `--attr <predicate>` | Attribute predicate, repeatable: key=value, key!=value, key^=prefix, key>n, key<n, key? | `` | No |
213
+ | `--time-range <range>` | Range the search opens with: 15m, 1h, 6h, 24h, 7d, 30d (default 1h) | - | No |
214
+ | `--pinned` | Pin it to the top of the list | - | No |
215
+ | `--json` | Output in JSON format | - | No |
216
+
217
+ #### `logs saved delete`
218
+
219
+ Delete a saved search (refused while an alert rule counts it)
220
+
221
+ **Usage:** `logs saved delete <id> [options]`
222
+
223
+ **Options:**
224
+
225
+ | Flag | Description | Default | Required |
226
+ |------|-------------|---------|----------|
227
+ | `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
228
+
229
+ #### `logs saved series`
230
+
231
+ Chart a saved search over time: matching lines per bucket, or a numeric field
232
+
233
+ **Usage:** `logs saved series <id> [options]`
234
+
235
+ **Options:**
236
+
237
+ | Flag | Description | Default | Required |
238
+ |------|-------------|---------|----------|
239
+ | `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
240
+ | `--since <duration>` | Window ending now, e.g. 30m, 6h, 1d (default 1h) | - | No |
241
+ | `--bucket-secs <n>` | Bucket width in seconds (default 60) | - | No |
242
+ | `--metric <spec>` | count (default), or avg\|sum\|max\|p50\|p95\|p99\|count_distinct:<attribute> | - | No |
243
+ | `--json` | Output in JSON format | - | No |
244
+
245
+ ### `logs keys`
246
+
247
+ Ingest keys for POST /api/logs/ingest (newline-delimited JSON from Vector, Fluent Bit or any HTTP client)
248
+
249
+ **Subcommands:**
250
+
251
+ - `list` - List the ingest keys of a project
252
+ - `create` - Create an ingest key; the key is printed once
253
+ - `revoke` - Revoke an ingest key; collectors using it are refused
254
+
255
+ #### `logs keys list`
256
+
257
+ List the ingest keys of a project
258
+
259
+ **Options:**
260
+
261
+ | Flag | Description | Default | Required |
262
+ |------|-------------|---------|----------|
263
+ | `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
264
+ | `--json` | Output in JSON format | - | No |
265
+
266
+ #### `logs keys create`
267
+
268
+ Create an ingest key; the key is printed once
269
+
270
+ **Options:**
271
+
272
+ | Flag | Description | Default | Required |
273
+ |------|-------------|---------|----------|
274
+ | `--name <name>` | Name, e.g. the host or collector | - | Yes |
275
+ | `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
276
+ | `--service <name>` | Service label for lines that name none | - | No |
277
+ | `--environment <id>` | Pin lines to an environment id | - | No |
278
+ | `--json` | Output in JSON format | - | No |
279
+
280
+ #### `logs keys revoke`
281
+
282
+ Revoke an ingest key; collectors using it are refused
283
+
284
+ **Usage:** `logs keys revoke <id> [options]`
285
+
286
+ **Options:**
287
+
288
+ | Flag | Description | Default | Required |
289
+ |------|-------------|---------|----------|
290
+ | `--project <slug\|id>` | Project (defaults to the linked project) | - | No |
@@ -0,0 +1,74 @@
1
+ <!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
2
+
3
+ # `mcp-servers` command reference
4
+
5
+ Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
6
+
7
+ ## `mcp-servers`
8
+
9
+ Manage MCP server definitions (global or project-scoped)
10
+
11
+ **Subcommands:**
12
+
13
+ - `list` (`ls`) - List MCP server definitions
14
+ - `create` (`add`) - Create a new MCP server definition
15
+ - `update` - Update an existing MCP server definition
16
+ - `delete` (`rm`) - Delete an MCP server definition
17
+
18
+ ### `mcp-servers list` (alias: `ls`)
19
+
20
+ List MCP server definitions
21
+
22
+ **Options:**
23
+
24
+ | Flag | Description | Default | Required |
25
+ |------|-------------|---------|----------|
26
+ | `--global` | List global (platform-wide) MCP servers | - | No |
27
+ | `--project <slug>` | List MCP servers for a specific project | - | No |
28
+ | `--json` | Output in JSON format | - | No |
29
+
30
+ ### `mcp-servers create` (alias: `add`)
31
+
32
+ Create a new MCP server definition
33
+
34
+ **Options:**
35
+
36
+ | Flag | Description | Default | Required |
37
+ |------|-------------|---------|----------|
38
+ | `-n, --name <name>` | MCP server name | - | Yes |
39
+ | `-s, --slug <slug>` | MCP server slug (URL-safe identifier) | - | Yes |
40
+ | `-c, --config <config>` | MCP server config (JSON). Prefix with @ to read from file (e.g. @./mcp.json) | - | Yes |
41
+ | `-d, --description <description>` | MCP server description | - | No |
42
+ | `--global` | Create as global (platform-wide) MCP server | - | No |
43
+ | `--project <slug>` | Create MCP server for a specific project | - | No |
44
+
45
+ ### `mcp-servers update`
46
+
47
+ Update an existing MCP server definition
48
+
49
+ **Usage:** `mcp-servers update <slug> [options]`
50
+
51
+ **Options:**
52
+
53
+ | Flag | Description | Default | Required |
54
+ |------|-------------|---------|----------|
55
+ | `-n, --name <name>` | New name | - | No |
56
+ | `-c, --config <config>` | New config (JSON). Prefix with @ to read from file | - | No |
57
+ | `-d, --description <description>` | New description | - | No |
58
+ | `--global` | Update a global MCP server | - | No |
59
+ | `--project <slug>` | Update a project-scoped MCP server | - | No |
60
+
61
+ ### `mcp-servers delete` (alias: `rm`)
62
+
63
+ Delete an MCP server definition
64
+
65
+ **Usage:** `mcp-servers delete <slug> [options]`
66
+
67
+ **Options:**
68
+
69
+ | Flag | Description | Default | Required |
70
+ |------|-------------|---------|----------|
71
+ | `--global` | Delete a global MCP server | - | No |
72
+ | `--project <slug>` | Delete a project-scoped MCP server | - | No |
73
+ | `-f, --force` | Skip confirmation | - | No |
74
+ | `-y, --yes` | Skip confirmation (alias for --force) | - | No |