@tryarcanist/cli 0.1.159 → 0.1.160
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 +15 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -45,7 +45,7 @@ printf "arc_..." | arcanist auth login --token-stdin
|
|
|
45
45
|
Auth and API URL precedence:
|
|
46
46
|
|
|
47
47
|
```text
|
|
48
|
-
flag > environment > ~/.arcanist/config.json
|
|
48
|
+
flag > environment > project .arcanist-cli.json > ~/.arcanist/config.json
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
Supported environment variables:
|
|
@@ -59,6 +59,20 @@ export ARCANIST_API_URL=https://api.tryarcanist.com
|
|
|
59
59
|
|
|
60
60
|
Non-local API URLs must use HTTPS and must not embed credentials.
|
|
61
61
|
|
|
62
|
+
### Project-local targeting
|
|
63
|
+
|
|
64
|
+
`arcanist auth login` writes only the global config at `~/.arcanist/config.json`.
|
|
65
|
+
In a git repo, the CLI also looks for `.arcanist-cli.json` from the current directory up to the git root.
|
|
66
|
+
The nearest file wins, files above the git root are ignored, and discovery is skipped outside git repos.
|
|
67
|
+
|
|
68
|
+
Project files are accepted only for loopback local development targets.
|
|
69
|
+
They must contain both `apiUrl` and `token`, and `apiUrl` must be `localhost`, `127.0.0.1`, or `::1`.
|
|
70
|
+
Malformed, incomplete, or non-loopback project files fail closed instead of falling through to the global config.
|
|
71
|
+
When a project file is active, env or flag overrides must provide both API URL and token together.
|
|
72
|
+
|
|
73
|
+
Arcanist development worktrees created with `bash scripts/worktree-setup.sh` create `.arcanist-cli.json` automatically.
|
|
74
|
+
From inside those worktrees, use `scripts/arc-prod <command>` to run one command against production using the existing global config.
|
|
75
|
+
|
|
62
76
|
## Global flags
|
|
63
77
|
|
|
64
78
|
```bash
|