@copado/agentia-cli 0.96.0-alpha.0 → 0.98.0-alpha.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@copado/agentia-cli",
3
3
  "description": "Command-line interface for Agentia",
4
- "version": "0.96.0-alpha.0",
4
+ "version": "0.98.0-alpha.0",
5
5
  "author": "Copado Solutions",
6
6
  "bin": {
7
7
  "agentia": "./bin/run.js"
@@ -4,7 +4,7 @@
4
4
 
5
5
  Use this reference for `agentia cicd environment ...`, `agentia cicd environment auth ...`, and `agentia cicd credential ...`.
6
6
 
7
- `auth set --cicd` stores the API key used by the CLI. `cicd credential` creates or updates Copado environment credential records. They are different credential types.
7
+ `auth set --cicd` stores the API key used by the CLI. `cicd credential` lists, creates, or updates Copado environment credential records. They are different credential types.
8
8
 
9
9
  ## Environment Commands
10
10
 
@@ -30,12 +30,14 @@ agentia cicd environment auth status <environment-id> --credentialid <credential
30
30
 
31
31
  | Command | Use For | Notes |
32
32
  | --- | --- | --- |
33
+ | `credential list` | Find credentials in one environment | Requires `--environmentid`; returns the environment's embedded credentials. OAuth signatures are never returned. |
33
34
  | `credential create` | Create a Copado environment credential | Requires `--environmentid` and `--name`; `--default` marks it default. |
34
35
  | `credential update ID` | Update a Copado environment credential | Requires `--environmentid`; use `--default` or `--no-default`. |
35
36
 
36
37
  Examples:
37
38
 
38
39
  ```sh
40
+ agentia cicd credential list --environmentid <environment-id> --json
39
41
  agentia cicd credential create --environmentid <environment-id> --name "CI User" --default --json
40
42
  agentia cicd credential update <credential-id> --environmentid <environment-id> --no-default --json
41
43
  ```
@@ -43,6 +45,7 @@ agentia cicd credential update <credential-id> --environmentid <environment-id>
43
45
  ## When To Use Which Credential
44
46
 
45
47
  - Use `agentia auth set --cicd` when the CLI cannot authenticate to the Copado CICD API.
48
+ - Use `agentia cicd credential list` to inspect an environment's credential records before changing authentication or defaults.
46
49
  - Use `agentia cicd credential create/update` when a Copado environment needs a Salesforce org credential record.
47
50
  - Use `agentia cicd environment auth web login` when a credential exists but needs browser-based OAuth authentication.
48
51
  - Use `agentia auth get --cicd --json` to inspect local CLI auth status without exposing the raw API key.