@studiometa/forge-cli 0.1.0 → 0.2.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 +16 -0
- package/dist/audit.d.ts +3 -0
- package/dist/audit.d.ts.map +1 -0
- package/dist/cli.js +842 -21
- package/dist/cli.js.map +1 -1
- package/dist/commands/backups/command.d.ts.map +1 -1
- package/dist/commands/certificates/command.d.ts.map +1 -1
- package/dist/commands/commands/command.d.ts.map +1 -1
- package/dist/commands/completion.d.ts +6 -0
- package/dist/commands/completion.d.ts.map +1 -0
- package/dist/commands/daemons/command.d.ts.map +1 -1
- package/dist/commands/database-users/command.d.ts.map +1 -1
- package/dist/commands/deployments/command.d.ts.map +1 -1
- package/dist/commands/deployments/handlers.d.ts.map +1 -1
- package/dist/commands/env/command.d.ts.map +1 -1
- package/dist/commands/monitors/command.d.ts.map +1 -1
- package/dist/commands/nginx/command.d.ts.map +1 -1
- package/dist/commands/nginx-templates/command.d.ts.map +1 -1
- package/dist/commands/recipes/command.d.ts.map +1 -1
- package/dist/commands/redirect-rules/command.d.ts.map +1 -1
- package/dist/commands/scheduled-jobs/command.d.ts.map +1 -1
- package/dist/commands/security-rules/command.d.ts.map +1 -1
- package/dist/commands/servers/command.d.ts.map +1 -1
- package/dist/utils/command-router.d.ts +5 -0
- package/dist/utils/command-router.d.ts.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -63,6 +63,7 @@ forge-cli <command> [subcommand] [options]
|
|
|
63
63
|
| `redirect-rules` | | List, get, create, delete redirect rules for a site |
|
|
64
64
|
| `recipes` | | List, get, run recipes |
|
|
65
65
|
| `user` | | Get the authenticated user's profile |
|
|
66
|
+
| `completion` | | Install shell completion (bash, zsh, fish) |
|
|
66
67
|
|
|
67
68
|
Run `forge-cli <command> --help` for detailed usage of each command.
|
|
68
69
|
|
|
@@ -132,6 +133,8 @@ forge-cli deployments list --server <id> --site <id> # List deployments
|
|
|
132
133
|
forge-cli deployments deploy --server <id> --site <id> # Trigger a deployment
|
|
133
134
|
```
|
|
134
135
|
|
|
136
|
+
The `deploy` command waits for deployment to complete, showing live progress. On completion it prints the deployment log and elapsed time.
|
|
137
|
+
|
|
135
138
|
### `databases` (`db`) — Manage databases
|
|
136
139
|
|
|
137
140
|
```bash
|
|
@@ -191,6 +194,19 @@ forge-cli recipes get <id> # Get recipe det
|
|
|
191
194
|
forge-cli recipes run <id> --servers 123,456 # Run recipe on servers
|
|
192
195
|
```
|
|
193
196
|
|
|
197
|
+
### `completion` — Shell completion
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
forge-cli completion bash # Install Bash completion
|
|
201
|
+
forge-cli completion zsh # Install Zsh completion
|
|
202
|
+
forge-cli completion fish # Install Fish completion
|
|
203
|
+
forge-cli completion bash --print # Print script without installing
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
## Audit Logging
|
|
207
|
+
|
|
208
|
+
All write operations (`deploy`, `create`, `delete`, `reboot`, `restart`, `update`, `run`, `activate`) are automatically logged to `~/.config/forge-tools/audit.log`. Override the path with the `FORGE_AUDIT_LOG` environment variable. Sensitive fields (tokens, passwords) are redacted.
|
|
209
|
+
|
|
194
210
|
## Global Options
|
|
195
211
|
|
|
196
212
|
| Option | Alias | Description |
|
package/dist/audit.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../src/audit.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAQ1D,wBAAgB,iBAAiB,IAAI,WAAW,CAG/C"}
|