@studiometa/forge-cli 0.3.0 → 0.4.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 +18 -15
- package/dist/cli.js +421 -152
- package/dist/cli.js.map +1 -1
- package/dist/commands/backups/command.d.ts.map +1 -1
- package/dist/commands/backups/handlers.d.ts +1 -0
- package/dist/commands/backups/handlers.d.ts.map +1 -1
- package/dist/commands/backups/help.d.ts.map +1 -1
- package/dist/commands/certificates/command.d.ts.map +1 -1
- package/dist/commands/certificates/handlers.d.ts +0 -1
- package/dist/commands/certificates/handlers.d.ts.map +1 -1
- package/dist/commands/certificates/help.d.ts.map +1 -1
- package/dist/commands/commands/handlers.d.ts.map +1 -1
- package/dist/commands/completion.d.ts.map +1 -1
- package/dist/commands/config.d.ts.map +1 -1
- package/dist/commands/daemons/command.d.ts.map +1 -1
- package/dist/commands/daemons/handlers.d.ts +1 -0
- package/dist/commands/daemons/handlers.d.ts.map +1 -1
- package/dist/commands/daemons/help.d.ts.map +1 -1
- package/dist/commands/database-users/command.d.ts.map +1 -1
- package/dist/commands/database-users/handlers.d.ts +1 -0
- package/dist/commands/database-users/handlers.d.ts.map +1 -1
- package/dist/commands/database-users/help.d.ts.map +1 -1
- package/dist/commands/deployments/handlers.d.ts.map +1 -1
- package/dist/commands/deployments/help.d.ts.map +1 -1
- package/dist/commands/monitors/handlers.d.ts.map +1 -1
- package/dist/commands/recipes/command.d.ts.map +1 -1
- package/dist/commands/recipes/handlers.d.ts +1 -0
- package/dist/commands/recipes/handlers.d.ts.map +1 -1
- package/dist/commands/recipes/help.d.ts.map +1 -1
- package/dist/commands/redirect-rules/handlers.d.ts.map +1 -1
- package/dist/commands/scheduled-jobs/handlers.d.ts.map +1 -1
- package/dist/commands/security-rules/command.d.ts.map +1 -1
- package/dist/commands/security-rules/handlers.d.ts +1 -0
- package/dist/commands/security-rules/handlers.d.ts.map +1 -1
- package/dist/commands/security-rules/help.d.ts.map +1 -1
- package/dist/commands/sites/command.d.ts.map +1 -1
- package/dist/commands/sites/handlers.d.ts +1 -0
- package/dist/commands/sites/handlers.d.ts.map +1 -1
- package/dist/config.d.ts +1 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/context.d.ts.map +1 -1
- package/dist/{error-handler-Byuujxh1.js → error-handler-ByMitiOr.js} +21 -10
- package/dist/error-handler-ByMitiOr.js.map +1 -0
- package/dist/error-handler.d.ts.map +1 -1
- package/dist/errors.d.ts.map +1 -1
- package/dist/index.js +1 -1
- package/dist/output.d.ts.map +1 -1
- package/dist/types.d.ts +1 -0
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/args.d.ts +1 -0
- package/dist/utils/args.d.ts.map +1 -1
- package/dist/utils/command-router.d.ts.map +1 -1
- package/dist/utils/resolve.d.ts.map +1 -1
- package/package.json +3 -3
- package/dist/error-handler-Byuujxh1.js.map +0 -1
package/README.md
CHANGED
|
@@ -18,12 +18,13 @@ npx @studiometa/forge-cli --help
|
|
|
18
18
|
|
|
19
19
|
Credentials can be provided in three ways (highest priority first):
|
|
20
20
|
|
|
21
|
-
1. **CLI
|
|
22
|
-
2. **Environment
|
|
21
|
+
1. **CLI flags**: `--token <token>`, `--org <slug>`
|
|
22
|
+
2. **Environment variables**: `FORGE_API_TOKEN`, `FORGE_ORG`
|
|
23
23
|
3. **Config file** (XDG-compliant):
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
forge config set YOUR_FORGE_TOKEN
|
|
26
|
+
forge config set apiToken YOUR_FORGE_TOKEN
|
|
27
|
+
forge config set organizationSlug your-org-slug
|
|
27
28
|
forge config get
|
|
28
29
|
forge config delete
|
|
29
30
|
```
|
|
@@ -106,9 +107,10 @@ forge sites list --server 123 --format table
|
|
|
106
107
|
### `config` — Manage configuration
|
|
107
108
|
|
|
108
109
|
```bash
|
|
109
|
-
forge config set <token>
|
|
110
|
-
forge config
|
|
111
|
-
forge config
|
|
110
|
+
forge config set apiToken <token> # Save API token
|
|
111
|
+
forge config set organizationSlug <slug> # Save organization slug
|
|
112
|
+
forge config get # Show current config (masked)
|
|
113
|
+
forge config delete # Delete all stored config
|
|
112
114
|
```
|
|
113
115
|
|
|
114
116
|
### `servers` (`s`) — Manage servers
|
|
@@ -209,15 +211,16 @@ All write operations (`deploy`, `create`, `delete`, `reboot`, `restart`, `update
|
|
|
209
211
|
|
|
210
212
|
## Global Options
|
|
211
213
|
|
|
212
|
-
| Option | Alias | Description
|
|
213
|
-
| ----------------- | ----- |
|
|
214
|
-
| `--token <token>` | | Forge API token (overrides config and env)
|
|
215
|
-
| `--
|
|
216
|
-
| `--
|
|
217
|
-
| `--
|
|
218
|
-
| `--
|
|
219
|
-
| `--
|
|
220
|
-
| `--
|
|
214
|
+
| Option | Alias | Description |
|
|
215
|
+
| ----------------- | ----- | ------------------------------------------------ |
|
|
216
|
+
| `--token <token>` | | Forge API token (overrides config and env) |
|
|
217
|
+
| `--org <slug>` | | Organization slug (overrides config and env) |
|
|
218
|
+
| `--server <id>` | | Server ID or name (auto-resolved if non-numeric) |
|
|
219
|
+
| `--site <id>` | | Site ID or domain (auto-resolved if non-numeric) |
|
|
220
|
+
| `--format <fmt>` | `-f` | Output format: `json`, `human`, `table` |
|
|
221
|
+
| `--no-color` | | Disable colored output |
|
|
222
|
+
| `--help` | `-h` | Show help |
|
|
223
|
+
| `--version` | `-v` | Show version |
|
|
221
224
|
|
|
222
225
|
## AI Agent Integration
|
|
223
226
|
|