@studiometa/forge-cli 0.1.0 → 0.2.0

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 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 |
@@ -0,0 +1,3 @@
1
+ import type { AuditLogger } from "@studiometa/forge-core";
2
+ export declare function getCliAuditLogger(): AuditLogger;
3
+ //# sourceMappingURL=audit.d.ts.map
@@ -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"}