postman-cli 1.56.3 → 1.57.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 (2) hide show
  1. package/man/postman.1 +380 -5
  2. package/package.json +6 -6
package/man/postman.1 CHANGED
@@ -1,4 +1,4 @@
1
- .TH POSTMAN 1 "2026-09-15" "v1.56.3" "Postman CLI Manual"
1
+ .TH POSTMAN 1 "2026-09-16" "v1.57.0" "Postman CLI Manual"
2
2
  .SH NAME
3
3
  postman \- Command\-line companion utility for Postman
4
4
  .SH SYNOPSIS
@@ -40,6 +40,20 @@ Specify the region for authentication. Use "eu" for EU region.
40
40
  .B \-\-verbose
41
41
  Show detailed error information
42
42
 
43
+ .SS "signup"
44
+ Sign up to keep the work you created as a guest (claims your guest workspace). By default prints a single\-use sign\-up URL to open in a browser; \-\-browser signs up in a browser and signs this CLI in.
45
+
46
+ .B Usage:
47
+ [options]
48
+
49
+ .B Options:
50
+ .TP
51
+ .B \-\-browser
52
+ Open a browser to sign up and sign this CLI in, instead of printing a URL.
53
+ .TP
54
+ .B \-\-json
55
+ Print the sign\-up details as machine\-readable JSON.
56
+
43
57
  .SS "logout"
44
58
  Delete the stored Postman API key.
45
59
 
@@ -436,16 +450,175 @@ Eg. postman collection run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab
436
450
 
437
451
 
438
452
  .SS "environment"
439
- Work with local Postman environments from the command line.
453
+ Work with local Postman environments from the command line. Also read cloud environments by ID.
440
454
 
441
455
  .B Usage:
442
456
  [options] [command]
443
457
 
444
458
  .B Subcommands:
445
459
  .TP
460
+ .B environment list
461
+ List environments in a Postman workspace.
462
+ .TP
463
+ .B environment get
464
+ Read an environment by ID or local environment file path.
465
+ .TP
466
+ .B environment var
467
+ Read and update environment variables.
468
+ .TP
446
469
  .B environment lint
447
470
  Run linting on a local Postman environment at the given file or directory path.
448
471
 
