@diagonal-hq/cli 0.42.21 → 0.42.23
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 +2 -2
- package/dist/check-data.json +1 -1
- package/dist/{cli-assets-cli-B4ERYIRF.mjs → cli-assets-cli-KPJWOWLD.mjs} +1 -1
- package/dist/{cli-check-data-HCQKV3XS.mjs → cli-check-data-KCX5L24D.mjs} +3 -3
- package/dist/{cli-chunk-QDNFACNZ.mjs → cli-chunk-EHIY7LHO.mjs} +1 -0
- package/dist/{cli-chunk-IX4ZJ6J5.mjs → cli-chunk-FR2ZNG34.mjs} +20 -0
- package/dist/{cli-chunk-F7F5XTO6.mjs → cli-chunk-JOTUZWUE.mjs} +1 -1
- package/dist/{cli-chunk-PTWPTBJL.mjs → cli-chunk-ZCZKOXUH.mjs} +1 -1
- package/dist/{cli-workflows-DF7OE2WJ.mjs → cli-workflows-KJH52NZ5.mjs} +2 -2
- package/dist/cli.mjs +12 -11
- package/dist/system-authorization.generated.d.ts +1 -0
- package/dist/system-authorization.generated.js +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -57,11 +57,11 @@ Then the command runs `npm install`. It exits with 1 when a tarball directory ha
|
|
|
57
57
|
|
|
58
58
|
## Workspace API credentials
|
|
59
59
|
|
|
60
|
-
The API commands read `DIAGONAL_URL` and `DIAGONAL_API_KEY`. Workflow commands require `manage_workflows`. Asset commands require `manage_workspace_settings`. A System Administrator has both permissions. Keep API keys out of the repository.
|
|
60
|
+
The API commands read `DIAGONAL_URL` and `DIAGONAL_API_KEY` from the environment. When the environment sets neither, they read both from `.env` in the current folder, so a `.env` never pairs its URL with a key from the environment. The setup command of the Git Keys tab writes that `.env` with a CLI key, an API key that works only for these commands. Workflow commands require `manage_workflows`. Asset commands require `manage_workspace_settings`. A System Administrator has both permissions. Keep API keys out of the repository.
|
|
61
61
|
|
|
62
62
|
## Run a deployed workflow
|
|
63
63
|
|
|
64
|
-
`diagonal workflows`, `diagonal run`, and `diagonal logs` call the runtime API of a deployed workspace. Set two environment variables first:
|
|
64
|
+
`diagonal workflows`, `diagonal run`, and `diagonal logs` call the runtime API of a deployed workspace. Set two environment variables first, or put them in `.env` of the workspace root:
|
|
65
65
|
|
|
66
66
|
- `DIAGONAL_URL` is the workspace URL, for example `https://acme.diagonal.app`.
|
|
67
67
|
- `DIAGONAL_API_KEY` is an API key of an account with `manage_workflows`.
|