postman-cli 1.19.4 → 1.20.0-preview.1
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 +332 -0
- package/package.json +8 -6
package/man/postman.1
ADDED
|
@@ -0,0 +1,332 @@
|
|
|
1
|
+
.TH POSTMAN 1 "2025-10-07" "v1.20.0-preview.1" "Postman CLI Manual"
|
|
2
|
+
.SH NAME
|
|
3
|
+
postman \- Command\-line companion utility for Postman
|
|
4
|
+
.SH SYNOPSIS
|
|
5
|
+
.B postman
|
|
6
|
+
[\fIcommand\fR] [\fIoptions\fR]
|
|
7
|
+
.SH DESCRIPTION
|
|
8
|
+
The Postman CLI is a command\-line companion utility that brings the power of Postman platform directly to your terminal. It enables you to run collections, lint APIs, manage monitors, and integrate API testing into CI/CD pipelines.
|
|
9
|
+
.br
|
|
10
|
+
Note: All commands support the --help option for more information..
|
|
11
|
+
.SH OPTIONS
|
|
12
|
+
.TP
|
|
13
|
+
.B \-v, \-\-version
|
|
14
|
+
output the version number
|
|
15
|
+
.TP
|
|
16
|
+
.B \-\-silent
|
|
17
|
+
Silences all terminal output
|
|
18
|
+
.SH COMMANDS
|
|
19
|
+
.SS "login"
|
|
20
|
+
Authenticate with Postman to access your resources.
|
|
21
|
+
|
|
22
|
+
.B Usage:
|
|
23
|
+
[options]
|
|
24
|
+
|
|
25
|
+
.B Options:
|
|
26
|
+
.TP
|
|
27
|
+
.B \-\-alias <alias>
|
|
28
|
+
Specify the alias of the API key to fetch your resources using it.
|
|
29
|
+
(This option is discontinued and will be removed in a future release.)
|
|
30
|
+
.TP
|
|
31
|
+
.B \-\-with\-api\-key <apikey>
|
|
32
|
+
Specify the API key directly.
|
|
33
|
+
.TP
|
|
34
|
+
.B \-\-region <region>
|
|
35
|
+
Specify the region for authentication. Use "eu" for EU region.
|
|
36
|
+
.TP
|
|
37
|
+
.B \-\-verbose
|
|
38
|
+
Show detailed error information
|
|
39
|
+
|
|
40
|
+
.SS "logout"
|
|
41
|
+
Delete the stored Postman API key.
|
|
42
|
+
|
|
43
|
+
.B Usage:
|
|
44
|
+
[options]
|
|
45
|
+
|
|
46
|
+
.B Options:
|
|
47
|
+
.TP
|
|
48
|
+
.B \-\-alias <alias>
|
|
49
|
+
Specify the alias of the API key to fetch your resources using it.
|
|
50
|
+
(This option is discontinued and will be removed in a future release.)
|
|
51
|
+
|
|
52
|
+
.SS "collection"
|
|
53
|
+
Run and test your Postman collections directly from the command line.
|
|
54
|
+
|
|
55
|
+
.B Usage:
|
|
56
|
+
[options] [command]
|
|
57
|
+
|
|
58
|
+
.B Subcommands:
|
|
59
|
+
.TP
|
|
60
|
+
.B collection run
|
|
61
|
+
Initiate a Postman collection run from a given ID or path.
|
|
62
|
+
|
|
63
|
+
.SS "collection run"
|
|
64
|
+
Initiate a Postman collection run from a given ID or path.
|
|
65
|
+
|
|
66
|
+
.B Usage:
|
|
67
|
+
<collectionId/Path> [options]
|
|
68
|
+
|
|
69
|
+
.B Options:
|
|
70
|
+
.TP
|
|
71
|
+
.B \-e, \-\-environment <path>
|
|
72
|
+
Specify an Id or path to a Postman Environment
|
|
73
|
+
.TP
|
|
74
|
+
.B \-g, \-\-globals <path>
|
|
75
|
+
Specify an Id or path to a file containing Postman Globals
|
|
76
|
+
.TP
|
|
77
|
+
.B \-r, \-\-reporters [reporter]
|
|
78
|
+
Specify the reporters to use for the run: cli,json,junit,html. For multiple reporters, provide their names as a comma\-separated list (E.g., \-r cli,json) (default: cli)
|
|
79
|
+
.TP
|
|
80
|
+
.B \-\-reporter\-[reporter]\-export <path>
|
|
81
|
+
[Optional] Specify a path to save the report. By default, reports are saved to the /postman\-cli\-reports directory in your current working directory. If the directory doesn't exist, it will be created automatically. If the specified path is an existing directory, the report file will be saved within it. Supported reporters: json, junit and html.
|
|
82
|
+
Type: string, Default value: null
|
|
83
|
+
.TP
|
|
84
|
+
.B \-\-reporter\-json\-structure newman
|
|
85
|
+
[Optional] Generate JSON report using the Newman schema. By default, JSON reports use the native structure of Postman CLI.
|
|
86
|
+
Type: string, Default value: null
|
|
87
|
+
.TP
|
|
88
|
+
.B \-\-reporter\-[reporter]\-omitRequestBodies
|
|
89
|
+
[Optional] Remove all request bodies from the report. Supported reporters: json, html.
|
|
90
|
+
Type: boolean, Default value: false
|
|
91
|
+
.TP
|
|
92
|
+
.B \-\-reporter\-[reporter]\-omitResponseBodies
|
|
93
|
+
[Optional] Remove all response bodies from the report. Supported reporters: json, html.
|
|
94
|
+
Type: boolean, Default value: false
|
|
95
|
+
.TP
|
|
96
|
+
.B \-\-reporter\-[reporter]\-omitHeaders
|
|
97
|
+
[Optional] Remove all request and response headers from the report. Supported reporters: json, html.
|
|
98
|
+
Type: boolean, Default value: false
|
|
99
|
+
.TP
|
|
100
|
+
.B \-\-reporter\-[reporter]\-omitAllHeadersAndBody
|
|
101
|
+
[Optional] Remove all request and response headers, as well as request and response bodies, from the report. Supported reporters: json, html.
|
|
102
|
+
Type: boolean, Default value: false
|
|
103
|
+
.TP
|
|
104
|
+
.B \-n, \-\-iteration\-count <n>
|
|
105
|
+
Define the number of iterations to run
|
|
106
|
+
.TP
|
|
107
|
+
.B \-d, \-\-iteration\-data <path>
|
|
108
|
+
Specify a data file to use for iterations (either JSON or CSV)
|
|
109
|
+
.TP
|
|
110
|
+
.B \-i <id>
|
|
111
|
+
Specify the request/folder id or name to run from the collection. Can be specified multiple times to run multiple items (default: )
|
|
112
|
+
.TP
|
|
113
|
+
.B \-\-global\-var <value>
|
|
114
|
+
Allows the specification of global variables via the command line, in a key=value format
|
|
115
|
+
.TP
|
|
116
|
+
.B \-\-env\-var <value>
|
|
117
|
+
Allows the specification of environment variables via the command line, in a key=value format (default: )
|
|
118
|
+
.TP
|
|
119
|
+
.B \-\-integration\-id <integration\-id>
|
|
120
|
+
Specify the integration id for the report. (Only supported in the US region)
|
|
121
|
+
.TP
|
|
122
|
+
.B \-\-postman\-api\-key <apiKey>
|
|
123
|
+
API Key used to load the resources from the Postman API (Only supported in the US region, use 'postman login \-\-region' to authenticate instead)
|
|
124
|
+
.TP
|
|
125
|
+
.B \-\-alias <alias>
|
|
126
|
+
Specify the alias of the API key to fetch remote resources using it.
|
|
127
|
+
(This option is discontinued and will be removed in a future release.)
|
|
128
|
+
.TP
|
|
129
|
+
.B \-\-bail [modifiers]
|
|
130
|
+
Specify whether or not to gracefully stop a collection run on encountering an error and whether to end the run with an error based on the optional modifier
|
|
131
|
+
.TP
|
|
132
|
+
.B \-\-ignore\-redirects
|
|
133
|
+
Prevents Postman CLI from automatically following 3XX redirect responses
|
|
134
|
+
.TP
|
|
135
|
+
.B \-x , \-\-suppress\-exit\-code
|
|
136
|
+
Specify whether or not to override the default exit code for the current run
|
|
137
|
+
.TP
|
|
138
|
+
.B \-\-silent
|
|
139
|
+
Prevents Postman CLI from showing output to CLI
|
|
140
|
+
.TP
|
|
141
|
+
.B \-\-disable\-unicode
|
|
142
|
+
Forces Unicode compliant symbols to be replaced by their plain text equivalents
|
|
143
|
+
.TP
|
|
144
|
+
.B \-\-color <value>
|
|
145
|
+
Enable/Disable colored output (auto|on|off) (default: auto)
|
|
146
|
+
.TP
|
|
147
|
+
.B \-\-delay\-request [n]
|
|
148
|
+
Specify the extent of delay between requests (milliseconds) (default: 0)
|
|
149
|
+
.TP
|
|
150
|
+
.B \-\-timeout [n]
|
|
151
|
+
Specify a timeout for collection run (milliseconds) (default: 0)
|
|
152
|
+
.TP
|
|
153
|
+
.B \-\-timeout\-request [n]
|
|
154
|
+
Specify a timeout for requests (milliseconds) (default: 0)
|
|
155
|
+
.TP
|
|
156
|
+
.B \-\-timeout\-script [n]
|
|
157
|
+
Specify a timeout for scripts (milliseconds) (default: 0)
|
|
158
|
+
.TP
|
|
159
|
+
.B \-\-working\-dir <path>
|
|
160
|
+
Specify the path to the working directory
|
|
161
|
+
.TP
|
|
162
|
+
.B \-\-no\-insecure\-file\-read
|
|
163
|
+
Prevents reading the files situated outside of the working directory
|
|
164
|
+
.TP
|
|
165
|
+
.B \-k, \-\-insecure
|
|
166
|
+
Disables SSL validations
|
|
167
|
+
.TP
|
|
168
|
+
.B \-\-ssl\-client\-cert\-list <path>
|
|
169
|
+
Specify the path to a client certificates configurations (JSON)
|
|
170
|
+
.TP
|
|
171
|
+
.B \-\-ssl\-client\-cert <path>
|
|
172
|
+
Specify the path to a client certificate (PEM)
|
|
173
|
+
.TP
|
|
174
|
+
.B \-\-ssl\-client\-key <path>
|
|
175
|
+
Specify the path to a client certificate private key
|
|
176
|
+
.TP
|
|
177
|
+
.B \-\-ssl\-client\-passphrase <passphrase>
|
|
178
|
+
Specify the client certificate passphrase (for protected key)
|
|
179
|
+
.TP
|
|
180
|
+
.B \-\-ssl\-extra\-ca\-certs <path>
|
|
181
|
+
Specify additionally trusted CA certificates (PEM)
|
|
182
|
+
.TP
|
|
183
|
+
.B \-\-cookie\-jar <path>
|
|
184
|
+
Specify the path to a custom cookie jar (serialized tough\-cookie JSON)
|
|
185
|
+
.TP
|
|
186
|
+
.B \-\-export\-cookie\-jar <path>
|
|
187
|
+
Exports the cookie jar to a file after completing the run
|
|
188
|
+
.TP
|
|
189
|
+
.B \-\-verbose
|
|
190
|
+
Show detailed information of collection run and each request sent
|
|
191
|
+
|
|
192
|
+
.TP Examples:
|
|
193
|
+
Eg. postman collection run 123456\-45159473\-1e45\-1f34\-5678\-1234567890ab
|
|
194
|
+
|
|
195
|
+
|
|
196
|
+
.SS "api"
|
|
197
|
+
Publish and test your APIs directly from the command line
|
|
198
|
+
|
|
199
|
+
.B Usage:
|
|
200
|
+
[options] [command]
|
|
201
|
+
|
|
202
|
+
.TP Examples:
|
|
203
|
+
|
|
204
|
+
Note: API commands are available in the US region only.
|
|
205
|
+
|
|
206
|
+
|
|
207
|
+
.B Subcommands:
|
|
208
|
+
.TP
|
|
209
|
+
.B api lint
|
|
210
|
+
Run linting on the schema of the given API ID or local file in the given path.
|
|
211
|
+
If [api] is not provided we will run the linting on the schema present in the .postman config file
|
|
212
|
+
.TP
|
|
213
|
+
.B api publish
|
|
214
|
+
Publish a version of an API for the given apiId. All entities added to the API will
|
|
215
|
+
be published by default. User can choose which entities to publish by using additional options.
|
|
216
|
+
|
|
217
|
+
.SS "api lint"
|
|
218
|
+
Run linting on the schema of the given API ID or local file in the given path.
|
|
219
|
+
If [api] is not provided we will run the linting on the schema present in the .postman config file
|
|
220
|
+
|
|
221
|
+
.B Usage:
|
|
222
|
+
<api> [options]
|
|
223
|
+
|
|
224
|
+
.B Options:
|
|
225
|
+
.TP
|
|
226
|
+
.B \-\-integration\-id <integration\-id>
|
|
227
|
+
Specify the integration ID for the report.
|
|
228
|
+
.TP
|
|
229
|
+
.B \-f, \-\-fail\-severity <value>
|
|
230
|
+
Results of this level or above will trigger a failure exit code. [choices: "error", "warn", "info", "hint"] (default: ERROR)
|
|
231
|
+
.TP
|
|
232
|
+
.B \-x , \-\-suppress\-exit\-code
|
|
233
|
+
Specify whether or not to override the default exit code for the current run
|
|
234
|
+
|
|
235
|
+
.SS "api publish"
|
|
236
|
+
Publish a version of an API for the given apiId. All entities added to the API will
|
|
237
|
+
be published by default. User can choose which entities to publish by using additional options.
|
|
238
|
+
|
|
239
|
+
.B Usage:
|
|
240
|
+
<apiId> <options>
|
|
241
|
+
|
|
242
|
+
.B Options:
|
|
243
|
+
.TP
|
|
244
|
+
.B \-\-name <name>
|
|
245
|
+
Specify the name of the version to publish.
|
|
246
|
+
.TP
|
|
247
|
+
.B \-\-release\-notes <releaseNotes>
|
|
248
|
+
Specify release notes for the version to publish.
|
|
249
|
+
.TP
|
|
250
|
+
.B \-\-collections <collectionIds/paths...>
|
|
251
|
+
Specify the collections to publish. If API is connected to a repository, provide file path instead of IDs.
|
|
252
|
+
.TP
|
|
253
|
+
.B \-\-api\-definition <apiDefinitionId/directory/file>
|
|
254
|
+
Specify the API Definition to publish. If API is connected to a repository, provide schema root file path. Note that some repository connections utilize a schema directory path; for such APIs, provide schema directory path instead of file path.
|
|
255
|
+
.TP
|
|
256
|
+
.B \-\-do\-not\-poll
|
|
257
|
+
Specify whether or not to poll for completion status of the publish action.
|
|
258
|
+
.TP
|
|
259
|
+
.B \-x , \-\-suppress\-exit\-code
|
|
260
|
+
Specify whether or not to override the default exit code for the current run.
|
|
261
|
+
|
|
262
|
+
.TP Examples:
|
|
263
|
+
Eg. postman api publish <apiId> \-\-name v1\e
|
|
264
|
+
\-\-release\-notes "# Some Release <br> Description"\e
|
|
265
|
+
\-\-collections <collectionId1> <collectionId2>\e
|
|
266
|
+
\-\-api\-definition <apiDefinitionId>
|
|
267
|
+
|
|
268
|
+
|
|
269
|
+
.SS "spec"
|
|
270
|
+
Lint and validate Specifications from the command line
|
|
271
|
+
|
|
272
|
+
.B Usage:
|
|
273
|
+
[options] [command]
|
|
274
|
+
|
|
275
|
+
.TP Examples:
|
|
276
|
+
|
|
277
|
+
Note: Spec commands are available in the US region only.
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
.B Subcommands:
|
|
281
|
+
.TP
|
|
282
|
+
.B spec lint
|
|
283
|
+
Run linting on the given specification by ID or local file path.
|
|
284
|
+
|
|
285
|
+
|
|
286
|
+
.SS "spec lint"
|
|
287
|
+
Run linting on the given specification by ID or local file path.
|
|
288
|
+
|
|
289
|
+
|
|
290
|
+
.B Usage:
|
|
291
|
+
<spec> [options]
|
|
292
|
+
|
|
293
|
+
.B Options:
|
|
294
|
+
.TP
|
|
295
|
+
.B \-f, \-\-fail\-severity <value>
|
|
296
|
+
Results of this level or above will trigger a failure exit code. [choices: "error", "warning", "info", "hint"] (default: ERROR)
|
|
297
|
+
.TP
|
|
298
|
+
.B \-o, \-\-output <value>
|
|
299
|
+
Output format for the results. [choices: "json", "csv"]
|
|
300
|
+
.TP
|
|
301
|
+
.B \-\-workspace\-id <value>
|
|
302
|
+
The workspace ID to use for fetching governance rulesets.
|
|
303
|
+
|
|
304
|
+
.SS "monitor"
|
|
305
|
+
Invoke a monitor run and display results
|
|
306
|
+
|
|
307
|
+
.B Usage:
|
|
308
|
+
[options] [command]
|
|
309
|
+
|
|
310
|
+
.B Subcommands:
|
|
311
|
+
.TP
|
|
312
|
+
.B monitor run
|
|
313
|
+
Invoke a monitor run and display results.
|
|
314
|
+
|
|
315
|
+
.SS "monitor run"
|
|
316
|
+
Invoke a monitor run and display results.
|
|
317
|
+
|
|
318
|
+
.B Usage:
|
|
319
|
+
[options] <monitorId>
|
|
320
|
+
|
|
321
|
+
.B Options:
|
|
322
|
+
.TP
|
|
323
|
+
.B \-x, \-\-suppress\-exit\-code
|
|
324
|
+
Specify whether or not to override the default exit code for the current run
|
|
325
|
+
.TP
|
|
326
|
+
.B \-t, \-\-timeout <ms>
|
|
327
|
+
Maximum wait time for run completion in milliseconds (default: 15 minutes) (default: 900000)
|
|
328
|
+
|
|
329
|
+
.SH SEE ALSO
|
|
330
|
+
Full documentation: https://learning.postman.com/docs/postman\-cli/postman\-cli\-overview/
|
|
331
|
+
.SH AUTHOR
|
|
332
|
+
Postman, Inc.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "postman-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0-preview.1",
|
|
4
4
|
"description": "Official Postman CLI - Command-line companion for API development, testing, and automation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"postman",
|
|
@@ -49,16 +49,18 @@
|
|
|
49
49
|
"bin": {
|
|
50
50
|
"postman": "bin/postman.js"
|
|
51
51
|
},
|
|
52
|
+
"man": "./man/postman.1",
|
|
52
53
|
"files": [
|
|
53
54
|
"bin/",
|
|
54
55
|
"index.js",
|
|
55
56
|
"package.json",
|
|
56
|
-
"README.md"
|
|
57
|
+
"README.md",
|
|
58
|
+
"man/"
|
|
57
59
|
],
|
|
58
60
|
"optionalDependencies": {
|
|
59
|
-
"@postman/pm-bin-macos-arm64": "1.
|
|
60
|
-
"@postman/pm-bin-macos-x64": "1.
|
|
61
|
-
"@postman/pm-bin-linux-x64": "1.
|
|
62
|
-
"@postman/pm-bin-windows-x64": "1.
|
|
61
|
+
"@postman/pm-bin-macos-arm64": "1.20.0-preview.1",
|
|
62
|
+
"@postman/pm-bin-macos-x64": "1.20.0-preview.1",
|
|
63
|
+
"@postman/pm-bin-linux-x64": "1.20.0-preview.1",
|
|
64
|
+
"@postman/pm-bin-windows-x64": "1.20.0-preview.1"
|
|
63
65
|
}
|
|
64
66
|
}
|