472
+ .SS "environment list"
473
+ List environments in a Postman workspace.
474
+
475
+ .B Usage:
476
+ [workspacePath] [options]
477
+
478
+ .B Options:
479
+ .TP
480
+ .B \-w, \-\-workspace <workspaceId>
481
+ Workspace ID to list environments from.
482
+ .TP
483
+ .B \-f, \-\-filter <name>
484
+ Filter environments by name.
485
+ .TP
486
+ .B \-\-verbose
487
+ Verbose output
488
+ .TP
489
+ .B \-\-json
490
+ JSON output
491
+
492
+ .TP Examples:
493
+
494
+ Examples:
495
+ postman environment list \-\-workspace 12345678\-90ab\-cdef\-1234\-567890abcdef
496
+ postman environment list \-\-workspace 12345678\-90ab\-cdef\-1234\-567890abcdef \-\-filter "dev"
497
+ postman environment list ./my\-postman\-workspace
498
+ postman environment list \-\-json
499
+
500
+
501
+
502
+ .SS "environment get"
503
+ Read an environment by ID or local environment file path.
504
+
505
+ .B Usage:
506
+ <environment> [options]
507
+
508
+ .B Options:
509
+ .TP
510
+ .B \-\-verbose
511
+ Verbose output
512
+ .TP
513
+ .B \-\-json
514
+ JSON output
515
+ .TP
516
+ .B \-\-show\-secrets
517
+ Show secret variable values in output
518
+
519
+ .TP Examples:
520
+
521
+ Examples:
522
+ postman environment get 123456\-11111111\-2222\-3333\-4444\-555555555555
523
+ postman environment get ./postman/environments/dev.environment.yaml
524
+ postman environment get ./postman/environments/dev.environment.yaml \-\-json
525
+ postman environment get ./postman/environments/dev.environment.yaml \-\-show\-secrets
526
+
527
+
528
+
529
+ .SS "environment var"
530
+ Read and update environment variables.
531
+
532
+ .B Usage:
533
+ [options] [command]
534
+
535
+ .B Subcommands:
536
+ .TP
537
+ .B environment var set
538
+ Set one variable in an environment.
539
+ .TP
540
+ .B environment var get
541
+ Read one variable value from an environment.
542
+ .TP
543
+ .B environment var unset
544
+ Remove one variable from an environment.
545
+
546
+ .SS "environment var set"
547
+ Set one variable in an environment.
548
+
549
+ .B Usage:
550
+ [options] <key> <value>
551
+
552
+ .B Options:
553
+ .TP
554
+ .B \-e, \-\-environment <environment>
555
+ Cloud Environment ID or local environment file path.
556
+ .TP
557
+ .B \-\-verbose
558
+ Verbose output
559
+ .TP
560
+ .B \-\-json
561
+ JSON output
562
+
563
+ .TP Examples:
564
+
565
+ Examples:
566
+ postman environment var set baseUrl https://api.example.com \e
567
+ \-\-environment ./postman/environments/dev.environment.yaml
568
+ postman environment var set token abc123 \-\-environment 123456\-11111111\-2222\-3333\-4444\-555555555555
569
+
570
+
571
+
572
+ .SS "environment var get"
573
+ Read one variable value from an environment.
574
+
575
+ .B Usage:
576
+ [options] <key>
577
+
578
+ .B Options:
579
+ .TP
580
+ .B \-e, \-\-environment <environment>
581
+ Cloud Environment ID or local environment file path.
582
+ .TP
583
+ .B \-\-verbose
584
+ Verbose output
585
+ .TP
586
+ .B \-\-json
587
+ JSON output
588
+
589
+ .TP Examples:
590
+
591
+ Examples:
592
+ postman environment var get baseUrl \-\-environment ./postman/environments/dev.environment.yaml
593
+ postman environment var get token \-\-environment 123456\-11111111\-2222\-3333\-4444\-555555555555
594
+
595
+
596
+
597
+ .SS "environment var unset"
598
+ Remove one variable from an environment.
599
+
600
+ .B Usage:
601
+ [options] <key>
602
+
603
+ .B Options:
604
+ .TP
605
+ .B \-e, \-\-environment <environment>
606
+ Cloud Environment ID or local environment file path.
607
+ .TP
608
+ .B \-\-verbose
609
+ Verbose output
610
+ .TP
611
+ .B \-\-json
612
+ JSON output
613
+
614
+ .TP Examples:
615
+
616
+ Examples:
617
+ postman environment var unset token \-\-environment ./postman/environments/dev.environment.yaml
618
+ postman environment var unset token \-\-environment 123456\-11111111\-2222\-3333\-4444\-555555555555
619
+
620
+
621
+
449
622
  .SS "environment lint"
450
623
  Run linting on a local Postman environment at the given file or directory path.
451
624
 
@@ -645,6 +818,12 @@ Run linting on the given specification by ID or local file path.
645
818
  .B spec ai-readiness
646
819
  Score an OpenAPI specification for AI readiness by ID or local file path.
647
820
 
821
+ .TP
822
+ .B spec list
823
+ List local spec files under a path, or (no path) a workspace's cloud specs.
824
+ .TP
825
+ .B spec get
826
+ Read a spec definition, including every file of a multi\-file spec.
648
827
 
649
828
  .SS "spec lint"
650
829
  Run linting on the given specification by ID or local file path.
@@ -693,6 +872,57 @@ Examples:
693
872
  $ postman spec ai\-readiness ./openapi.yaml \-\-min\-score 70
694
873
 
695
874
 
