@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.
- package/README.md +14 -0
- package/dist/index.js +32148 -34152
- package/dist/skills/temps/SKILL.md +148 -0
- package/dist/skills/temps/agents/openai.yaml +7 -0
- package/dist/skills/temps/evals/evals.json +112 -0
- package/dist/skills/temps/howtos/backup-recovery.md +41 -0
- package/dist/skills/temps/howtos/ci-automation.md +17 -0
- package/dist/skills/temps/howtos/curated-services.md +69 -0
- package/dist/skills/temps/howtos/deploy-application.md +36 -0
- package/dist/skills/temps/howtos/diagnose-deployment.md +17 -0
- package/dist/skills/temps/howtos/edge-rules.md +135 -0
- package/dist/skills/temps/howtos/framework-routing.md +28 -0
- package/dist/skills/temps/howtos/javascript-typescript.md +57 -0
- package/dist/skills/temps/howtos/managed-services.md +83 -0
- package/dist/skills/temps/howtos/observability-onboarding.md +52 -0
- package/dist/skills/temps/howtos/projects-and-monorepos.md +50 -0
- package/dist/skills/temps/howtos/python.md +42 -0
- package/dist/skills/temps/howtos/rust.md +30 -0
- package/dist/skills/temps/references/cli-runtime.md +60 -0
- package/dist/skills/temps/references/commands/INDEX.md +102 -0
- package/dist/skills/temps/references/commands/access.md +53 -0
- package/dist/skills/temps/references/commands/ai.md +47 -0
- package/dist/skills/temps/references/commands/alarms.md +91 -0
- package/dist/skills/temps/references/commands/analytics.md +568 -0
- package/dist/skills/temps/references/commands/apikeys.md +98 -0
- package/dist/skills/temps/references/commands/audit.md +41 -0
- package/dist/skills/temps/references/commands/backups.md +269 -0
- package/dist/skills/temps/references/commands/cloud.md +385 -0
- package/dist/skills/temps/references/commands/cluster.md +31 -0
- package/dist/skills/temps/references/commands/configure.md +62 -0
- package/dist/skills/temps/references/commands/containers.md +110 -0
- package/dist/skills/temps/references/commands/context.md +55 -0
- package/dist/skills/temps/references/commands/custom-domains.md +98 -0
- package/dist/skills/temps/references/commands/data.md +87 -0
- package/dist/skills/temps/references/commands/delivery-profiles.md +69 -0
- package/dist/skills/temps/references/commands/delivery.md +116 -0
- package/dist/skills/temps/references/commands/deploy-image.md +23 -0
- package/dist/skills/temps/references/commands/deploy-local-image.md +28 -0
- package/dist/skills/temps/references/commands/deploy-static.md +23 -0
- package/dist/skills/temps/references/commands/deploy.md +23 -0
- package/dist/skills/temps/references/commands/deployments.md +173 -0
- package/dist/skills/temps/references/commands/dns-provider.md +196 -0
- package/dist/skills/temps/references/commands/dns.md +181 -0
- package/dist/skills/temps/references/commands/domains.md +188 -0
- package/dist/skills/temps/references/commands/drop.md +23 -0
- package/dist/skills/temps/references/commands/dsn.md +84 -0
- package/dist/skills/temps/references/commands/edge-rules.md +218 -0
- package/dist/skills/temps/references/commands/email-domains.md +160 -0
- package/dist/skills/temps/references/commands/email-providers.md +96 -0
- package/dist/skills/temps/references/commands/emails.md +79 -0
- package/dist/skills/temps/references/commands/env-pull.md +18 -0
- package/dist/skills/temps/references/commands/env-push.md +19 -0
- package/dist/skills/temps/references/commands/environments.md +500 -0
- package/dist/skills/temps/references/commands/errors.md +763 -0
- package/dist/skills/temps/references/commands/facets.md +63 -0
- package/dist/skills/temps/references/commands/flags.md +246 -0
- package/dist/skills/temps/references/commands/funnels.md +92 -0
- package/dist/skills/temps/references/commands/incidents.md +115 -0
- package/dist/skills/temps/references/commands/init.md +18 -0
- package/dist/skills/temps/references/commands/instances.md +62 -0
- package/dist/skills/temps/references/commands/instantiations.md +57 -0
- package/dist/skills/temps/references/commands/ip-access.md +153 -0
- package/dist/skills/temps/references/commands/link.md +17 -0
- package/dist/skills/temps/references/commands/load-balancer.md +73 -0
- package/dist/skills/temps/references/commands/login.md +22 -0
- package/dist/skills/temps/references/commands/logout.md +16 -0
- package/dist/skills/temps/references/commands/logs.md +290 -0
- package/dist/skills/temps/references/commands/mcp-servers.md +74 -0
- package/dist/skills/temps/references/commands/mcp.md +72 -0
- package/dist/skills/temps/references/commands/metrics.md +79 -0
- package/dist/skills/temps/references/commands/migrate.md +118 -0
- package/dist/skills/temps/references/commands/monitors.md +162 -0
- package/dist/skills/temps/references/commands/network-policy.md +120 -0
- package/dist/skills/temps/references/commands/nodes.md +254 -0
- package/dist/skills/temps/references/commands/notification-preferences.md +47 -0
- package/dist/skills/temps/references/commands/notifications.md +233 -0
- package/dist/skills/temps/references/commands/open.md +19 -0
- package/dist/skills/temps/references/commands/otel-forward.md +226 -0
- package/dist/skills/temps/references/commands/otel.md +38 -0
- package/dist/skills/temps/references/commands/platform.md +151 -0
- package/dist/skills/temps/references/commands/plugin.md +222 -0
- package/dist/skills/temps/references/commands/presets.md +37 -0
- package/dist/skills/temps/references/commands/project-groups.md +292 -0
- package/dist/skills/temps/references/commands/projects.md +329 -0
- package/dist/skills/temps/references/commands/providers.md +290 -0
- package/dist/skills/temps/references/commands/proxy-logs.md +85 -0
- package/dist/skills/temps/references/commands/revenue.md +52 -0
- package/dist/skills/temps/references/commands/rollback.md +20 -0
- package/dist/skills/temps/references/commands/runtime-logs.md +21 -0
- package/dist/skills/temps/references/commands/sandbox.md +518 -0
- package/dist/skills/temps/references/commands/scans.md +113 -0
- package/dist/skills/temps/references/commands/secrets.md +75 -0
- package/dist/skills/temps/references/commands/server.md +50 -0
- package/dist/skills/temps/references/commands/services.md +642 -0
- package/dist/skills/temps/references/commands/session-replay.md +84 -0
- package/dist/skills/temps/references/commands/settings.md +84 -0
- package/dist/skills/temps/references/commands/setup.md +25 -0
- package/dist/skills/temps/references/commands/skills.md +93 -0
- package/dist/skills/temps/references/commands/start.md +21 -0
- package/dist/skills/temps/references/commands/status-pages.md +455 -0
- package/dist/skills/temps/references/commands/status.md +19 -0
- package/dist/skills/temps/references/commands/stop.md +16 -0
- package/dist/skills/temps/references/commands/surveys.md +165 -0
- package/dist/skills/temps/references/commands/teams.md +143 -0
- package/dist/skills/temps/references/commands/templates.md +67 -0
- package/dist/skills/temps/references/commands/tokens.md +77 -0
- package/dist/skills/temps/references/commands/traces.md +100 -0
- package/dist/skills/temps/references/commands/traefik-discovery.md +123 -0
- package/dist/skills/temps/references/commands/tunnels.md +139 -0
- package/dist/skills/temps/references/commands/up.md +27 -0
- package/dist/skills/temps/references/commands/users.md +115 -0
- package/dist/skills/temps/references/commands/webhooks.md +171 -0
- package/dist/skills/temps/references/commands/whoami.md +15 -0
- package/dist/skills/temps/references/commands/workflow.md +44 -0
- package/dist/skills/temps/references/commands/workflows.md +216 -0
- package/dist/skills/temps/references/observability/analytics.md +146 -0
- package/dist/skills/temps/references/observability/error-tracking.md +73 -0
- package/dist/skills/temps/references/observability/hygiene.md +112 -0
- package/dist/skills/temps/references/observability/logs.md +43 -0
- package/dist/skills/temps/references/observability/metrics.md +41 -0
- package/dist/skills/temps/references/observability/tracing.md +392 -0
- package/dist/skills/temps/references/runtime-contract.md +115 -0
- package/dist/skills/temps/references/workflows/platform-operations.md +164 -0
- package/dist/skills/temps/scripts/detect_project_capabilities.py +239 -0
- package/dist/skills/temps/scripts/generate_command_references.py +144 -0
- package/dist/skills/temps/scripts/test_detect_project_capabilities.py +124 -0
- package/dist/skills/temps/scripts/test_generate_command_references.py +128 -0
- package/dist/skills/temps/scripts/test_validate_skill.py +43 -0
- package/dist/skills/temps/scripts/validate_skill.py +97 -0
- package/package.json +7 -2
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
<!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
|
|
2
|
+
|
|
3
|
+
# `mcp` 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`
|
|
8
|
+
|
|
9
|
+
Configure this Temps instance as an MCP server for AI clients (Claude Code, Claude Desktop, Codex, Cursor, VS Code, Windsurf, Zed)
|
|
10
|
+
|
|
11
|
+
**Subcommands:**
|
|
12
|
+
|
|
13
|
+
- `enable` - Enable the Temps MCP server on this instance (admin, one-time per instance)
|
|
14
|
+
- `disable` - Disable the Temps MCP server on this instance (admin)
|
|
15
|
+
- `add` - Configure an AI client to connect to this Temps instance over MCP. Clients: claude-code, claude-desktop, codex, cursor, vscode, windsurf, zed
|
|
16
|
+
- `remove` - Remove the Temps MCP server from an AI client
|
|
17
|
+
- `status` - Show whether this instance has MCP enabled and which AI clients are configured
|
|
18
|
+
|
|
19
|
+
### `mcp enable`
|
|
20
|
+
|
|
21
|
+
Enable the Temps MCP server on this instance (admin, one-time per instance)
|
|
22
|
+
|
|
23
|
+
**Options:**
|
|
24
|
+
|
|
25
|
+
| Flag | Description | Default | Required |
|
|
26
|
+
|------|-------------|---------|----------|
|
|
27
|
+
| `-u, --url <url>` | Target this Temps instance directly (e.g. copied from the Settings UI), without needing a saved CLI context or changing the active one. Defaults to the current context/login when omitted. | - | No |
|
|
28
|
+
|
|
29
|
+
### `mcp disable`
|
|
30
|
+
|
|
31
|
+
Disable the Temps MCP server on this instance (admin)
|
|
32
|
+
|
|
33
|
+
**Options:**
|
|
34
|
+
|
|
35
|
+
| Flag | Description | Default | Required |
|
|
36
|
+
|------|-------------|---------|----------|
|
|
37
|
+
| `-u, --url <url>` | Target this Temps instance directly (e.g. copied from the Settings UI), without needing a saved CLI context or changing the active one. Defaults to the current context/login when omitted. | - | No |
|
|
38
|
+
|
|
39
|
+
### `mcp add`
|
|
40
|
+
|
|
41
|
+
Configure an AI client to connect to this Temps instance over MCP. Clients: claude-code, claude-desktop, codex, cursor, vscode, windsurf, zed
|
|
42
|
+
|
|
43
|
+
**Usage:** `mcp add [client] [options]`
|
|
44
|
+
|
|
45
|
+
**Options:**
|
|
46
|
+
|
|
47
|
+
| Flag | Description | Default | Required |
|
|
48
|
+
|------|-------------|---------|----------|
|
|
49
|
+
| `-g, --groups <groups>` | Legacy tool-group filter (optional; does not restrict temps/temps_write permissions) | - | No |
|
|
50
|
+
| `-w, --write` | Enable write tools (deploy, delete, restart, etc). Default: read-only | - | No |
|
|
51
|
+
| `-k, --api-key <key>` | Use this API key instead of creating or prompting for one | - | No |
|
|
52
|
+
| `-u, --url <url>` | Target this Temps instance directly (e.g. copied from the Settings UI), without needing a saved CLI context or changing the active one. Defaults to the current context/login when omitted. | - | No |
|
|
53
|
+
| `-y, --yes` | Skip prompts and confirmation (uses defaults; requires --api-key or an existing login) | - | No |
|
|
54
|
+
| `--api-key-file <path>` | Read the API key from a file (- reads stdin) instead of --api-key | - | No |
|
|
55
|
+
| `--api-key-stdin` | Read the API key from stdin instead of --api-key | - | No |
|
|
56
|
+
| `--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 |
|
|
57
|
+
|
|
58
|
+
### `mcp remove`
|
|
59
|
+
|
|
60
|
+
Remove the Temps MCP server from an AI client
|
|
61
|
+
|
|
62
|
+
**Usage:** `mcp remove [client]`
|
|
63
|
+
|
|
64
|
+
### `mcp status`
|
|
65
|
+
|
|
66
|
+
Show whether this instance has MCP enabled and which AI clients are configured
|
|
67
|
+
|
|
68
|
+
**Options:**
|
|
69
|
+
|
|
70
|
+
| Flag | Description | Default | Required |
|
|
71
|
+
|------|-------------|---------|----------|
|
|
72
|
+
| `-u, --url <url>` | Target this Temps instance directly (e.g. copied from the Settings UI), without needing a saved CLI context or changing the active one. Defaults to the current context/login when omitted. | - | No |
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
<!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
|
|
2
|
+
|
|
3
|
+
# `metrics` command reference
|
|
4
|
+
|
|
5
|
+
Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
|
|
6
|
+
|
|
7
|
+
## `metrics` (alias: `metric`)
|
|
8
|
+
|
|
9
|
+
Query OTel application metrics for debugging (not container/docker stats — see "temps containers metrics" for those)
|
|
10
|
+
|
|
11
|
+
**Subcommands:**
|
|
12
|
+
|
|
13
|
+
- `names` - List distinct metric names ingested for a project — start here if you don't know what to query
|
|
14
|
+
- `query` - Query a metric with time bucketing and aggregation
|
|
15
|
+
- `label-keys` - List the label keys observed on a metric — powers filter/group-by discovery
|
|
16
|
+
- `label-values` - List the distinct values seen for a label key on a metric
|
|
17
|
+
|
|
18
|
+
### `metrics names`
|
|
19
|
+
|
|
20
|
+
List distinct metric names ingested for a project — start here if you don't know what to query
|
|
21
|
+
|
|
22
|
+
**Options:**
|
|
23
|
+
|
|
24
|
+
| Flag | Description | Default | Required |
|
|
25
|
+
|------|-------------|---------|----------|
|
|
26
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
27
|
+
| `--json` | Output in JSON format | - | No |
|
|
28
|
+
|
|
29
|
+
### `metrics query`
|
|
30
|
+
|
|
31
|
+
Query a metric with time bucketing and aggregation
|
|
32
|
+
|
|
33
|
+
**Options:**
|
|
34
|
+
|
|
35
|
+
| Flag | Description | Default | Required |
|
|
36
|
+
|------|-------------|---------|----------|
|
|
37
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
38
|
+
| `--metric-name <name>` | Metric to query (see "temps metrics names") | - | No |
|
|
39
|
+
| `--service-name <name>` | Filter by service name | - | No |
|
|
40
|
+
| `--environment <name>` | Filter by deployment environment name | - | No |
|
|
41
|
+
| `--period <period>` | Time period: today, <n>h, <n>d, <n>m (e.g. 1h, 24h, 7d) | `24h` | No |
|
|
42
|
+
| `--start-time <iso>` | Explicit window start (RFC 3339) — overrides --period | - | No |
|
|
43
|
+
| `--end-time <iso>` | Explicit window end (RFC 3339) — overrides --period | - | No |
|
|
44
|
+
| `--bucket-interval <interval>` | Bucket size, e.g. "5 minutes", "1 hour" | - | No |
|
|
45
|
+
| `--aggregation <mode>` | Per-bucket aggregation: avg (default), sum, min, max, count, rate, p50/p95/p99, quantile:0.95 | - | No |
|
|
46
|
+
| `--metric-type <type>` | Filter by metric type: gauge, sum, histogram, exponential_histogram, summary | - | No |
|
|
47
|
+
| `--label-filters <pairs>` | Comma-separated key=value data-point label filters, e.g. http.method=GET,http.status_code=200 | - | No |
|
|
48
|
+
| `--group-by <keys>` | Comma-separated label keys to group series by, e.g. http.method,http.route | - | No |
|
|
49
|
+
| `--limit <n>` | Max buckets to return (default: 500, server cap: 1000) | - | No |
|
|
50
|
+
| `--json` | Output in JSON format | - | No |
|
|
51
|
+
|
|
52
|
+
### `metrics label-keys`
|
|
53
|
+
|
|
54
|
+
List the label keys observed on a metric — powers filter/group-by discovery
|
|
55
|
+
|
|
56
|
+
**Options:**
|
|
57
|
+
|
|
58
|
+
| Flag | Description | Default | Required |
|
|
59
|
+
|------|-------------|---------|----------|
|
|
60
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
61
|
+
| `--metric-name <name>` | Metric to inspect | - | Yes |
|
|
62
|
+
| `--start-time <iso>` | Window start (RFC 3339); defaults to 24h before end | - | No |
|
|
63
|
+
| `--end-time <iso>` | Window end (RFC 3339); defaults to now | - | No |
|
|
64
|
+
| `--json` | Output in JSON format | - | No |
|
|
65
|
+
|
|
66
|
+
### `metrics label-values`
|
|
67
|
+
|
|
68
|
+
List the distinct values seen for a label key on a metric
|
|
69
|
+
|
|
70
|
+
**Options:**
|
|
71
|
+
|
|
72
|
+
| Flag | Description | Default | Required |
|
|
73
|
+
|------|-------------|---------|----------|
|
|
74
|
+
| `-p, --project <project>` | Project slug or ID | - | No |
|
|
75
|
+
| `--metric-name <name>` | Metric to inspect | - | Yes |
|
|
76
|
+
| `--label-key <key>` | Label key whose values to list | - | Yes |
|
|
77
|
+
| `--start-time <iso>` | Window start (RFC 3339); defaults to 24h before end | - | No |
|
|
78
|
+
| `--end-time <iso>` | Window end (RFC 3339); defaults to now | - | No |
|
|
79
|
+
| `--json` | Output in JSON format | - | No |
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
<!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
|
|
2
|
+
|
|
3
|
+
# `migrate` command reference
|
|
4
|
+
|
|
5
|
+
Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
|
|
6
|
+
|
|
7
|
+
## `migrate` (alias: `imports`, `import`)
|
|
8
|
+
|
|
9
|
+
Migrate a project from another platform (Vercel, Coolify, Dokploy, CapRover, Portainer, Kubernetes, Docker) into temps
|
|
10
|
+
|
|
11
|
+
**Subcommands:**
|
|
12
|
+
|
|
13
|
+
- `sources` (`ls`) - List available import sources
|
|
14
|
+
- `discover` - Discover workloads from a source
|
|
15
|
+
- `plan` - Discover a source, pick a workload, and show the import plan
|
|
16
|
+
- `run` - Guided end-to-end migration: discover, plan, review, and execute
|
|
17
|
+
- `execute` - Execute a previously created import plan by session ID
|
|
18
|
+
- `status` - Show a stored import session (the plan it was created with)
|
|
19
|
+
|
|
20
|
+
### `migrate sources` (alias: `ls`)
|
|
21
|
+
|
|
22
|
+
List available import sources
|
|
23
|
+
|
|
24
|
+
**Options:**
|
|
25
|
+
|
|
26
|
+
| Flag | Description | Default | Required |
|
|
27
|
+
|------|-------------|---------|----------|
|
|
28
|
+
| `--json` | Output in JSON format | - | No |
|
|
29
|
+
|
|
30
|
+
### `migrate discover`
|
|
31
|
+
|
|
32
|
+
Discover workloads from a source
|
|
33
|
+
|
|
34
|
+
**Options:**
|
|
35
|
+
|
|
36
|
+
| Flag | Description | Default | Required |
|
|
37
|
+
|------|-------------|---------|----------|
|
|
38
|
+
| `-s, --source <source>` | Import source (coolify, dokploy, caprover, portainer, kubernetes, kamal, docker) | - | No |
|
|
39
|
+
| `--token <token>` | API token / admin password for the source instance | - | No |
|
|
40
|
+
| `--base-url <url>` | Base URL of the source instance | - | No |
|
|
41
|
+
| `--username <name>` | Admin username (portainer source, defaults to "admin") | - | No |
|
|
42
|
+
| `--kubeconfig <path>` | Path to a kubeconfig file (kubernetes source) | - | No |
|
|
43
|
+
| `--deploy-yml <path>` | Path to config/deploy.yml (kamal source) | - | No |
|
|
44
|
+
| `--json` | Output in JSON format | - | No |
|
|
45
|
+
| `--token-file <path>` | Read the source API token or admin password from a file (- reads stdin) instead of --token | - | No |
|
|
46
|
+
| `--token-stdin` | Read the source API token or admin password from stdin instead of --token | - | No |
|
|
47
|
+
| `--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 |
|
|
48
|
+
|
|
49
|
+
### `migrate plan`
|
|
50
|
+
|
|
51
|
+
Discover a source, pick a workload, and show the import plan
|
|
52
|
+
|
|
53
|
+
**Options:**
|
|
54
|
+
|
|
55
|
+
| Flag | Description | Default | Required |
|
|
56
|
+
|------|-------------|---------|----------|
|
|
57
|
+
| `-s, --source <source>` | Import source | - | No |
|
|
58
|
+
| `-w, --workload <workload>` | Workload ID to import (skips the picker) | - | No |
|
|
59
|
+
| `--token <token>` | API token / admin password for the source instance | - | No |
|
|
60
|
+
| `--base-url <url>` | Base URL of the source instance | - | No |
|
|
61
|
+
| `--username <name>` | Admin username (portainer source, defaults to "admin") | - | No |
|
|
62
|
+
| `--kubeconfig <path>` | Path to a kubeconfig file (kubernetes source) | - | No |
|
|
63
|
+
| `--deploy-yml <path>` | Path to config/deploy.yml (kamal source) | - | No |
|
|
64
|
+
| `--token-file <path>` | Read the source API token or admin password from a file (- reads stdin) instead of --token | - | No |
|
|
65
|
+
| `--token-stdin` | Read the source API token or admin password from stdin instead of --token | - | No |
|
|
66
|
+
| `--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 |
|
|
67
|
+
|
|
68
|
+
### `migrate run`
|
|
69
|
+
|
|
70
|
+
Guided end-to-end migration: discover, plan, review, and execute
|
|
71
|
+
|
|
72
|
+
**Options:**
|
|
73
|
+
|
|
74
|
+
| Flag | Description | Default | Required |
|
|
75
|
+
|------|-------------|---------|----------|
|
|
76
|
+
| `-s, --source <source>` | Import source (vercel, coolify, dokploy, caprover, portainer, kubernetes, kamal, docker) | - | No |
|
|
77
|
+
| `-w, --workload <workload>` | Workload ID to import (skips the picker) | - | No |
|
|
78
|
+
| `--token <token>` | API token / admin password for the source instance | - | No |
|
|
79
|
+
| `--base-url <url>` | Base URL of the source instance | - | No |
|
|
80
|
+
| `--username <name>` | Admin username (portainer source, defaults to "admin") | - | No |
|
|
81
|
+
| `--kubeconfig <path>` | Path to a kubeconfig file (kubernetes source) | - | No |
|
|
82
|
+
| `--deploy-yml <path>` | Path to config/deploy.yml (kamal source) | - | No |
|
|
83
|
+
| `--project-name <name>` | Name for the new temps project (defaults to the source project name) | - | No |
|
|
84
|
+
| `--preset <preset>` | Build preset (defaults to "nixpacks" for git sources, "dockerfile" otherwise) | - | No |
|
|
85
|
+
| `--directory <dir>` | Project subdirectory | `.` | No |
|
|
86
|
+
| `--branch <branch>` | Branch to deploy | `main` | No |
|
|
87
|
+
| `--dry-run` | Plan only — do not create or deploy anything | - | No |
|
|
88
|
+
| `-y, --yes` | Skip the confirmation prompt (for automation) | - | No |
|
|
89
|
+
| `--token-file <path>` | Read the source API token or admin password from a file (- reads stdin) instead of --token | - | No |
|
|
90
|
+
| `--token-stdin` | Read the source API token or admin password from stdin instead of --token | - | No |
|
|
91
|
+
| `--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 |
|
|
92
|
+
|
|
93
|
+
### `migrate execute`
|
|
94
|
+
|
|
95
|
+
Execute a previously created import plan by session ID
|
|
96
|
+
|
|
97
|
+
**Options:**
|
|
98
|
+
|
|
99
|
+
| Flag | Description | Default | Required |
|
|
100
|
+
|------|-------------|---------|----------|
|
|
101
|
+
| `--session-id <id>` | Import session ID (from `imports plan`) | - | Yes |
|
|
102
|
+
| `--project-name <name>` | Name for the new temps project | - | No |
|
|
103
|
+
| `--preset <preset>` | Build preset | `nixpacks` | No |
|
|
104
|
+
| `--directory <dir>` | Project subdirectory | `.` | No |
|
|
105
|
+
| `--branch <branch>` | Branch to deploy | `main` | No |
|
|
106
|
+
| `--dry-run` | Plan only — do not create or deploy anything | - | No |
|
|
107
|
+
| `-y, --yes` | Skip the confirmation prompt (for automation) | - | No |
|
|
108
|
+
|
|
109
|
+
### `migrate status`
|
|
110
|
+
|
|
111
|
+
Show a stored import session (the plan it was created with)
|
|
112
|
+
|
|
113
|
+
**Options:**
|
|
114
|
+
|
|
115
|
+
| Flag | Description | Default | Required |
|
|
116
|
+
|------|-------------|---------|----------|
|
|
117
|
+
| `--session-id <id>` | Import session ID | - | Yes |
|
|
118
|
+
| `--json` | Output in JSON format | - | No |
|
|
@@ -0,0 +1,162 @@
|
|
|
1
|
+
<!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
|
|
2
|
+
|
|
3
|
+
# `monitors` command reference
|
|
4
|
+
|
|
5
|
+
Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
|
|
6
|
+
|
|
7
|
+
## `monitors` (alias: `monitoring`)
|
|
8
|
+
|
|
9
|
+
Manage uptime monitors for status pages
|
|
10
|
+
|
|
11
|
+
**Subcommands:**
|
|
12
|
+
|
|
13
|
+
- `list` (`ls`) - List all monitors for a project
|
|
14
|
+
- `create` (`add`) - Create a new monitor for a project
|
|
15
|
+
- `add-target` - Monitor a URL, port, TLS certificate or DNS record outside Temps
|
|
16
|
+
- `update-target` - Change a monitor of a target outside Temps; omitted flags keep their value
|
|
17
|
+
- `locations` - List where monitors checked from worker nodes are checked from
|
|
18
|
+
- `show` - Show monitor details and current status
|
|
19
|
+
- `remove` (`rm`) - Delete a monitor
|
|
20
|
+
- `status` - Get current status — all monitors for a project, or a single monitor by ID
|
|
21
|
+
- `history` - Get monitor uptime history
|
|
22
|
+
|
|
23
|
+
### `monitors list` (alias: `ls`)
|
|
24
|
+
|
|
25
|
+
List all monitors for a project
|
|
26
|
+
|
|
27
|
+
**Options:**
|
|
28
|
+
|
|
29
|
+
| Flag | Description | Default | Required |
|
|
30
|
+
|------|-------------|---------|----------|
|
|
31
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
32
|
+
| `--json` | Output in JSON format | - | No |
|
|
33
|
+
|
|
34
|
+
### `monitors create` (alias: `add`)
|
|
35
|
+
|
|
36
|
+
Create a new monitor for a project
|
|
37
|
+
|
|
38
|
+
**Options:**
|
|
39
|
+
|
|
40
|
+
| Flag | Description | Default | Required |
|
|
41
|
+
|------|-------------|---------|----------|
|
|
42
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
43
|
+
| `-n, --name <name>` | Monitor name | - | No |
|
|
44
|
+
| `-t, --type <type>` | Monitor type (http, tcp, ping) | - | No |
|
|
45
|
+
| `-i, --interval <seconds>` | Check interval in seconds (60, 300, 600, 900, 1800) | - | No |
|
|
46
|
+
| `--check-path <path>` | HTTP health-check path (must start with "/", e.g. /api/healthz). Defaults to "/" for HTTP monitors. | - | No |
|
|
47
|
+
| `--environment-id <id>` | Environment ID (default: 0 for production) | - | No |
|
|
48
|
+
| `-y, --yes` | Skip confirmation prompts (for automation) | - | No |
|
|
49
|
+
|
|
50
|
+
### `monitors add-target`
|
|
51
|
+
|
|
52
|
+
Monitor a URL, port, TLS certificate or DNS record outside Temps
|
|
53
|
+
|
|
54
|
+
**Options:**
|
|
55
|
+
|
|
56
|
+
| Flag | Description | Default | Required |
|
|
57
|
+
|------|-------------|---------|----------|
|
|
58
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
59
|
+
| `--kind <kind>` | http, tcp, tls or dns | - | Yes |
|
|
60
|
+
| `--target <target>` | URL (http), host:port (tcp, tls) or host name (dns) | - | Yes |
|
|
61
|
+
| `-n, --name <name>` | Monitor name | - | Yes |
|
|
62
|
+
| `-i, --interval <seconds>` | Check interval in seconds (default 60, at least 30) | - | No |
|
|
63
|
+
| `--keyword-absent` | Fail when --keyword is present instead of missing | - | No |
|
|
64
|
+
| `--from-nodes` | Also check from online worker nodes; down only when most locations agree | - | No |
|
|
65
|
+
| `--method <method>` | HTTP method (default GET) | - | No |
|
|
66
|
+
| `--expect-status <codes>` | Codes or classes counted as up, e.g. 200,204 or 2xx (default 2xx or 3xx) | - | No |
|
|
67
|
+
| `--keyword <text>` | Text the response body must contain (first 256 KiB; never stored) | - | No |
|
|
68
|
+
| `--degraded-after-ms <ms>` | Slower than this is degraded (http, tcp) | - | No |
|
|
69
|
+
| `--warn-days <days>` | Degraded when the certificate expires within this many days (tls, default 14) | - | No |
|
|
70
|
+
| `--record <type>` | DNS record type: A, AAAA, CNAME, MX, TXT, NS (default A) | - | No |
|
|
71
|
+
| `--expect <values>` | Comma-separated DNS values; any match is up (default: any answer) | - | No |
|
|
72
|
+
| `--header-file <path>` | File of "Name: value" request headers; stored encrypted, never shown | - | No |
|
|
73
|
+
| `--body-file <path>` | File with the request body; stored encrypted | - | No |
|
|
74
|
+
| `--json` | Output in JSON format | - | No |
|
|
75
|
+
|
|
76
|
+
### `monitors update-target`
|
|
77
|
+
|
|
78
|
+
Change a monitor of a target outside Temps; omitted flags keep their value
|
|
79
|
+
|
|
80
|
+
**Options:**
|
|
81
|
+
|
|
82
|
+
| Flag | Description | Default | Required |
|
|
83
|
+
|------|-------------|---------|----------|
|
|
84
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
85
|
+
| `--monitor-id <id>` | Monitor ID | - | Yes |
|
|
86
|
+
| `--kind <kind>` | Change the check kind (pass the check flags for it) | - | No |
|
|
87
|
+
| `--target <target>` | New target | - | No |
|
|
88
|
+
| `-n, --name <name>` | New name | - | No |
|
|
89
|
+
| `-i, --interval <seconds>` | Check interval in seconds | - | No |
|
|
90
|
+
| `--keyword-absent` | Fail when --keyword is present instead of missing | - | No |
|
|
91
|
+
| `--pause` | Stop checking | - | No |
|
|
92
|
+
| `--resume` | Start checking again | - | No |
|
|
93
|
+
| `--from-nodes` | Also check from online worker nodes | - | No |
|
|
94
|
+
| `--no-from-nodes` | Check from this server only | - | No |
|
|
95
|
+
| `--method <method>` | HTTP method (default GET) | - | No |
|
|
96
|
+
| `--expect-status <codes>` | Codes or classes counted as up, e.g. 200,204 or 2xx (default 2xx or 3xx) | - | No |
|
|
97
|
+
| `--keyword <text>` | Text the response body must contain (first 256 KiB; never stored) | - | No |
|
|
98
|
+
| `--degraded-after-ms <ms>` | Slower than this is degraded (http, tcp) | - | No |
|
|
99
|
+
| `--warn-days <days>` | Degraded when the certificate expires within this many days (tls, default 14) | - | No |
|
|
100
|
+
| `--record <type>` | DNS record type: A, AAAA, CNAME, MX, TXT, NS (default A) | - | No |
|
|
101
|
+
| `--expect <values>` | Comma-separated DNS values; any match is up (default: any answer) | - | No |
|
|
102
|
+
| `--header-file <path>` | File of "Name: value" request headers; stored encrypted, never shown | - | No |
|
|
103
|
+
| `--body-file <path>` | File with the request body; stored encrypted | - | No |
|
|
104
|
+
| `--json` | Output in JSON format | - | No |
|
|
105
|
+
|
|
106
|
+
### `monitors locations`
|
|
107
|
+
|
|
108
|
+
List where monitors checked from worker nodes are checked from
|
|
109
|
+
|
|
110
|
+
**Options:**
|
|
111
|
+
|
|
112
|
+
| Flag | Description | Default | Required |
|
|
113
|
+
|------|-------------|---------|----------|
|
|
114
|
+
| `--project-id <id>` | Project ID | - | Yes |
|
|
115
|
+
| `--json` | Output in JSON format | - | No |
|
|
116
|
+
|
|
117
|
+
### `monitors show`
|
|
118
|
+
|
|
119
|
+
Show monitor details and current status
|
|
120
|
+
|
|
121
|
+
**Options:**
|
|
122
|
+
|
|
123
|
+
| Flag | Description | Default | Required |
|
|
124
|
+
|------|-------------|---------|----------|
|
|
125
|
+
| `--id <id>` | Monitor ID | - | Yes |
|
|
126
|
+
| `--json` | Output in JSON format | - | No |
|
|
127
|
+
|
|
128
|
+
### `monitors remove` (alias: `rm`)
|
|
129
|
+
|
|
130
|
+
Delete a monitor
|
|
131
|
+
|
|
132
|
+
**Options:**
|
|
133
|
+
|
|
134
|
+
| Flag | Description | Default | Required |
|
|
135
|
+
|------|-------------|---------|----------|
|
|
136
|
+
| `--id <id>` | Monitor ID | - | Yes |
|
|
137
|
+
| `-f, --force` | Skip confirmation | - | No |
|
|
138
|
+
| `-y, --yes` | Skip confirmation prompts (alias for --force) | - | No |
|
|
139
|
+
|
|
140
|
+
### `monitors status`
|
|
141
|
+
|
|
142
|
+
Get current status — all monitors for a project, or a single monitor by ID
|
|
143
|
+
|
|
144
|
+
**Options:**
|
|
145
|
+
|
|
146
|
+
| Flag | Description | Default | Required |
|
|
147
|
+
|------|-------------|---------|----------|
|
|
148
|
+
| `--id <id>` | Monitor ID (omit to show all monitors for the project) | - | No |
|
|
149
|
+
| `-p, --project <slug>` | Project slug (auto-detected from .temps/config.json or TEMPS_PROJECT) | - | No |
|
|
150
|
+
| `--json` | Output in JSON format | - | No |
|
|
151
|
+
|
|
152
|
+
### `monitors history`
|
|
153
|
+
|
|
154
|
+
Get monitor uptime history
|
|
155
|
+
|
|
156
|
+
**Options:**
|
|
157
|
+
|
|
158
|
+
| Flag | Description | Default | Required |
|
|
159
|
+
|------|-------------|---------|----------|
|
|
160
|
+
| `--id <id>` | Monitor ID | - | Yes |
|
|
161
|
+
| `--json` | Output in JSON format | - | No |
|
|
162
|
+
| `--days <days>` | Number of days to show | `7` | No |
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
<!-- Generated from skills/temps-cli/references/COMMANDS.md. Do not edit manually. -->
|
|
2
|
+
|
|
3
|
+
# `network-policy` command reference
|
|
4
|
+
|
|
5
|
+
Apply [the CLI runtime and safety contract](../cli-runtime.md) before executing a command. Runtime `--help` is authoritative.
|
|
6
|
+
|
|
7
|
+
## `network-policy` (alias: `netpol`)
|
|
8
|
+
|
|
9
|
+
Manage network policy for workloads: rules, egress/ingress profiles and the effective policy
|
|
10
|
+
|
|
11
|
+
**Subcommands:**
|
|
12
|
+
|
|
13
|
+
- `rules` - Manage network policy rules
|
|
14
|
+
- `effective` - Show the policy in force for a workload: profile, rules, inbound links and where it is enforced. <kind> is one of deployment, sandbox, service, function, job; <id> is the environment id for a deployment
|
|
15
|
+
- `profile` - Manage a workload's egress and ingress profile
|
|
16
|
+
|
|
17
|
+
### `network-policy rules`
|
|
18
|
+
|
|
19
|
+
Manage network policy rules
|
|
20
|
+
|
|
21
|
+
**Subcommands:**
|
|
22
|
+
|
|
23
|
+
- `list` (`ls`) - List network policy rules
|
|
24
|
+
- `show` - Show one network policy rule
|
|
25
|
+
- `create` (`add`) - Create a network policy rule
|
|
26
|
+
- `rm` (`remove`) - Delete a network policy rule (link rules are removed by unlinking instead)
|
|
27
|
+
|
|
28
|
+
#### `network-policy rules list` (alias: `ls`)
|
|
29
|
+
|
|
30
|
+
List network policy rules
|
|
31
|
+
|
|
32
|
+
**Options:**
|
|
33
|
+
|
|
34
|
+
| Flag | Description | Default | Required |
|
|
35
|
+
|------|-------------|---------|----------|
|
|
36
|
+
| `--subject-kind <kind>` | Only rules for this kind (deployment, sandbox, service, function, job) | - | No |
|
|
37
|
+
| `--subject-id <id>` | Only rules for this subject (environment id for deployments) | - | No |
|
|
38
|
+
| `--origin <origin>` | Only rules of this origin (link, operator, system) | - | No |
|
|
39
|
+
| `--page <n>` | Page number (default 1) | - | No |
|
|
40
|
+
| `--page-size <n>` | Rules per page (default 20, max 100) | - | No |
|
|
41
|
+
| `--json` | Output in JSON format | - | No |
|
|
42
|
+
|
|
43
|
+
#### `network-policy rules show`
|
|
44
|
+
|
|
45
|
+
Show one network policy rule
|
|
46
|
+
|
|
47
|
+
**Usage:** `network-policy rules show <ruleId> [options]`
|
|
48
|
+
|
|
49
|
+
**Options:**
|
|
50
|
+
|
|
51
|
+
| Flag | Description | Default | Required |
|
|
52
|
+
|------|-------------|---------|----------|
|
|
53
|
+
| `--json` | Output in JSON format | - | No |
|
|
54
|
+
|
|
55
|
+
#### `network-policy rules create` (alias: `add`)
|
|
56
|
+
|
|
57
|
+
Create a network policy rule
|
|
58
|
+
|
|
59
|
+
**Options:**
|
|
60
|
+
|
|
61
|
+
| Flag | Description | Default | Required |
|
|
62
|
+
|------|-------------|---------|----------|
|
|
63
|
+
| `--subject-kind <kind>` | Workload kind (deployment, sandbox, service, function, job) | - | Yes |
|
|
64
|
+
| `--subject-id <id>` | Environment id for a deployment; the row id for other kinds | - | Yes |
|
|
65
|
+
| `--direction <direction>` | Traffic direction (egress, ingress) | - | Yes |
|
|
66
|
+
| `--peer-kind <kind>` | Peer type: service (by id), workload (<kind>/<id>) or cidr. host rules are refused until a node runs the shared egress proxy | - | Yes |
|
|
67
|
+
| `--peer <ref>` | Peer reference: a service id, <kind>/<id>, or a CIDR | - | Yes |
|
|
68
|
+
| `--action <action>` | What to do with matching traffic (allow, deny) | - | Yes |
|
|
69
|
+
| `--protocol <protocol>` | tcp, udp, any (default tcp) | - | No |
|
|
70
|
+
| `--port <port>` | Port, or the start of a range. Omit for every port | - | No |
|
|
71
|
+
| `--port-end <port>` | End of the port range (needs --port) | - | No |
|
|
72
|
+
| `--description <text>` | Why this rule exists | - | No |
|
|
73
|
+
| `--json` | Output the created rule in JSON format | - | No |
|
|
74
|
+
|
|
75
|
+
#### `network-policy rules rm` (alias: `remove`)
|
|
76
|
+
|
|
77
|
+
Delete a network policy rule (link rules are removed by unlinking instead)
|
|
78
|
+
|
|
79
|
+
**Usage:** `network-policy rules rm <ruleId> [options]`
|
|
80
|
+
|
|
81
|
+
**Options:**
|
|
82
|
+
|
|
83
|
+
| Flag | Description | Default | Required |
|
|
84
|
+
|------|-------------|---------|----------|
|
|
85
|
+
| `-f, --force` | Skip confirmation | - | No |
|
|
86
|
+
| `-y, --yes` | Skip confirmation (alias for --force) | - | No |
|
|
87
|
+
|
|
88
|
+
### `network-policy effective`
|
|
89
|
+
|
|
90
|
+
Show the policy in force for a workload: profile, rules, inbound links and where it is enforced. <kind> is one of deployment, sandbox, service, function, job; <id> is the environment id for a deployment
|
|
91
|
+
|
|
92
|
+
**Usage:** `network-policy effective <kind> <id> [options]`
|
|
93
|
+
|
|
94
|
+
**Options:**
|
|
95
|
+
|
|
96
|
+
| Flag | Description | Default | Required |
|
|
97
|
+
|------|-------------|---------|----------|
|
|
98
|
+
| `--json` | Output in JSON format | - | No |
|
|
99
|
+
|
|
100
|
+
### `network-policy profile`
|
|
101
|
+
|
|
102
|
+
Manage a workload's egress and ingress profile
|
|
103
|
+
|
|
104
|
+
**Subcommands:**
|
|
105
|
+
|
|
106
|
+
- `set` - Set a workload's profile. Each direction is open, restricted, none; a direction left out is reset to the kind's default
|
|
107
|
+
|
|
108
|
+
#### `network-policy profile set`
|
|
109
|
+
|
|
110
|
+
Set a workload's profile. Each direction is open, restricted, none; a direction left out is reset to the kind's default
|
|
111
|
+
|
|
112
|
+
**Usage:** `network-policy profile set <kind> <id> [options]`
|
|
113
|
+
|
|
114
|
+
**Options:**
|
|
115
|
+
|
|
116
|
+
| Flag | Description | Default | Required |
|
|
117
|
+
|------|-------------|---------|----------|
|
|
118
|
+
| `--egress <profile>` | Outbound profile (open, restricted, none). Omit for the kind's default | - | No |
|
|
119
|
+
| `--ingress <profile>` | Inbound profile (open, restricted, none). Omit for the kind's default | - | No |
|
|
120
|
+
| `--json` | Output in JSON format | - | No |
|