The provided link references the official Postman CLI Commands and Options Overview Documentation, which details the command-line flags and parameters used to automate and execute API workflows directly from your terminal or CI/CD pipelines. Core Commands & Categories
The Postman CLI groups its execution options into key operational categories to manage local and cloud-synchronized assets:
Workspace Commands: Includes postman workspace prepare to validate local collections or environments, and postman workspace push to sync changes to the cloud.
Collection Commands: Centered around postman collection run, allowing you to execute entire test suites with custom parameters.
Authentication: Features like postman login –with-api-key secure your terminal sessions using Postman API keys. Key Configuration Options
When running API tests via postman collection run, several flags modify how execution behaves: Variable Injection:
-e or –environment: Passes a specific Postman environment ID or path.
–env-var “key=value”: Manually overrides or defines a specific environment variable inline.
-G or –globals: References a JSON file or ID containing global variables.
–global-var “key=value”: Directly injects individual global variables. Execution Control:
–bail: Gracefully stops the entire test run immediately if any single test fails.
-n : Sets the specific number of iterations for running the collection.
–delay-request : Specifies a sleep interval delay between individual requests. Security & Network:
Flags such as –ssl-client-cert, –ssl-client-key, and –ssl-client-passphrase pass SSL configuration for secure endpoints.
–verbose: Outputs comprehensive execution logging information to the terminal console. Postman CLI commands and options overview
Leave a Reply