@getmagical/cli 0.1.3

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 ADDED
@@ -0,0 +1,46 @@
1
+ # @getmagical/cli
2
+
3
+ Magical CLI for the shared MCP operation surface.
4
+
5
+ ## Rules
6
+
7
+ - Shared operational commands come from `packages/mcp-registry`.
8
+ - Do not add shared commands directly in this package or in `services/mcp/operations`.
9
+
10
+ ## Usage
11
+
12
+ ```bash
13
+ mgcl auth login
14
+ mgcl org list
15
+ mgcl automations list --limit 10
16
+ mgcl automations update --id ... --input-json ...
17
+ mgcl automation-runs list --automation-id ...
18
+ mgcl automations run-draft --draft-automation-id ... --agent-id ... --idempotency-key ...
19
+ ```
20
+
21
+ ## Local Development
22
+
23
+ Run the CLI from source without building:
24
+
25
+ ```bash
26
+ npm run cli -- --help
27
+ ```
28
+
29
+ With local env injection:
30
+
31
+ ```bash
32
+ npm run cli:load-env -- auth login
33
+ ```
34
+
35
+ Against local `service-main` with explicit overrides:
36
+
37
+ ```bash
38
+ MAGICAL_API_URL=http://main.localhost:1355 \
39
+ WORKOS_CLIENT_ID=your_existing_workos_client_id \
40
+ MAGICAL_CLI_CONFIG_DIR=/tmp/magical-cli-test \
41
+ npm run cli -- auth login
42
+ ```
43
+
44
+ Production installs use the bundled WorkOS client ID by default. Set
45
+ `WORKOS_CLIENT_ID` only when you need to override it for local or staging
46
+ environments.
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node