postman-cli 1.68.0 → 1.69.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/man/postman.1 +370 -10
- package/package.json +6 -6
package/man/postman.1
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
.TH POSTMAN 1 "2026-10-01" "v1.
|
|
1
|
+
.TH POSTMAN 1 "2026-10-01" "v1.69.0" "Postman CLI Manual"
|
|
2
2
|
.SH NAME
|
|
3
3
|
postman \- Command\-line companion utility for Postman
|
|
4
4
|
.SH SYNOPSIS
|
|
@@ -300,10 +300,13 @@ Generate artifacts from a collection.
|
|
|
300
300
|
Sync artifacts generated from a collection.
|
|
301
301
|
.TP
|
|
302
302
|
.B collection request
|
|
303
|
-
Add, update, or remove requests in a local v3 collection.
|
|
303
|
+
Add, get, update, or remove requests in a local v3 collection.
|
|
304
304
|
.TP
|
|
305
305
|
.B collection folder
|
|
306
|
-
Add, update, or remove folders in a local v3 collection.
|
|
306
|
+
Add, get, update, or remove folders in a local v3 collection.
|
|
307
|
+
.TP
|
|
308
|
+
.B collection example
|
|
309
|
+
Add, update, remove, get, or list examples (saved responses) under a request.
|
|
307
310
|
.TP
|
|
308
311
|
.B collection import
|
|
309
312
|
Import a cURL or HAR source into a v3 collection (local, or cloud with \-\-workspace).
|
|
@@ -510,7 +513,7 @@ Examples:
|
|
|
510
513
|
|
|
511
514
|
|
|
512
515
|
.SS "collection request"
|
|
513
|
-
Add, update, or remove requests in a local v3 collection.
|
|
516
|
+
Add, get, update, or remove requests in a local v3 collection.
|
|
514
517
|
|
|
515
518
|
.B Usage:
|
|
516
519
|
[options] [command]
|
|
@@ -520,6 +523,9 @@ Add, update, or remove requests in a local v3 collection.
|
|
|
520
523
|
.B collection request add
|
|
521
524
|
Add an empty request to a local v3 collection (set its details later with `update`).
|
|
522
525
|
.TP
|
|
526
|
+
.B collection request get
|
|
527
|
+
Show a request (any type) in a v3 collection: its own fields, with examples and messages as references.
|
|
528
|
+
.TP
|
|
523
529
|
.B collection request update
|
|
524
530
|
Update a request in a v3 collection (only the fields you pass).
|
|
525
531
|
.TP
|
|
@@ -560,6 +566,38 @@ Examples:
|
|
|
560
566
|
|
|
561
567
|
|
|
562
568
|
|
|
569
|
+
.SS "collection request get"
|
|
570
|
+
Show a request (any type) in a v3 collection: its own fields, with examples and messages as references.
|
|
571
|
+
|
|
572
|
+
.B Usage:
|
|
573
|
+
[options] <request>
|
|
574
|
+
|
|
575
|
+
.B Options:
|
|
576
|
+
.TP
|
|
577
|
+
.B \-\-collection <id|name>
|
|
578
|
+
Target collection: name, directory, id, cloud id, or path. Required locally; optional in cloud mode (id only).
|
|
579
|
+
.TP
|
|
580
|
+
.B \-\-folder <id|name|path>
|
|
581
|
+
Folder to scope a bare\-name request selector, e.g. "Users/Admin" (local mode only).
|
|
582
|
+
.TP
|
|
583
|
+
.B \-w, \-\-workspace <id>
|
|
584
|
+
Target a Postman cloud workspace by id (cloud mode).
|
|
585
|
+
.TP
|
|
586
|
+
.B \-\-json
|
|
587
|
+
JSON output.
|
|
588
|
+
|
|
589
|
+
.TP Examples:
|
|
590
|
+
|
|
591
|
+
Prints the request's own fields in the V3 collection format. Its examples (and, for WebSocket / Socket.IO / MQTT, its messages) are listed as references ({ id, $kind } in cloud mode; { name, $kind } plus id when stored, locally). "parent" is added: the containing folder, or the collection for a top\-level request. A linked copy of a reusable request carries "uses" (its source request id) and a source carries "usedBy" (its linked copies); the source may live in another collection, so fetch it by id alone. Select the request by the <request> selector: local — a name or "Folder/Name" path (or \-\-folder to scope a bare name); cloud (\-\-workspace) — a request id, with \-\-collection (an id) optional and no \-\-folder. Read\-only: locally it reads v3 collections only and rejects a v2.1 .json instead of converting it.
|
|
592
|
+
|
|
593
|
+
Examples:
|
|
594
|
+
postman collection request get "Get user" \-\-collection "My API"
|
|
595
|
+
postman collection request get "Users/Get user" \-\-collection "My API" \-\-json
|
|
596
|
+
postman collection request get <requestId> \-w <workspaceId>
|
|
597
|
+
postman collection request get <requestId> \-\-collection <collectionId> \-w <workspaceId> \-\-json
|
|
598
|
+
|
|
599
|
+
|
|
600
|
+
|
|
563
601
|
.SS "collection request update"
|
|
564
602
|
Update a request in a v3 collection (only the fields you pass).
|
|
565
603
|
|
|
@@ -665,7 +703,7 @@ Examples:
|
|
|
665
703
|
|
|
666
704
|
|
|
667
705
|
.SS "collection folder"
|
|
668
|
-
Add, update, or remove folders in a local v3 collection.
|
|
706
|
+
Add, get, update, or remove folders in a local v3 collection.
|
|
669
707
|
|
|
670
708
|
.B Usage:
|
|
671
709
|
[options] [command]
|
|
@@ -675,6 +713,9 @@ Add, update, or remove folders in a local v3 collection.
|
|
|
675
713
|
.B collection folder add
|
|
676
714
|
Add an empty folder to a local v3 collection (set its details later with `update`).
|
|
677
715
|
.TP
|
|
716
|
+
.B collection folder get
|
|
717
|
+
Show a folder in a v3 collection: its own fields and its direct children as references.
|
|
718
|
+
.TP
|
|
678
719
|
.B collection folder update
|
|
679
720
|
Update a folder in a v3 collection (only the fields you pass).
|
|
680
721
|
.TP
|
|
@@ -712,6 +753,38 @@ Examples:
|
|
|
712
753
|
|
|
713
754
|
|
|
714
755
|
|
|
756
|
+
.SS "collection folder get"
|
|
757
|
+
Show a folder in a v3 collection: its own fields and its direct children as references.
|
|
758
|
+
|
|
759
|
+
.B Usage:
|
|
760
|
+
[options] <folder>
|
|
761
|
+
|
|
762
|
+
.B Options:
|
|
763
|
+
.TP
|
|
764
|
+
.B \-\-collection <id|name>
|
|
765
|
+
Target collection: name, directory, id, cloud id, or path. Required locally; optional in cloud mode (id only).
|
|
766
|
+
.TP
|
|
767
|
+
.B \-\-folder <id|name|path>
|
|
768
|
+
Parent folder to scope a bare\-name selector, e.g. "Users" (local mode only).
|
|
769
|
+
.TP
|
|
770
|
+
.B \-w, \-\-workspace <id>
|
|
771
|
+
Target a Postman cloud workspace by id (cloud mode).
|
|
772
|
+
.TP
|
|
773
|
+
.B \-\-json
|
|
774
|
+
JSON output.
|
|
775
|
+
|
|
776
|
+
.TP Examples:
|
|
777
|
+
|
|
778
|
+
Prints the folder's own fields in the V3 collection format. Its direct children (requests and sub\-folders) are listed under "items" as references ({ id, $kind } in cloud mode; { name, $kind } plus id when stored, locally) — run `get` on a child to go further. "parent" is added: the containing folder, or the collection for a top\-level folder. Select the folder by the <folder> selector: local — a name or "Parent/Name" path (or \-\-folder to scope a bare name); cloud (\-\-workspace) — a folder id, with \-\-collection (an id) optional and no \-\-folder. Read\-only: locally it reads v3 collections only and rejects a v2.1 .json instead of converting it.
|
|
779
|
+
|
|
780
|
+
Examples:
|
|
781
|
+
postman collection folder get Users \-\-collection "My API"
|
|
782
|
+
postman collection folder get "Users/Admin" \-\-collection "My API" \-\-json
|
|
783
|
+
postman collection folder get <folderId> \-w <workspaceId>
|
|
784
|
+
postman collection folder get <folderId> \-\-collection <collectionId> \-w <workspaceId> \-\-json
|
|
785
|
+
|
|
786
|
+
|
|
787
|
+
|
|
715
788
|
.SS "collection folder update"
|
|
716
789
|
Update a folder in a v3 collection (only the fields you pass).
|
|
717
790
|
|
|
@@ -790,6 +863,209 @@ Examples:
|
|
|
790
863
|
|
|
791
864
|
|
|
792
865
|
|
|
866
|
+
.SS "collection example"
|
|
867
|
+
Add, update, remove, get, or list examples (saved responses) under a request.
|
|
868
|
+
|
|
869
|
+
.B Usage:
|
|
870
|
+
[options] [command]
|
|
871
|
+
|
|
872
|
+
.B Subcommands:
|
|
873
|
+
.TP
|
|
874
|
+
.B collection example add
|
|
875
|
+
Add an empty example under a request (defaults to 200 OK; set details later with `update`).
|
|
876
|
+
.TP
|
|
877
|
+
.B collection example update
|
|
878
|
+
Update an example (only the fields you pass).
|
|
879
|
+
.TP
|
|
880
|
+
.B collection example rm
|
|
881
|
+
Remove an example from a request.
|
|
882
|
+
.TP
|
|
883
|
+
.B collection example get
|
|
884
|
+
Get a single example.
|
|
885
|
+
.TP
|
|
886
|
+
.B collection example list
|
|
887
|
+
List examples under a request.
|
|
888
|
+
|
|
889
|
+
.SS "collection example add"
|
|
890
|
+
Add an empty example under a request (defaults to 200 OK; set details later with `update`).
|
|
891
|
+
|
|
892
|
+
.B Usage:
|
|
893
|
+
[options] [example\-name]
|
|
894
|
+
|
|
895
|
+
.B Options:
|
|
896
|
+
.TP
|
|
897
|
+
.B \-\-collection <id|name>
|
|
898
|
+
Target collection: name, directory, id, cloud id, or path. Required.
|
|
899
|
+
.TP
|
|
900
|
+
.B \-\-request <id|name|path>
|
|
901
|
+
Parent request (required). Local: name/path/id; cloud: id.
|
|
902
|
+
.TP
|
|
903
|
+
.B \-\-folder <id|name|path>
|
|
904
|
+
Folder to scope the request selector, e.g. "Users/Admin".
|
|
905
|
+
.TP
|
|
906
|
+
.B \-\-type <type>
|
|
907
|
+
Example type: http (default). (default: http)
|
|
908
|
+
.TP
|
|
909
|
+
.B \-w, \-\-workspace <id>
|
|
910
|
+
Target a Postman cloud workspace by id (cloud mode).
|
|
911
|
+
.TP
|
|
912
|
+
.B \-\-json
|
|
913
|
+
JSON output.
|
|
914
|
+
|
|
915
|
+
.TP Examples:
|
|
916
|
+
|
|
917
|
+
Creates a stub example (name + type + default 200/OK/{} response). Configure it with `collection example update`. \-\-request is required.
|
|
918
|
+
|
|
919
|
+
Examples:
|
|
920
|
+
postman collection example add "Success" \-\-collection "My API" \-\-request "Get user"
|
|
921
|
+
postman collection example add \-\-collection "My API" \-\-request Ping
|
|
922
|
+
postman collection example add "Ok" \-\-collection <cid> \-\-request <rid> \-w <workspaceId>
|
|
923
|
+
|
|
924
|
+
|
|
925
|
+
|
|
926
|
+
.SS "collection example update"
|
|
927
|
+
Update an example (only the fields you pass).
|
|
928
|
+
|
|
929
|
+
.B Usage:
|
|
930
|
+
[options] <example>
|
|
931
|
+
|
|
932
|
+
.B Options:
|
|
933
|
+
.TP
|
|
934
|
+
.B \-\-collection <id|name>
|
|
935
|
+
Target collection. Required.
|
|
936
|
+
.TP
|
|
937
|
+
.B \-\-request <id|name|path>
|
|
938
|
+
Parent request (optional; disambiguates local names / \-\-copy\-request).
|
|
939
|
+
.TP
|
|
940
|
+
.B \-\-folder <id|name|path>
|
|
941
|
+
Folder to scope the request selector.
|
|
942
|
+
.TP
|
|
943
|
+
.B \-\-status\-code <code>
|
|
944
|
+
HTTP status code.
|
|
945
|
+
.TP
|
|
946
|
+
.B \-\-status\-text <text>
|
|
947
|
+
HTTP status text.
|
|
948
|
+
.TP
|
|
949
|
+
.B \-d, \-\-body <body>
|
|
950
|
+
Response body as contentType:content.
|
|
951
|
+
.TP
|
|
952
|
+
.B \-\-headers <key:value>
|
|
953
|
+
Replace response headers. Repeatable. (default: )
|
|
954
|
+
.TP
|
|
955
|
+
.B \-\-description <text>
|
|
956
|
+
Example description.
|
|
957
|
+
.TP
|
|
958
|
+
.B \-\-rename <name>
|
|
959
|
+
Rename the example.
|
|
960
|
+
.TP
|
|
961
|
+
.B \-\-url <url>
|
|
962
|
+
Example request snapshot URL.
|
|
963
|
+
.TP
|
|
964
|
+
.B \-\-method <method>
|
|
965
|
+
Example request snapshot method.
|
|
966
|
+
.TP
|
|
967
|
+
.B \-\-request\-headers <key:value>
|
|
968
|
+
Replace request\-snapshot headers. Repeatable. (default: )
|
|
969
|
+
.TP
|
|
970
|
+
.B \-\-request\-param <key:value>
|
|
971
|
+
Replace request\-snapshot query params. Repeatable. (default: )
|
|
972
|
+
.TP
|
|
973
|
+
.B \-\-request\-body <body>
|
|
974
|
+
Example request snapshot body.
|
|
975
|
+
.TP
|
|
976
|
+
.B \-\-copy\-request
|
|
977
|
+
Refresh example.request from the parent request.
|
|
978
|
+
.TP
|
|
979
|
+
.B \-\-clear\-request
|
|
980
|
+
Remove the example.request snapshot.
|
|
981
|
+
.TP
|
|
982
|
+
.B \-w, \-\-workspace <id>
|
|
983
|
+
Target a Postman cloud workspace by id (cloud mode).
|
|
984
|
+
.TP
|
|
985
|
+
.B \-\-type <type>
|
|
986
|
+
Example type for cloud mode: http. (default: http)
|
|
987
|
+
.TP
|
|
988
|
+
.B \-\-json
|
|
989
|
+
JSON output.
|
|
990
|
+
|
|
991
|
+
.SS "collection example rm"
|
|
992
|
+
Remove an example from a request.
|
|
993
|
+
|
|
994
|
+
.B Usage:
|
|
995
|
+
[options] <example>
|
|
996
|
+
|
|
997
|
+
.B Options:
|
|
998
|
+
.TP
|
|
999
|
+
.B \-\-collection <id|name>
|
|
1000
|
+
Target collection. Required.
|
|
1001
|
+
.TP
|
|
1002
|
+
.B \-\-request <id|name|path>
|
|
1003
|
+
Parent request (optional; disambiguates local names).
|
|
1004
|
+
.TP
|
|
1005
|
+
.B \-\-folder <id|name|path>
|
|
1006
|
+
Folder to scope the request selector.
|
|
1007
|
+
.TP
|
|
1008
|
+
.B \-w, \-\-workspace <id>
|
|
1009
|
+
Target a Postman cloud workspace by id (cloud mode).
|
|
1010
|
+
.TP
|
|
1011
|
+
.B \-\-type <type>
|
|
1012
|
+
Example type for cloud mode: http. (default: http)
|
|
1013
|
+
.TP
|
|
1014
|
+
.B \-\-json
|
|
1015
|
+
JSON output.
|
|
1016
|
+
|
|
1017
|
+
.SS "collection example get"
|
|
1018
|
+
Get a single example.
|
|
1019
|
+
|
|
1020
|
+
.B Usage:
|
|
1021
|
+
[options] <example>
|
|
1022
|
+
|
|
1023
|
+
.B Options:
|
|
1024
|
+
.TP
|
|
1025
|
+
.B \-\-collection <id|name>
|
|
1026
|
+
Target collection. Required.
|
|
1027
|
+
.TP
|
|
1028
|
+
.B \-\-request <id|name|path>
|
|
1029
|
+
Parent request (optional; disambiguates local names).
|
|
1030
|
+
.TP
|
|
1031
|
+
.B \-\-folder <id|name|path>
|
|
1032
|
+
Folder to scope the request selector.
|
|
1033
|
+
.TP
|
|
1034
|
+
.B \-w, \-\-workspace <id>
|
|
1035
|
+
Target a Postman cloud workspace by id (cloud mode).
|
|
1036
|
+
.TP
|
|
1037
|
+
.B \-\-type <type>
|
|
1038
|
+
Example type for cloud mode: http. (default: http)
|
|
1039
|
+
.TP
|
|
1040
|
+
.B \-\-json
|
|
1041
|
+
JSON output.
|
|
1042
|
+
|
|
1043
|
+
.SS "collection example list"
|
|
1044
|
+
List examples under a request.
|
|
1045
|
+
|
|
1046
|
+
.B Usage:
|
|
1047
|
+
[options]
|
|
1048
|
+
|
|
1049
|
+
.B Options:
|
|
1050
|
+
.TP
|
|
1051
|
+
.B \-\-collection <id|name>
|
|
1052
|
+
Target collection. Required.
|
|
1053
|
+
.TP
|
|
1054
|
+
.B \-\-request <id|name|path>
|
|
1055
|
+
Parent request (required).
|
|
1056
|
+
.TP
|
|
1057
|
+
.B \-\-folder <id|name|path>
|
|
1058
|
+
Folder to scope the request selector.
|
|
1059
|
+
.TP
|
|
1060
|
+
.B \-w, \-\-workspace <id>
|
|
1061
|
+
Target a Postman cloud workspace by id (cloud mode).
|
|
1062
|
+
.TP
|
|
1063
|
+
.B \-\-type <type>
|
|
1064
|
+
Example type for cloud mode: http. (default: http)
|
|
1065
|
+
.TP
|
|
1066
|
+
.B \-\-json
|
|
1067
|
+
JSON output.
|
|
1068
|
+
|
|
793
1069
|
.SS "collection import"
|
|
794
1070
|
Import a cURL or HAR source into a v3 collection (local, or cloud with \-\-workspace).
|
|
795
1071
|
|
|
@@ -1166,7 +1442,7 @@ Read and update environment variables.
|
|
|
1166
1442
|
.B Subcommands:
|
|
1167
1443
|
.TP
|
|
1168
1444
|
.B environment var set
|
|
1169
|
-
Set one variable in an environment.
|
|
1445
|
+
Set one variable in an environment, or link it to a shared\-vault secret.
|
|
1170
1446
|
.TP
|
|
1171
1447
|
.B environment var get
|
|
1172
1448
|
Read one variable value from an environment.
|
|
@@ -1175,16 +1451,25 @@ Read one variable value from an environment.
|
|
|
1175
1451
|
Remove one variable from an environment.
|
|
1176
1452
|
|
|
1177
1453
|
.SS "environment var set"
|
|
1178
|
-
Set one variable in an environment.
|
|
1454
|
+
Set one variable in an environment, or link it to a shared\-vault secret.
|
|
1179
1455
|
|
|
1180
1456
|
.B Usage:
|
|
1181
|
-
[options] <key>
|
|
1457
|
+
[options] <key> [value]
|
|
1182
1458
|
|
|
1183
1459
|
.B Options:
|
|
1184
1460
|
.TP
|
|
1185
1461
|
.B \-e, \-\-environment <environment>
|
|
1186
1462
|
Cloud Environment ID or local environment file path.
|
|
1187
1463
|
.TP
|
|
1464
|
+
.B \-\-secret\-id <id>
|
|
1465
|
+
Link this variable to a shared\-vault secret instead of an inline value (from `secret create`'s output).
|
|
1466
|
+
.TP
|
|
1467
|
+
.B \-\-vault\-id <id>
|
|
1468
|
+
Vault id for \-\-secret\-id (auto\-resolved from \-\-workspace when omitted).
|
|
1469
|
+
.TP
|
|
1470
|
+
.B \-w, \-\-workspace <workspaceId>
|
|
1471
|
+
Workspace to resolve \-\-vault\-id from when \-\-secret\-id is given without \-\-vault\-id (falls back to .postman/resources.yaml).
|
|
1472
|
+
.TP
|
|
1188
1473
|
.B \-\-verbose
|
|
1189
1474
|
Verbose output
|
|
1190
1475
|
.TP
|
|
@@ -1197,6 +1482,8 @@ Examples:
|
|
|
1197
1482
|
postman environment var set baseUrl https://api.example.com \e
|
|
1198
1483
|
\-\-environment ./postman/environments/dev.environment.yaml
|
|
1199
1484
|
postman environment var set token abc123 \-\-environment 123456\-11111111\-2222\-3333\-4444\-555555555555
|
|
1485
|
+
postman environment var set apiToken \-\-secret\-id b8748ab8\-d1bb\-477f\-95e2\-78625adea75f \e
|
|
1486
|
+
\-\-environment 123456\-11111111\-2222\-3333\-4444\-555555555555 \-\-workspace <workspaceId>
|
|
1200
1487
|
|
|
1201
1488
|
|
|
1202
1489
|
|
|
@@ -1496,7 +1783,7 @@ List local spec files under a path, or (no path) a workspace's cloud specs.
|
|
|
1496
1783
|
Read a spec definition, including every file of a multi\-file spec.
|
|
1497
1784
|
.TP
|
|
1498
1785
|
.B spec file
|
|
1499
|
-
|
|
1786
|
+
Get, add, update, or remove files in a spec (cloud ID or local directory).
|
|
1500
1787
|
.TP
|
|
1501
1788
|
.B spec create
|
|
1502
1789
|
Create a new spec in a workspace, or (with path) scaffold a local spec file.
|
|
@@ -1586,13 +1873,16 @@ Examples:
|
|
|
1586
1873
|
|
|
1587
1874
|
|
|
1588
1875
|
.SS "spec file"
|
|
1589
|
-
|
|
1876
|
+
Get, add, update, or remove files in a spec (cloud ID or local directory).
|
|
1590
1877
|
|
|
1591
1878
|
.B Usage:
|
|
1592
1879
|
[options] [command]
|
|
1593
1880
|
|
|
1594
1881
|
.B Subcommands:
|
|
1595
1882
|
.TP
|
|
1883
|
+
.B spec file get
|
|
1884
|
+
Show a file in a spec: its path, size and content.
|
|
1885
|
+
.TP
|
|
1596
1886
|
.B spec file add
|
|
1597
1887
|
Add a new file to a spec.
|
|
1598
1888
|
.TP
|
|
@@ -1602,6 +1892,29 @@ Update an existing file in a spec.
|
|
|
1602
1892
|
.B spec file rm
|
|
1603
1893
|
Remove a file from a spec.
|
|
1604
1894
|
|
|
1895
|
+
.SS "spec file get"
|
|
1896
|
+
Show a file in a spec: its path, size and content.
|
|
1897
|
+
|
|
1898
|
+
.B Usage:
|
|
1899
|
+
[options] <spec> <filePath>
|
|
1900
|
+
|
|
1901
|
+
.B Options:
|
|
1902
|
+
.TP
|
|
1903
|
+
.B \-\-json
|
|
1904
|
+
Output as JSON
|
|
1905
|
+
.TP
|
|
1906
|
+
.B \-\-api\-key <key>
|
|
1907
|
+
Postman API key
|
|
1908
|
+
|
|
1909
|
+
.TP Examples:
|
|
1910
|
+
|
|
1911
|
+
Examples:
|
|
1912
|
+
postman spec file get 12345678\-abcd\-1234\-abcd\-1234567890ab schemas/user.yaml
|
|
1913
|
+
postman spec file get 12345678\-abcd\-1234\-abcd\-1234567890ab index.yaml \-\-json
|
|
1914
|
+
postman spec file get ./postman/specs/api schemas/user.yaml
|
|
1915
|
+
|
|
1916
|
+
|
|
1917
|
+
|
|
1605
1918
|
.SS "spec file add"
|
|
1606
1919
|
Add a new file to a spec.
|
|
1607
1920
|
|
|
@@ -1781,6 +2094,9 @@ Collection ID to sync (required for cloud mode)
|
|
|
1781
2094
|
.TP
|
|
1782
2095
|
.B \-\-api\-key <key>
|
|
1783
2096
|
Postman API key
|
|
2097
|
+
.TP
|
|
2098
|
+
.B \-\-force
|
|
2099
|
+
Overwrite hand\-written scripts that the spec would otherwise drop
|
|
1784
2100
|
|
|
1785
2101
|
.TP Examples:
|
|
1786
2102
|
|
|
@@ -6718,6 +7034,50 @@ Examples:
|
|
|
6718
7034
|
|
|
6719
7035
|
|
|
6720
7036
|
|
|
7037
|
+
.SS "secret"
|
|
7038
|
+
Create and manage Postman secrets in a team's shared vault.
|
|
7039
|
+
|
|
7040
|
+
.B Usage:
|
|
7041
|
+
[options] [command]
|
|
7042
|
+
|
|
7043
|
+
.B Subcommands:
|
|
7044
|
+
.TP
|
|
7045
|
+
.B secret create
|
|
7046
|
+
Create a secret in a team's shared vault.
|
|
7047
|
+
|
|
7048
|
+
.SS "secret create"
|
|
7049
|
+
Create a secret in a team's shared vault.
|
|
7050
|
+
|
|
7051
|
+
.B Usage:
|
|
7052
|
+
[options] <key>
|
|
7053
|
+
|
|
7054
|
+
.B Options:
|
|
7055
|
+
.TP
|
|
7056
|
+
.B \-\-team\-id <id>
|
|
7057
|
+
Team id (defaults to your authenticated profile's team; must be your own team — the vault rejects any other team id, even one you otherwise have access to)
|
|
7058
|
+
.TP
|
|
7059
|
+
.B \-w, \-\-workspace <workspaceId>
|
|
7060
|
+
Postman workspace ID (falls back to .postman/resources.yaml or .postman/config.json)
|
|
7061
|
+
.TP
|
|
7062
|
+
.B \-\-api\-key <key>
|
|
7063
|
+
Postman API key
|
|
7064
|
+
.TP
|
|
7065
|
+
.B \-\-value\-stdin
|
|
7066
|
+
Read the secret value from stdin instead of prompting
|
|
7067
|
+
|
|
7068
|
+
.TP Examples:
|
|
7069
|
+
|
|
7070
|
+
The secret value is never accepted as a command\-line argument. Provide it via:
|
|
7071
|
+
\- an interactive masked prompt (default, when stdin is a terminal)
|
|
7072
|
+
\- piped stdin: printf '%s' 's3cr3t' | postman secret create MY_SECRET
|
|
7073
|
+
\- \-\-value\-stdin (explicit, same as piping)
|
|
7074
|
+
|
|
7075
|
+
Examples:
|
|
7076
|
+
postman secret create MY_SECRET \-\-team\-id 451 \-\-workspace 00000000\-0000\-0000\-0000\-000000000000
|
|
7077
|
+
printf '%s' 's3cr3t' | postman secret create MY_SECRET \-\-team\-id 451 \-\-value\-stdin
|
|
7078
|
+
|
|
7079
|
+
|
|
7080
|
+
|
|
6721
7081
|
.SH SEE ALSO
|
|
6722
7082
|
Full documentation: https://learning.postman.com/docs/postman\-cli/postman\-cli\-overview/
|
|
6723
7083
|
.SH AUTHOR
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postman-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.69.0",
|
|
4
4
|
"description": "Official Postman CLI - Command-line companion for API development, testing, and automation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"postman",
|
|
@@ -62,10 +62,10 @@
|
|
|
62
62
|
"scripts/"
|
|
63
63
|
],
|
|
64
64
|
"optionalDependencies": {
|
|
65
|
-
"@postman/pm-bin-macos-arm64": "1.
|
|
66
|
-
"@postman/pm-bin-macos-x64": "1.
|
|
67
|
-
"@postman/pm-bin-linux-x64": "1.
|
|
68
|
-
"@postman/pm-bin-linux-arm64": "1.
|
|
69
|
-
"@postman/pm-bin-windows-x64": "1.
|
|
65
|
+
"@postman/pm-bin-macos-arm64": "1.69.0",
|
|
66
|
+
"@postman/pm-bin-macos-x64": "1.69.0",
|
|
67
|
+
"@postman/pm-bin-linux-x64": "1.69.0",
|
|
68
|
+
"@postman/pm-bin-linux-arm64": "1.69.0",
|
|
69
|
+
"@postman/pm-bin-windows-x64": "1.69.0"
|
|
70
70
|
}
|
|
71
71
|
}
|