@copado/agentia-cli 0.10.0-alpha.0 → 0.13.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.
Files changed (42) hide show
  1. package/README.md +194 -51
  2. package/dist/commands/environment/list.d.ts +6 -0
  3. package/dist/commands/environment/list.js +7 -2
  4. package/dist/commands/environment/list.js.map +1 -1
  5. package/dist/commands/project/list.d.ts +10 -0
  6. package/dist/commands/project/list.js +31 -0
  7. package/dist/commands/project/list.js.map +1 -0
  8. package/dist/commands/promotion/get.d.ts +10 -0
  9. package/dist/commands/promotion/get.js +31 -0
  10. package/dist/commands/promotion/get.js.map +1 -0
  11. package/dist/commands/promotion/list.d.ts +30 -0
  12. package/dist/commands/promotion/list.js +48 -0
  13. package/dist/commands/promotion/list.js.map +1 -0
  14. package/dist/commands/user/get.d.ts +10 -0
  15. package/dist/commands/user/get.js +32 -0
  16. package/dist/commands/user/get.js.map +1 -0
  17. package/dist/lib/environment-flags.d.ts +11 -1
  18. package/dist/lib/environment-flags.js +29 -0
  19. package/dist/lib/environment-flags.js.map +1 -1
  20. package/dist/lib/environment-types.d.ts +8 -0
  21. package/dist/lib/environment-types.js +18 -0
  22. package/dist/lib/environment-types.js.map +1 -1
  23. package/dist/lib/mcp/tools.d.ts +30 -0
  24. package/dist/lib/mcp/tools.js +110 -7
  25. package/dist/lib/mcp/tools.js.map +1 -1
  26. package/dist/lib/project-flags.d.ts +8 -0
  27. package/dist/lib/project-flags.js +10 -0
  28. package/dist/lib/project-flags.js.map +1 -0
  29. package/dist/lib/project-types.d.ts +19 -0
  30. package/dist/lib/project-types.js +27 -0
  31. package/dist/lib/project-types.js.map +1 -0
  32. package/dist/lib/promotion-flags.d.ts +21 -0
  33. package/dist/lib/promotion-flags.js +77 -0
  34. package/dist/lib/promotion-flags.js.map +1 -0
  35. package/dist/lib/promotion-types.d.ts +188 -0
  36. package/dist/lib/promotion-types.js +145 -0
  37. package/dist/lib/promotion-types.js.map +1 -0
  38. package/dist/lib/user-types.d.ts +9 -0
  39. package/dist/lib/user-types.js +21 -0
  40. package/dist/lib/user-types.js.map +1 -0
  41. package/oclif.manifest.json +314 -26
  42. package/package.json +4 -1
package/README.md CHANGED
@@ -1,35 +1,36 @@
1
- @copado/agentia-cli
2
- =================
1
+ # @copado/agentia-cli
3
2
 
4
3
  Command-line interface for Agentia headless Copado workflows (auth, environments, jobs, pipelines, metadata, and local MCP).
5
4
 