875
+ .SS "spec list"
876
+ List local spec files under a path, or (no path) a workspace's cloud specs.
877
+
878
+ .B Usage:
879
+ [options] [pathOrDir]
880
+
881
+ .B Options:
882
+ .TP
883
+ .B \-w, \-\-workspace <id>
884
+ Workspace ID (defaults to .postman/resources.yaml binding)
885
+ .TP
886
+ .B \-\-api\-key <key>
887
+ Postman API key
888
+ .TP
889
+ .B \-\-json
890
+ Output as JSON
891
+
892
+ .TP Examples:
893
+
894
+ Examples:
895
+ postman spec list ./postman/specs
896
+ postman spec list ./openapi.yaml
897
+ postman spec list
898
+ postman spec list \-w 12345\-abcde \-\-json
899
+
900
+
901
+
902
+ .SS "spec get"
903
+ Read a spec definition, including every file of a multi\-file spec.
904
+
905
+ .B Usage:
906
+ [options] <spec...>
907
+
908
+ .B Options:
909
+ .TP
910
+ .B \-\-api\-key <key>
911
+ Postman API key
912
+ .TP
913
+ .B \-\-json
914
+ Output as JSON (full spec definition)
915
+
916
+ .TP Examples:
917
+
918
+ Examples:
919
+ postman spec get ./openapi.yaml
920
+ postman spec get "postman/specs/My API/index.yaml"
921
+ postman spec get 12345678\-abcd\-1234\-efgh\-567890abcdef
922
+ postman spec get 12345678\-abcd\-1234\-efgh\-567890abcdef \-\-json
923
+
924
+
925
+
696
926
  .SS "monitor"
697
927
  Invoke a monitor run and display results
698
928
 
@@ -2057,7 +2287,7 @@ Run and manage Postman mocks, locally and in the cloud.
2057
2287
  .B Subcommands:
2058
2288
  .TP
2059
2289
  .B mock generate
