@getmagical/cli 0.1.4 → 0.1.6

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
@@ -12,6 +12,7 @@ Magical CLI for the shared MCP operation surface.
12
12
  ```bash
13
13
  mgcl update
14
14
  mgcl auth login
15
+ mgcl settings env base-url http://main.localhost:1355
15
16
  mgcl org list
16
17
  mgcl automations list --limit 10
17
18
  mgcl automations update --id ... --input-json ...
@@ -27,33 +28,32 @@ Run the CLI from source without building:
27
28
  npm run cli -- --help
28
29
  ```
29
30
 
30
- With local env injection:
31
+ Production installs use the bundled WorkOS client ID by default. To persist a
32
+ local or staging API target, set:
31
33
 
32
34
  ```bash
33
- npm run cli:load-env -- auth login
35
+ mgcl settings env base-url http://main.localhost:1355
36
+ mgcl auth login
34
37
  ```
35
38
 
36
- Against local `service-main` with explicit overrides:
39
+ When a persisted base URL override is present, `mgcl auth login` uses the
40
+ bundled staging/dev WorkOS client ID automatically. Changing or resetting the
41
+ override clears saved auth so you can log into the correct environment again.
42
+
43
+ To remove the override and return to defaults:
37
44
 
38
45
  ```bash
39
- MAGICAL_API_URL=http://main.localhost:1355 \
40
- WORKOS_CLIENT_ID=your_existing_workos_client_id \
41
- MAGICAL_CLI_CONFIG_DIR=/tmp/magical-cli-test \
42
- npm run cli -- auth login
46
+ mgcl settings env base-url --reset
43
47
  ```
44
48
 
45
- Production installs use the bundled WorkOS client ID by default. Set
46
- `WORKOS_CLIENT_ID` only when you need to override it for local or staging
47
- environments.
48
-
49
49
  ## Install Script
50
50
 
51
- Host [install-mgcl.sh](/Users/parker/.codex/worktrees/9649/magical/scripts/install-mgcl.sh)
52
- at your preferred URL, then users can install with a single command:
51
+ Host [install-mgcl.sh](../../scripts/install-mgcl.sh)
52
+ in the S3 bucket for CLI install, then users can install with a single command:
53
53
 
54
54
  ```bash
55
- curl -fsSL https://your-host.example/install-mgcl.sh | bash
56
- curl -fsSL https://your-host.example/install-mgcl.sh | bash -s -- --uninstall
55
+ curl -fsSL https://cli.getmagical.io/install.sh | bash
56
+ curl -fsSL https://cli.getmagical.io/install.sh | bash -s -- --uninstall
57
57
  ```
58
58
 
59
59
  The installer uses a user-local npm prefix, so it does not require `sudo`.
@@ -71,5 +71,5 @@ mgcl --update
71
71
  To remove the managed install:
72
72
 
73
73
  ```bash
74
- curl -fsSL https://your-host.example/install-mgcl.sh | bash -s -- --uninstall
74
+ curl -fsSL https://cli.getmagical.io/install.sh | bash -s -- --uninstall
75
75
  ```