6
-
7
5
  [![oclif](https://img.shields.io/badge/cli-oclif-brightgreen.svg)](https://oclif.io)
8
6
  [![Version](https://img.shields.io/npm/v/%40copado%2Fagentia-cli.svg)](https://www.npmjs.com/package/@copado/agentia-cli)
9
7
  [![Downloads/week](https://img.shields.io/npm/dw/%40copado%2Fagentia-cli.svg)](https://www.npmjs.com/package/@copado/agentia-cli)
10
8
 
11
-
12
9
  <!-- toc -->
10
+ * [@copado/agentia-cli](#copadoagentia-cli)
13
11
  * [Usage](#usage)
14
12
  * [Integration Testing](#integration-testing)
15
13
  * [Local MCP Server](#local-mcp-server)
16
14
  * [License](#license)
17
15
  * [Commands](#commands)
18
16
  <!-- tocstop -->
17
+
19
18
  # Usage
19
+
20
20
  <!-- usage -->
21
21
  ```sh-session
22
22
  $ npm install -g @copado/agentia-cli
23
23
  $ agentia COMMAND
24
24
  running command...
25
25
  $ agentia (--version)
26
- @copado/agentia-cli/0.10.0-alpha.0 linux-x64 node-v22.23.2
26
+ @copado/agentia-cli/0.13.0-alpha.0 linux-x64 node-v22.23.2
27
27
  $ agentia --help [COMMAND]
28
28
  USAGE
29
29
  $ agentia COMMAND
30
30
  ...
31
31
  ```
32
32
  <!-- usagestop -->
33
+
33
34
  # Integration Testing
34
35
 
35
36
  Live metadata integration tests are opt-in. They use the CICD API key and endpoint already stored with `agentia auth set`, plus local Test14 IDs from `.env.integration`.
@@ -117,20 +118,23 @@ $ npm run build
117
118
 
118
119
  Tools are JSON-safe and return structured results. Sensitive fields are redacted.
119
120
 
120
- | Topic | Tools |
121
- | --- | --- |
122
- | Environment | `agentia_environment_list`, `agentia_environment_get`, `agentia_environment_create`, `agentia_environment_update` |
123
- | Job | `agentia_job_list`, `agentia_job_get`, `agentia_job_run`, `agentia_job_resume`, `agentia_job_kill`, `agentia_job_pause` |
124
- | Pipeline | `agentia_pipeline_list`, `agentia_pipeline_get`, `agentia_pipeline_connection_list` |
125
- | Project | `agentia_project_default_get`, `agentia_project_default_set`, `agentia_project_default_unset` |
126
- | Metadata | `agentia_metadata_list`, `agentia_metadata_content_get`, `agentia_metadata_content_compare`, `agentia_metadata_index_compare`, `agentia_metadata_dependency_list` |
121
+ | Topic | Tools |
122
+ | ----------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------- |
123
+ | Environment | `agentia_environment_list`, `agentia_environment_get`, `agentia_environment_create`, `agentia_environment_update` |
124
+ | Job | `agentia_job_list`, `agentia_job_get`, `agentia_job_run`, `agentia_job_resume`, `agentia_job_kill`, `agentia_job_pause` |
125
+ | Pipeline | `agentia_pipeline_list`, `agentia_pipeline_get`, `agentia_pipeline_connection_list` |
126
+ | Project | `agentia_project_list`, `agentia_project_default_get`, `agentia_project_default_set`, `agentia_project_default_unset` |
127
+ | User | `agentia_user_get` |
128
+ | Metadata | `agentia_metadata_list`, `agentia_metadata_content_get`, `agentia_metadata_content_compare`, `agentia_metadata_index_compare`, `agentia_metadata_dependency_list` |
127
129
 
128
130
  ### Notes for common tools
129
131
 
130
132
  - Pipeline and job tools require `userId` and `organizationId` for the gateway `x-user-id` and `x-organization-id` headers.
131
133
  - Job list accepts optional filters such as `status`, `name`, `type`, `parent`, `context`, and `limit`.
132
134
  - Metadata tools require the same gateway identifiers as the CLI flags, for example `pipelineId`, `sourceOrgId`, and `sourceCredentialId` where applicable.
135
+ - Project list accepts optional `mine` to restrict results to projects owned by or related to the current user.
133
136
  - Project default tools read and write local or global defaults managed by `agentia project default *`.
137
+ - User get defaults `id` to `me` for the authenticated user.
134
138
  - Environment create/update tools mirror the corresponding CLI commands and only send fields you provide.
135
139
 
136
140
  ## Verify locally
@@ -148,6 +152,7 @@ Live smoke check through Cursor: call `agentia_environment_list` or `agentia_pro
148
152
  Agentia CLI is distributed under the Copado End User License Agreement. See [LICENSE.md](LICENSE.md) for the full license terms.
149
153
 
150
154
  # Commands
155
+
151
156
  <!-- commands -->
152
157
  * [`agentia auth get`](#agentia-auth-get)
153
158
  * [`agentia auth set`](#agentia-auth-set)
@@ -189,10 +194,14 @@ Agentia CLI is distributed under the Copado End User License Agreement. See [LIC
189
194
  * [`agentia project default get`](#agentia-project-default-get)
190
195
  * [`agentia project default set`](#agentia-project-default-set)
191
196
  * [`agentia project default unset`](#agentia-project-default-unset)
197
+ * [`agentia project list`](#agentia-project-list)
192
198
  * [`agentia promotion conflict get ID`](#agentia-promotion-conflict-get-id)
193
199
  * [`agentia promotion conflict list`](#agentia-promotion-conflict-list)
194
200
  * [`agentia promotion conflict resolve ID`](#agentia-promotion-conflict-resolve-id)
195
201
  * [`agentia promotion conflict unresolve ID`](#agentia-promotion-conflict-unresolve-id)
202
+ * [`agentia promotion get ID`](#agentia-promotion-get-id)
203
+ * [`agentia promotion list`](#agentia-promotion-list)
204
+ * [`agentia user get`](#agentia-user-get)
196
205
  * [`agentia work create`](#agentia-work-create)
197
206
  * [`agentia work delete ID`](#agentia-work-delete-id)
198
207
  * [`agentia work get ID`](#agentia-work-get-id)
@@ -229,7 +238,7 @@ EXAMPLES
229
238
  $ agentia auth get --json
230
239
  ```
231
240
 
232
- _See code: [src/commands/auth/get.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/auth/get.ts)_
241
+ _See code: [src/commands/auth/get.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/auth/get.ts)_
233
242
 
234
243
  ## `agentia auth set`
235
244
 
@@ -267,7 +276,7 @@ EXAMPLES
267
276
  $ agentia auth set --cicd <copado-api-key> --region na --json
268
277
  ```
269
278
 
270
- _See code: [src/commands/auth/set.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/auth/set.ts)_
279
+ _See code: [src/commands/auth/set.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/auth/set.ts)_
271
280
 
272
281
  ## `agentia environment auth status ID`
273
282
 
@@ -297,7 +306,7 @@ EXAMPLES
297
306
  $ agentia environment auth status <environment-id> --json
298
307
  ```
299
308
 
300
- _See code: [src/commands/environment/auth/status.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/environment/auth/status.ts)_
309
+ _See code: [src/commands/environment/auth/status.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/environment/auth/status.ts)_
301
310
 
302
311
  ## `agentia environment auth web login ID`
303
312
 
@@ -331,7 +340,7 @@ EXAMPLES
331
340
  $ agentia environment auth web login <environment-id> --json
332
341
  ```
333
342
 
334
- _See code: [src/commands/environment/auth/web/login.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/environment/auth/web/login.ts)_
343
+ _See code: [src/commands/environment/auth/web/login.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/environment/auth/web/login.ts)_
335
344
 
336
345
  ## `agentia environment create NAME`
337
346
 
@@ -376,7 +385,7 @@ EXAMPLES
376
385
  $ agentia environment create Dev --json
377
386
  ```
378
387
 
379
- _See code: [src/commands/environment/create.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/environment/create.ts)_
388
+ _See code: [src/commands/environment/create.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/environment/create.ts)_
380
389
 
381
390
  ## `agentia environment get ID`
382
391
 
@@ -401,7 +410,7 @@ EXAMPLES
401
410
  $ agentia environment get a0SKC000000CmZ2AU --json
402
411
  ```
403
412
 
404
- _See code: [src/commands/environment/get.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/environment/get.ts)_
413
+ _See code: [src/commands/environment/get.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/environment/get.ts)_
405
414
 
406
415
  ## `agentia environment list`
407
416
 
@@ -409,7 +418,15 @@ List Copado environments
409
418
 
410
419
  ```
411
420
  USAGE
412
- $ agentia environment list [--json]
421
+ $ agentia environment list [--json] [--name <value>] [--org-id <value>] [--platform <value>] [--type
422
+ Production/Developer|Sandbox|Scratch Org|Custom Domain]
423
+
424
+ FLAGS
425
+ --name=<value> Filter by name
426
+ --org-id=<value> Filter by Salesforce org ID
427
+ --platform=<value> Filter by platform
428
+ --type=<option> Environment type
429
+ <options: Production/Developer|Sandbox|Scratch Org|Custom Domain>
413
430
 
414
431
  GLOBAL FLAGS
415
432
  --json Format output as json.
@@ -420,10 +437,12 @@ DESCRIPTION
420
437
  EXAMPLES
421
438
  $ agentia environment list
422
439
 
440
+ $ agentia environment list --name Dev --org-id 00D000000000000 --platform SFDX --type Sandbox
441
+
423
442
  $ agentia environment list --json
424
443
  ```
425
444
 
426
- _See code: [src/commands/environment/list.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/environment/list.ts)_
445
+ _See code: [src/commands/environment/list.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/environment/list.ts)_
427
446
 
428
447
  ## `agentia environment update ID`
429
448
 
@@ -469,7 +488,7 @@ EXAMPLES
469
488
  $ agentia environment update a0SKC000000CmZ2AU --name UAT --json
470
489
  ```
471
490
 
472
- _See code: [src/commands/environment/update.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/environment/update.ts)_
491
+ _See code: [src/commands/environment/update.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/environment/update.ts)_
473
492
 
474
493
  ## `agentia help [COMMAND]`
475
494
 
@@ -518,7 +537,7 @@ EXAMPLES
518
537
  $ agentia job get <job-id> --user-id <id> --organization-id <id> --json
519
538
  ```
520
539
 
521
- _See code: [src/commands/job/get.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/job/get.ts)_
540
+ _See code: [src/commands/job/get.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/job/get.ts)_
522
541
 
523
542
  ## `agentia job kill ID`
524
543
 
@@ -547,7 +566,7 @@ EXAMPLES
547
566
  $ agentia job kill <job-id> --user-id <id> --organization-id <id> --json
548
567
  ```
549
568
 
550
- _See code: [src/commands/job/kill.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/job/kill.ts)_
569
+ _See code: [src/commands/job/kill.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/job/kill.ts)_
551
570
 
552
571
  ## `agentia job list`
553
572
 
@@ -585,7 +604,7 @@ EXAMPLES
585
604
  $ agentia job list --user-id <id> --organization-id <id> --json
586
605
  ```
587
606
 
588
- _See code: [src/commands/job/list.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/job/list.ts)_
607
+ _See code: [src/commands/job/list.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/job/list.ts)_
589
608
 
590
609
  ## `agentia job pause ID`
591
610
 
@@ -614,7 +633,7 @@ EXAMPLES
614
633
  $ agentia job pause <job-id> --user-id <id> --organization-id <id> --json
615
634
  ```
616
635
 
617
- _See code: [src/commands/job/pause.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/job/pause.ts)_
636
+ _See code: [src/commands/job/pause.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/job/pause.ts)_
618
637
 
619
638
  ## `agentia job resume ID`
620
639
 
@@ -643,7 +662,7 @@ EXAMPLES
643
662
  $ agentia job resume <job-id> --user-id <id> --organization-id <id> --json
644
663
  ```
645
664
 
646
- _See code: [src/commands/job/resume.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/job/resume.ts)_
665
+ _See code: [src/commands/job/resume.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/job/resume.ts)_
647
666
 
648
667
  ## `agentia job run ID`
649
668
 
@@ -673,7 +692,7 @@ EXAMPLES
673
692
  $ agentia job run <job-id> --user-id <id> --organization-id <id> --restart --json
674
693
  ```
675
694
 
676
- _See code: [src/commands/job/run.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/job/run.ts)_
695
+ _See code: [src/commands/job/run.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/job/run.ts)_
677
696
 
678
697
  ## `agentia mcp start`
679
698
 
@@ -692,7 +711,7 @@ EXAMPLES
692
711
  $ agentia mcp start # long-running stdio MCP server for Cursor and other clients
693
712
  ```
694
713
 
695
- _See code: [src/commands/mcp/start.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/mcp/start.ts)_
714
+ _See code: [src/commands/mcp/start.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/mcp/start.ts)_
696
715
 
697
716
  ## `agentia metadata content compare`
698
717
 
@@ -735,7 +754,7 @@ EXAMPLES
735
754
  $ agentia metadata content compare --metadata-type ApexClass --api-name MyClass --json
736
755
  ```
737
756
 
738
- _See code: [src/commands/metadata/content/compare.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/metadata/content/compare.ts)_
757
+ _See code: [src/commands/metadata/content/compare.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/metadata/content/compare.ts)_
739
758
 
740
759
  ## `agentia metadata content get`
741
760
 
@@ -776,7 +795,7 @@ EXAMPLES
776
795
  $ agentia metadata content get --file requests.json --json
777
796
  ```
778
797
 
779
- _See code: [src/commands/metadata/content/get.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/metadata/content/get.ts)_
798
+ _See code: [src/commands/metadata/content/get.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/metadata/content/get.ts)_
780
799
 
781
800
  ## `agentia metadata dependency list`
782
801
 
@@ -824,7 +843,7 @@ EXAMPLES
824
843
  $ agentia metadata dependency list --from-changes --base-ref origin/main --retrieve-mode all --pipeline-id <id> --source-org-id <id> --source-credential-id <id>
825
844
  ```
826
845
 
827
- _See code: [src/commands/metadata/dependency/list.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/metadata/dependency/list.ts)_
846
+ _See code: [src/commands/metadata/dependency/list.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/metadata/dependency/list.ts)_
828
847
 
829
848
  ## `agentia metadata index compare`
830
849
 
@@ -858,7 +877,7 @@ EXAMPLES
858
877
  $ agentia metadata index compare --comparison-mode MIX --json
859
878
  ```
860
879
 
861
- _See code: [src/commands/metadata/index/compare.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/metadata/index/compare.ts)_
880
+ _See code: [src/commands/metadata/index/compare.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/metadata/index/compare.ts)_
862
881
 
863
882
  ## `agentia metadata list`
864
883
 
@@ -906,7 +925,7 @@ EXAMPLES
906
925
  $ agentia metadata list --source NewAndChanged --find-managed-packages --json
907
926
  ```
908
927
 
909
- _See code: [src/commands/metadata/list.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/metadata/list.ts)_
928
+ _See code: [src/commands/metadata/list.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/metadata/list.ts)_
910
929
 
911
930
  ## `agentia metadata refresh deleted`
912
931
 
@@ -938,7 +957,7 @@ EXAMPLES
938
957
  $ agentia metadata refresh deleted --env <environment-id> --user-id <id> --organization-id <id> --module-type vlocity --json
939
958
  ```
940
959
 
941
- _See code: [src/commands/metadata/refresh/deleted.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/metadata/refresh/deleted.ts)_
960
+ _See code: [src/commands/metadata/refresh/deleted.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/metadata/refresh/deleted.ts)_
942
961
 
943
962
  ## `agentia metadata refresh run`
944
963
 
@@ -981,7 +1000,7 @@ EXAMPLES
981
1000
  $ agentia metadata refresh run --env <environment-id> --user-id <id> --organization-id <id> --all --json
982
1001
  ```
983
1002
 
984
- _See code: [src/commands/metadata/refresh/run.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/metadata/refresh/run.ts)_
1003
+ _See code: [src/commands/metadata/refresh/run.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/metadata/refresh/run.ts)_
985
1004
 
986
1005
  ## `agentia metadata refresh status`
987
1006
 
@@ -1013,7 +1032,7 @@ EXAMPLES
1013
1032
  $ agentia metadata refresh status --job-id <event-id> --user-id <id> --organization-id <id> --json
1014
1033
  ```
1015
1034
 
1016
- _See code: [src/commands/metadata/refresh/status.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/metadata/refresh/status.ts)_
1035
+ _See code: [src/commands/metadata/refresh/status.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/metadata/refresh/status.ts)_
1017
1036
 
1018
1037
  ## `agentia pipeline connection list`
1019
1038
 
@@ -1040,7 +1059,7 @@ EXAMPLES
1040
1059
  $ agentia pipeline connection list --pipeline-id <pipeline-id> --user-id <id> --organization-id <id> --json
1041
1060
  ```
1042
1061
 
1043
- _See code: [src/commands/pipeline/connection/list.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/pipeline/connection/list.ts)_
1062
+ _See code: [src/commands/pipeline/connection/list.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/pipeline/connection/list.ts)_
1044
1063
 
1045
1064
  ## `agentia pipeline get ID`
1046
1065
 
@@ -1069,7 +1088,7 @@ EXAMPLES
1069
1088
  $ agentia pipeline get <pipeline-id> --user-id <id> --organization-id <id> --json
1070
1089
  ```
1071
1090
 
1072
- _See code: [src/commands/pipeline/get.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/pipeline/get.ts)_
1091
+ _See code: [src/commands/pipeline/get.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/pipeline/get.ts)_
1073
1092
 
1074
1093
  ## `agentia pipeline list`
1075
1094
 
@@ -1095,7 +1114,7 @@ EXAMPLES
1095
1114
  $ agentia pipeline list --user-id <id> --organization-id <id> --json
1096
1115
  ```
1097
1116
 
1098
- _See code: [src/commands/pipeline/list.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/pipeline/list.ts)_
1117
+ _See code: [src/commands/pipeline/list.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/pipeline/list.ts)_
1099
1118
 
1100
1119
  ## `agentia plugins`
1101
1120
 
@@ -1422,7 +1441,7 @@ EXAMPLES
1422
1441
  $ agentia project default get --json
1423
1442
  ```
1424
1443
 
1425
- _See code: [src/commands/project/default/get.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/project/default/get.ts)_
1444
+ _See code: [src/commands/project/default/get.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/project/default/get.ts)_
1426
1445
 
1427
1446
  ## `agentia project default set`
1428
1447
 
@@ -1459,7 +1478,7 @@ EXAMPLES
1459
1478
  $ agentia project default set --project my-project --json
1460
1479
  ```
1461
1480
 
1462
- _See code: [src/commands/project/default/set.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/project/default/set.ts)_
1481
+ _See code: [src/commands/project/default/set.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/project/default/set.ts)_
1463
1482
 
1464
1483
  ## `agentia project default unset`
1465
1484
 
@@ -1496,7 +1515,34 @@ EXAMPLES
1496
1515
  $ agentia project default unset --project --json
1497
1516
  ```
1498
1517
 
1499
- _See code: [src/commands/project/default/unset.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/project/default/unset.ts)_
1518
+ _See code: [src/commands/project/default/unset.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/project/default/unset.ts)_
1519
+
1520
+ ## `agentia project list`
1521
+
1522
+ List Copado projects
1523
+
1524
+ ```
1525
+ USAGE
1526
+ $ agentia project list [--json] [--mine]
1527
+
1528
+ FLAGS
1529
+ --mine List only projects owned by or related to the current user
1530
+
1531
+ GLOBAL FLAGS
1532
+ --json Format output as json.
1533
+
1534
+ DESCRIPTION
1535
+ List Copado projects
1536
+
1537
+ EXAMPLES
1538
+ $ agentia project list
1539
+
1540
+ $ agentia project list --mine
1541
+
1542
+ $ agentia project list --mine --json
1543
+ ```
1544
+
1545
+ _See code: [src/commands/project/list.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/project/list.ts)_
1500
1546
 
1501
1547
  ## `agentia promotion conflict get ID`
1502
1548
 
@@ -1527,7 +1573,7 @@ EXAMPLES
1527
1573
  $ agentia promotion conflict get <conflict-id> -p <promotion-id> --json
1528
1574
  ```
1529
1575
 
1530
- _See code: [src/commands/promotion/conflict/get.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/promotion/conflict/get.ts)_
1576
+ _See code: [src/commands/promotion/conflict/get.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/promotion/conflict/get.ts)_
1531
1577
 
1532
1578
  ## `agentia promotion conflict list`
1533
1579
 
@@ -1552,7 +1598,7 @@ EXAMPLES
1552
1598
  $ agentia promotion conflict list -p <promotion-id> --json
1553
1599
  ```
1554
1600
 
1555
- _See code: [src/commands/promotion/conflict/list.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/promotion/conflict/list.ts)_
1601
+ _See code: [src/commands/promotion/conflict/list.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/promotion/conflict/list.ts)_
1556
1602
 
1557
1603
  ## `agentia promotion conflict resolve ID`
1558
1604
 
@@ -1585,7 +1631,7 @@ EXAMPLES
1585
1631
  $ agentia promotion conflict resolve <conflict-id> -p <promotion-id> --mode auto --json
1586
1632
  ```
1587
1633
 
1588
- _See code: [src/commands/promotion/conflict/resolve.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/promotion/conflict/resolve.ts)_
1634
+ _See code: [src/commands/promotion/conflict/resolve.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/promotion/conflict/resolve.ts)_
1589
1635
 
1590
1636
  ## `agentia promotion conflict unresolve ID`
1591
1637
 
@@ -1613,7 +1659,104 @@ EXAMPLES
1613
1659
  $ agentia promotion conflict unresolve <conflict-id> -p <promotion-id> --json
1614
1660
  ```
1615
1661
 
1616
- _See code: [src/commands/promotion/conflict/unresolve.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/promotion/conflict/unresolve.ts)_
1662
+ _See code: [src/commands/promotion/conflict/unresolve.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/promotion/conflict/unresolve.ts)_
1663
+
1664
+ ## `agentia promotion get ID`
1665
+
1666
+ Get a Copado promotion by ID
1667
+
1668
+ ```
1669
+ USAGE
1670
+ $ agentia promotion get ID [--json]
1671
+
1672
+ ARGUMENTS
1673
+ ID Copado promotion ID
1674
+
1675
+ GLOBAL FLAGS
1676
+ --json Format output as json.
1677
+
1678
+ DESCRIPTION
1679
+ Get a Copado promotion by ID
1680
+
1681
+ EXAMPLES
1682
+ $ agentia promotion get <promotion-id>
1683
+
1684
+ $ agentia promotion get <promotion-id> --json
1685
+ ```
1686
+
1687
+ _See code: [src/commands/promotion/get.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/promotion/get.ts)_
1688
+
1689
+ ## `agentia promotion list`
1690
+
1691
+ List Copado promotions
1692
+
1693
+ ```
1694
+ USAGE
1695
+ $ agentia promotion list [--json] [--created-by-id <value>] [--created-by-name <value>]
1696
+ [--destination-environment-id <value>] [--destination-environment-name <value>] [--is-back-promotion] [--limit
1697
+ <value>] [--name <value>] [--pipeline-id <value>] [--pipeline-name <value>] [--project-id <value>] [--project-name
1698
+ <value>] [--source-environment-id <value>] [--source-environment-name <value>] [--status <value>]
1699
+
1700
+ FLAGS
1701
+ --created-by-id=<value> Filter by creator ID
1702
+ --created-by-name=<value> Filter by creator name
1703
+ --destination-environment-id=<value> Filter by destination environment ID
1704
+ --destination-environment-name=<value> Filter by destination environment name
1705
+ --[no-]is-back-promotion Filter by back promotion
1706
+ --limit=<value> Maximum number of promotions to return (1-200)
1707
+ --name=<value> Filter by name
1708
+ --pipeline-id=<value> Filter by pipeline ID
1709
+ --pipeline-name=<value> Filter by pipeline name
1710
+ --project-id=<value> Filter by project ID
1711
+ --project-name=<value> Filter by project name
1712
+ --source-environment-id=<value> Filter by source environment ID
1713
+ --source-environment-name=<value> Filter by source environment name
1714
+ --status=<value> Filter by status
1715
+
1716
+ GLOBAL FLAGS
1717
+ --json Format output as json.
1718
+
1719
+ DESCRIPTION
1720
+ List Copado promotions
1721
+
1722
+ EXAMPLES
1723
+ $ agentia promotion list
1724
+
1725
+ $ agentia promotion list --status Completed --project-name "My Project" --limit 50
1726
+
1727
+ $ agentia promotion list --json
1728
+ ```
1729
+
1730
+ _See code: [src/commands/promotion/list.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/promotion/list.ts)_
1731
+
1732
+ ## `agentia user get`
1733
+
1734
+ Get a Copado user by ID (defaults to the authenticated user)
1735
+
1736
+ ```
1737
+ USAGE
1738
+ $ agentia user get [--json] [--id <value>]
1739
+
1740
+ FLAGS
1741
+ --id=<value> [default: me] User ID, or "me" for the authenticated user
1742
+
1743
+ GLOBAL FLAGS
1744
+ --json Format output as json.
1745
+
1746
+ DESCRIPTION
1747
+ Get a Copado user by ID (defaults to the authenticated user)
1748
+
1749
+ EXAMPLES
1750
+ $ agentia user get
1751
+
1752
+ $ agentia user get --id me
1753
+
1754
+ $ agentia user get --id 005000000000000
1755
+
1756
+ $ agentia user get --json
1757
+ ```
1758
+
1759
+ _See code: [src/commands/user/get.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/user/get.ts)_
1617
1760
 
1618
1761
  ## `agentia work create`
1619
1762
 
@@ -1668,7 +1811,7 @@ EXAMPLES
1668
1811
  $ agentia work create --title "My story" --json
1669
1812
  ```
1670
1813
 
1671
- _See code: [src/commands/work/create.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/work/create.ts)_
1814
+ _See code: [src/commands/work/create.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/work/create.ts)_
1672
1815
 
1673
1816
  ## `agentia work delete ID`
1674
1817
 
@@ -1693,7 +1836,7 @@ EXAMPLES
1693
1836
  $ agentia work delete a0SKC000000CmZ2AU --json
1694
1837
  ```
1695
1838
 
1696
- _See code: [src/commands/work/delete.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/work/delete.ts)_
1839
+ _See code: [src/commands/work/delete.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/work/delete.ts)_
1697
1840
 
1698
1841
  ## `agentia work get ID`
1699
1842
 
@@ -1718,7 +1861,7 @@ EXAMPLES
1718
1861
  $ agentia work get a0SKC000000CmZ2AU --json
1719
1862
  ```
1720
1863
 
1721
- _See code: [src/commands/work/get.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/work/get.ts)_
1864
+ _See code: [src/commands/work/get.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/work/get.ts)_
1722
1865
 
1723
1866
  ## `agentia work list`
1724
1867
 
@@ -1761,7 +1904,7 @@ EXAMPLES
1761
1904
  $ agentia work list --json
1762
1905
  ```
1763
1906
 
1764
- _See code: [src/commands/work/list.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/work/list.ts)_
1907
+ _See code: [src/commands/work/list.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/work/list.ts)_
1765
1908
 
1766
1909
  ## `agentia work update ID`
1767
1910
 
@@ -1819,5 +1962,5 @@ EXAMPLES
1819
1962
  $ agentia work update a0SKC000000CmZ2AU --status "In Progress" --json
1820
1963
  ```
1821
1964
 
1822
- _See code: [src/commands/work/update.ts](https://github.com/Copado/agentia-cli/blob/v0.10.0-alpha.0/src/commands/work/update.ts)_
1965
+ _See code: [src/commands/work/update.ts](https://github.com/Copado/agentia-cli/blob/v0.13.0-alpha.0/src/commands/work/update.ts)_
1823
1966
  <!-- commandsstop -->
@@ -13,5 +13,11 @@ export declare function formatEnvironmentTable(environments: Environment[]): str
13
13
  export default class EnvironmentList extends AgentiaCommand {
14
14
  static description: string;
15
15
  static examples: string[];
16
+ static flags: {
17
+ readonly name: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
18
+ readonly 'org-id': import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
19
+ readonly platform: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
20
+ readonly type: import("@oclif/core/interfaces").OptionFlag<string | undefined, import("@oclif/core/interfaces").CustomOptions>;
21
+ };
16
22
  run(): Promise<Environment[]>;
17
23
  }
@@ -1,5 +1,7 @@
1
1
  import { AgentiaCommand } from '../../lib/agentia-command.js';
2
2
  import { CicdGateway } from '../../lib/cicd-gateway.js';
3
+ import { buildEnvironmentListFilters, environmentListFilterFlags } from '../../lib/environment-flags.js';
4
+ import { environmentsListEndpoint } from '../../lib/environment-types.js';
3
5
  import { cellValue, table } from '../../lib/format.js';
4
6
  export function normalizeEnvironments(response) {
5
7
  if (Array.isArray(response.data)) {
@@ -43,12 +45,15 @@ export default class EnvironmentList extends AgentiaCommand {
43
45
  static description = 'List Copado environments';
44
46
  static examples = [
45
47
  '<%= config.bin %> <%= command.id %>',
48
+ '<%= config.bin %> <%= command.id %> --name Dev --org-id 00D000000000000 --platform SFDX --type Sandbox',
46
49
  '<%= config.bin %> <%= command.id %> --json',
47
50
  ];
51
+ static flags = environmentListFilterFlags;
48
52
  async run() {
49
- await this.parse(EnvironmentList);
53
+ const { flags } = await this.parse(EnvironmentList);
54
+ const filters = buildEnvironmentListFilters(flags);
50
55
  const response = await this.withSpinner('Fetching environments', () => CicdGateway.call({
51
- endpoint: '/corpus/environments',
56
+ endpoint: environmentsListEndpoint(filters),
52
57
  method: 'GET',
53
58
  }));
54
59
  const environments = normalizeEnvironments(response);
@@ -1 +1 @@
1
- {"version":3,"file":"list.js","sourceRoot":"","sources":["../../../src/commands/environment/list.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,8BAA8B,CAAA;AAC3D,OAAO,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAA;AAErD,OAAO,EAAC,SAAS,EAAE,KAAK,EAAC,MAAM,qBAAqB,CAAA;AAIpD,MAAM,UAAU,qBAAqB,CAAC,QAA8B;IAClE,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAC,EAAE,CAAC;QACjC,OAAO,QAAQ,CAAC,IAAI,CAAA;IACtB,CAAC;IAED,OAAO,EAAE,CAAA;AACX,CAAC;AAED,MAAM,CAAC,MAAM,+BAA+B,GAAG,GAAG,CAAA;AAElD,MAAM,UAAU,iCAAiC,CAAC,YAA2B;IAK3E,MAAM,KAAK,GAAG,YAAY,CAAC,MAAM,CAAA;IACjC,MAAM,SAAS,GAAG,KAAK,GAAG,+BAA+B,CAAA;IAEzD,OAAO;QACL,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC,YAAY,CAAC,KAAK,CAAC,CAAC,EAAE,+BAA+B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AM;YACR,CAAC;YAED,MAAM,EAAC,SAAS,EAAE,KAAK,EAAE,SAAS,EAAC,GAAG,iCAAiC,CAAC,YAAY,CAAC,CAAA;YAErF,IAAI,SAAS,EAAE,CAAC;gBACd,IAAI,CAAC,GAAG,CAAC,uCAAuC,CAAC,KAAK,CAAC,CAAC,CAAA;YAC1D,CAAC;YAED,IAAI,CAAC,GAAG,CAAC,sBAAsB,CAAC,SAAS,CAAC,CAAC,CAAA;QAC7C,CAAC,CAAC,CAAA;QAEF,OAAO,YAAY,CAAA;IACrB,CAAC"}
@@ -0,0 +1,10 @@
1
+ import { AgentiaCommand } from '../../lib/agentia-command.js';
2
+ import { type Project } from '../../lib/project-types.js';
3
+ export default class ProjectList extends AgentiaCommand {
4
+ static description: string;
5
+ static examples: string[];
6
+ static flags: {
7
+ readonly mine: import("@oclif/core/interfaces").BooleanFlag<boolean>;
8
+ };
9
+ run(): Promise<Project[]>;
10
+ }