2060
- Generate a runnable mock from a Postman collection (v2.0/v2.1/v3 file, or a git\-native v3 collection directory) or an OpenAPI 3.0/3.1 spec file. The source type is auto\-detected. Omit the source to scaffold a sample mock with a GET /health endpoint. Writes a local mock by default, or a cloud mock with \-\-workspace.
2290
+ Generate a runnable mock from a Postman collection (v2.0/v2.1/v3 file, or a git\-native v3 collection directory) or an OpenAPI 3.0/3.1 spec file. The source type is auto\-detected. Omit the source to scaffold a sample shopping\-cart mock (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with \-\-workspace.
2061
2291
  .TP
2062
2292
  .B mock run
2063
2293
  Start a local mock server from a cloud mock id (fetched and run locally), a manifest file (JSON or YAML), a mock directory (postman/mocks/<slug>), or a .js handler.
@@ -2078,7 +2308,7 @@ Browse a deployed mock server's request/response logs by its id (see `mock get`)
2078
2308
  Permanently remove a mock: a cloud mock by id, or a local mock artifact by path.
2079
2309
 
2080
2310
  .SS "mock generate"
2081
- Generate a runnable mock from a Postman collection (v2.0/v2.1/v3 file, or a git\-native v3 collection directory) or an OpenAPI 3.0/3.1 spec file. The source type is auto\-detected. Omit the source to scaffold a sample mock with a GET /health endpoint. Writes a local mock by default, or a cloud mock with \-\-workspace.
2311
+ Generate a runnable mock from a Postman collection (v2.0/v2.1/v3 file, or a git\-native v3 collection directory) or an OpenAPI 3.0/3.1 spec file. The source type is auto\-detected. Omit the source to scaffold a sample shopping\-cart mock (POST /cart/items, GET /cart, POST /checkout). Writes a local mock by default, or a cloud mock with \-\-workspace.
2082
2312
 
2083
2313
  .B Usage:
2084
2314
  [sourcePath] [options]
@@ -2112,7 +2342,7 @@ Always exit with code 0, even on failure
2112
2342
  .TP Examples:
2113
2343
 
2114
2344
  Eg. postman mock generate ./my\-collection.json
2115
- postman mock generate \-\-name "My Mock" # sample mock with a GET /health endpoint
2345
+ postman mock generate \-\-name "My Mock" # sample shopping\-cart mock
2116
2346
  postman mock generate \-\-name "My Mock" \-\-port 4010 # sample mock, custom port
2117
2347
  postman mock generate ./openapi.yaml \-\-output ./postman/mocks/api \-\-port 4010
2118
2348
  postman mock generate ./my\-collection.json \-\-update ./postman/mocks/orders
@@ -2705,6 +2935,114 @@ Get a single environment by ID
2705
2935
  .B \-e, \-\-environment\-id <id>
2706
2936
  Environment ID
2707
2937
 
2938
+ .SS "context\-graph"
2939
+ Ask natural\-language questions about your team's Context Graph.
2940
+
2941
+ .B Usage:
2942
+ [options] [command]
2943
+
2944
+ .TP Examples:
2945
+
2946
+ The team a query runs against is derived from your API key.
2947
+
2948
+ `ask <query> \-\-wait` is the one to reach for: it asks and blocks until the
2949
+ answer arrives. Without \-\-wait, `ask` returns an id immediately and
2950
+ `status <askId>` checks on it later.
2951
+
2952
+
2953
+
2954
+ .B Subcommands:
2955
+ .TP
2956
+ .B context-graph ask
2957
+ Ask a natural\-language question about your team's Context Graph.
2958
+ .TP
2959
+ .B context-graph status
2960
+ Check an ask submitted by `ask`, without blocking. Prints the answer when ready.
2961
+
2962
+ .SS "context\-graph ask"
2963
+ Ask a natural\-language question about your team's Context Graph.
2964
+
2965
+ .B Usage:
2966
+ [options] <query>
2967
+
2968
+ .B Options:
2969
+ .TP
2970
+ .B \-\-wait
2971
+ Block until the answer arrives, then print it
2972
+ .TP
2973
+ .B \-\-api\-key <key>
2974
+ Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)
2975
+ .TP
2976
+ .B \-\-json
2977
+ Output the ask record as JSON
2978
+ .TP
2979
+ .B \-\-no\-include\-answer
2980
+ Do not ask the service to include the answer inline
2981
+ .TP
2982
+ .B \-\-max\-steps <count>
2983
+ Cap the reasoning steps the service may take (its default applies when omitted)
2984
+ .TP
2985
+ .B \-\-interval <seconds>
2986
+ With \-\-wait, seconds between polls (default: 2)
2987
+ .TP
2988
+ .B \-\-timeout <seconds>
2989
+ With \-\-wait, seconds to wait before giving up (default: 300)
2990
+
2991
+ .TP Examples:
2992
+
2993
+ The team a query runs against is derived from the API key \- there is no
2994
+ workspace or team option.
2995
+
2996
+ Without \-\-wait this returns an ask id straight away; check on it later with
2997
+ `context\-graph status <askId>`. With \-\-wait it polls for you and prints the
2998
+ answer. On timeout the ask keeps running and the printed id stays valid.
2999
+
3000
+ Exit codes:
3001
+ 0 the ask completed, or without \-\-wait was accepted
3002
+ 1 the request failed (auth, network, malformed input, unknown status)
3003
+ 2 the ask reached a failed state
3004
+ 4 \-\-timeout elapsed before the ask finished (\-\-wait only)
3005
+
3006
+ Examples:
3007
+ postman context\-graph ask "What does postman\-app do?" \-\-wait
3008
+ postman context\-graph ask "What depends on billing\-api?" \-\-wait \-\-json
3009
+ postman context\-graph ask "Which APIs are in the graph?" \-\-wait \-\-timeout 120
3010
+ postman context\-graph ask "Summarize the graph" \-\-max\-steps 5
3011
+
3012
+
3013
+
3014
+ .SS "context\-graph status"
3015
+ Check an ask submitted by `ask`, without blocking. Prints the answer when ready.
3016
+
3017
+ .B Usage:
3018
+ [options] <askId>
3019
+
3020
+ .B Options:
3021
+ .TP
3022
+ .B \-\-api\-key <key>
3023
+ Postman API key (falls back to POSTMAN_API_KEY, then a `postman login` session)
3024
+ .TP
3025
+ .B \-\-json
3026
+ Output the ask record as JSON
3027
+
3028
+ .TP Examples:
3029
+
3030
+ Returns immediately with whatever state the ask is in, printing the answer
3031
+ once it has one. Exits 3 while still in progress, so a script can poll on its
3032
+ own cadence; `ask <query> \-\-wait` does the polling for you.
3033
+
3034
+ Exit codes:
3035
+ 0 the ask completed
3036
+ 1 the request failed (auth, network, unknown ask id or status)
3037
+ 2 the ask reached a failed state
3038
+ 3 the ask is still in progress
3039
+
3040
+ Examples:
3041
+ postman context\-graph status 018f3a2b\-1c2d\-4e5f\-8a9b\-0c1d2e3f4a5b
3042
+ postman context\-graph status 018f3a2b\-1c2d\-4e5f\-8a9b\-0c1d2e3f4a5b \-\-json
3043
+
3044
+
3045
+
2708
3046
  .SS "search"
