@catena/cli 0.8.0 → 0.9.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
@@ -24,8 +24,31 @@ tools such as `jq`; pass `--json` to print compact single-line JSON instead.
24
24
  `unlink` revokes only the selected profile's server link and removes that
25
25
  profile's local credential.
26
26
 
27
- By default the CLI talks to `https://api.catena.com`. Set `CATENA_API_URL` when
28
- you need to target another Catena environment.
27
+ ## Hosts without a keychain
28
+
29
+ A container, a CI job, or a serverless runtime has no OS keychain and no
30
+ browser, so `link` cannot store a credential there. Set `CATENA_SECRET_KEY` to
31
+ the agent's P-256 secret key instead:
32
+
33
+ ```bash
34
+ CATENA_SECRET_KEY="<64 hex characters>" pnpm dlx @catena/cli whoami
35
+ ```
36
+
37
+ Create the key in the Catena console: open the agent, select the **Secret keys**
38
+ tab, then **Create secret key**. The console shows it one time. `@catena/sdk`
39
+ reads the same variable, so one key serves either client. Set the value with no
40
+ surrounding whitespace: the CLI trims it, and the SDK does not.
41
+
42
+ While the key is set, `profiles current` reports `source: "secret-key"` with no
43
+ `.profile` field, and `profiles list` adds `shadowedBy` and marks every profile
44
+ `current: false`.
45
+
46
+ On a machine that also holds a linked profile or sets `CATENA_PROFILE`, every
47
+ command prints one stderr line that names the key as the signing credential.
48
+ Stdout keeps only the command result.
49
+
50
+ The key outranks every profile tier, but an explicit `--profile` still wins.
51
+ `unlink` does not apply to it; revoke the key in the console instead.
29
52
 
30
53
  ## First-time setup
31
54
 
@@ -49,11 +72,10 @@ denied or times out, run the command again.
49
72
 
50
73
  Useful flags:
51
74
 
52
- | Flag | Description | Default |
53
- | ------------ | ------------------------------------------------------- | ------------------------------- |
54
- | `--bank-url` | Bank API URL. | `$CATENA_API_URL` or prod |
55
- | `--name` | Suggested name when creating an agent from the console. | none |
56
- | `--profile` | Credential profile name. | configured default or `default` |
75
+ | Flag | Description | Default |
76
+ | ----------- | ------------------------------------------------------- | ------------------------------- |
77
+ | `--name` | Suggested name when creating an agent from the console. | none |
78
+ | `--profile` | Credential profile name. | configured default or `default` |
57
79
 
58
80
  ## Commands
59
81
 
@@ -387,9 +409,10 @@ later completes, requires approval, or fails.
387
409
 
388
410
  ## Configuration
389
411
 
390
- | Variable | Purpose | Default |
391
- | ---------------- | ------------- | ------------------------ |
392
- | `CATENA_API_URL` | Bank API URL. | `https://api.catena.com` |
412
+ | Variable | Purpose | Default |
413
+ | ------------------- | ---------------------------------------------------- | ------- |
414
+ | `CATENA_SECRET_KEY` | Agent P-256 secret key (64 hex). Selects no profile. | none |
415
+ | `CATENA_PROFILE` | Credential profile name. | none |
393
416
 
394
417
  ## Discovering options
395
418