2709
3047
  Search for Postman element types (requests, collections, workspaces, and more).
2710
3048
 
@@ -4157,6 +4495,43 @@ Examples:
4157
4495
 
4158
4496
 
4159
4497
 
4498
+ .SS "dependency"
4499
+ Manage workspace dependencies (Postman entities reused from other workspaces).
4500
+
4501
+ .B Usage:
4502
+ [options] [command]
4503
+
4504
+ .B Subcommands:
4505
+ .TP
4506
+ .B dependency add
4507
+ Add a Postman collection, environment, or mock as a workspace dependency.
4508
+
4509
+ .SS "dependency add"
4510
+ Add a Postman collection, environment, or mock as a workspace dependency.
4511
+
4512
+ .B Usage:
4513
+ [options] <type> <nameOrId>
4514
+
4515
+ .B Options:
4516
+ .TP
4517
+ .B \-w, \-\-workspace <id>
4518
+ Workspace id to resolve a name in (defaults to the current workspace).
4519
+ .TP
4520
+ .B \-y, \-\-yes
4521
+ Skip all confirmation prompts.
4522
+ .TP
4523
+ .B \-\-json
4524
+ Output the result as JSON.
4525
+
4526
+ .TP Examples:
4527
+
4528
+ Examples:
4529
+ postman dependency add collection 844951\-51ea04bb\-8d1a\-439e\-aa70\-fe91852efcda
4530
+ postman dependency add collection "My Collection" \-\-workspace <workspaceId>
4531
+ postman dependency add environment 844951\-1b4d90f0\-b724\-4aa2\-b1bb\-b5d4f6435fc3
4532
+
4533
+
4534
+
4160
4535
  .SH SEE ALSO
4161
4536
  Full documentation: https://learning.postman.com/docs/postman\-cli/postman\-cli\-overview/
4162
4537
  .SH AUTHOR
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "postman-cli",
3
- "version": "1.56.3",
3
+ "version": "1.57.0",
4
4
  "description": "Official Postman CLI - Command-line companion for API development, testing, and automation",
5
5
  "keywords": [
6
6
  "postman",
@@ -58,10 +58,10 @@
58
58
  "man/"
59
59
  ],
60
60
  "optionalDependencies": {
61
- "@postman/pm-bin-macos-arm64": "1.56.3",
62
- "@postman/pm-bin-macos-x64": "1.56.3",
63
- "@postman/pm-bin-linux-x64": "1.56.3",
64
- "@postman/pm-bin-linux-arm64": "1.56.3",
65
- "@postman/pm-bin-windows-x64": "1.56.3"
61
+ "@postman/pm-bin-macos-arm64": "1.57.0",
62
+ "@postman/pm-bin-macos-x64": "1.57.0",
63
+ "@postman/pm-bin-linux-x64": "1.57.0",
64
+ "@postman/pm-bin-linux-arm64": "1.57.0",
65
+ "@postman/pm-bin-windows-x64": "1.57.0"
66
66
  }
67
67
  }