***
title: Flows commands
approved: 2026-03-16T00:00:00.000Z
topictype: reference
slug: docs/postman-cli/postman-cli-flows
max-toc-depth: 2
----------------
This topic covers flows management commands for the [Postman CLI](/docs/postman-cli/postman-cli-overview/). You can use the `postman flows` commands to run, manage, and analyze flows.
## `postman flows list`
The `postman flows list` command lists the flows available in a workspace. Specify the workspace by its ID.
To use this command, sign in to Postman with [the `postman login` command](/docs/postman-cli/postman-cli-auth/#postman-login).
### Usage
```bash
postman flows list --workspace
```
### Options
Specifies the workspace by its ID. This option is required for the `postman flows list` command.
### Example
```plaintext
postman flows list --workspace ab12a1bb-1a12-1234-123a-123ab1234a1a
```
## `postman flows trigger`
You can use the `postman flows trigger` command to trigger a [deployed](/docs/postman-flows/reference/flows-actions-overview/) flow to run. The deployed flow must have a [request trigger](/docs/postman-flows/reference/blocks/request/). This command requires the flow's ID as an argument. You can also assign values to the flow's inputs with the `--input` option.
To use this command, sign in to Postman with [the `postman login` command](/docs/postman-cli/postman-cli-auth/#postman-login).
### Usage
```bash
postman flows trigger [options]
```
The unique identifier of the flow to trigger.
### Options
Set flow inputs with key=value pairs and/or paths to JSON files.
### Example
```plaintext
postman flows trigger 12ab12a1ab123ab1234a1234
```
## `postman flows deploy`
You can use the `postman flows deploy` command to [deploy](/docs/postman-flows/build-flows/structure/actions/) a flow to the Postman cloud. This command requires the flow's ID as an argument and the `--path` option. The `--path` option is the URL segment for the trigger, and must be unique for the team. For example, in the URL `deployed-flow.flows.pstmn.io/api/default/new-flow`, the path is `/new-flow`.
To use this command, sign in to Postman with [the `postman login` command](/docs/postman-cli/postman-cli-auth/#postman-login).
### Usage
```bash
postman flows deploy --path
```
The unique identifier of the flow to deploy.
Specifies the path that will be added to the domain where the flow is deployed. This option is required for the `postman flows deploy` command.
### Example
```plaintext
postman flows deploy 12ab1ab1a1234567890a1234 --path deployed-flow-path
```
## `postman flows run`
This command runs a single flow from your local repo. The flow runs requests and logic blocks entirely locally on your machine, making it ideal for CI/CD workflows. Successful runs return status and output. The `postman flows run` command has options to set [input values](/docs/postman-flows/build-flows/configure/scenarios/#start-block-inputs), show [run log](/docs/postman-flows/build-flows/troubleshoot/troubleshoot/#run-logs) information, and use values from a [scenario](/docs/postman-flows/build-flows/configure/scenarios/). This command requires the local flow's file path as an argument.
The `postman flows run` command is available with [Postman Enterprise plans](https://www.postman.com/pricing/).
To use this command, sign in to Postman with [the `postman login` command](/docs/postman-cli/postman-cli-auth/#postman-login).
### Usage
```bash
postman flows run [options]
```
The local file path to the flow JSON file to run.
### Options
Specify whether to override the default exit code for the current run.
Show detailed information about the flow run and each request (method, URL, assertions).
Set flow inputs with key=value pairs and/or paths to JSON files.
Set flow inputs from JSON files.
Reference a pre-built scenario as flow inputs by its name. Can be combined with `--input` to override values.
### Examples
```bash wordWrap
postman flows run postman/flows/[flow-filename].json
postman flows run postman/flows/[flow-filename].json --input [input name]=[value]
postman flows run postman/flows/[flow-filename].json --input path/to/[input-filename].json
postman flows run postman/flows/[flow-filename].json --scenario "[scenario name]"
postman flows run postman/flows/[flow-filename].json --scenario "[scenario name]" --input [input name]=[value]
```
Learn more at [Postman Flows overview](/docs/postman-flows/flows-overview/).
## `postman flows update`
You can use the `postman flows update` command to update auth and online/offline settings for a deployed flow. This command requires the flow's ID as an argument.
To use this command, sign in to Postman with [the `postman login` command](/docs/postman-cli/postman-cli-auth/#postman-login).
### Usage
```bash
postman flows update [options]
```
The unique identifier of the deployed flow to update.
### Options
Sets the deployed flow's status to online (`on`) or offline (`off`).
Turns the flow's authentication setting on or off.
### Example
```bash
postman flows update 12ab1ab1a1234567890a1234 --trigger on --auth off
```
## `postman flows list-runs`
You can use the `postman flows list-runs` command to fetch run history for a deployed flow in a specified workspace. The result displays the run's timestamp, ID, duration, status, and flow name in a table. This command requires the `--workspace` option.
To use this command, sign in to Postman with [the `postman login` command](/docs/postman-cli/postman-cli-auth/#postman-login).
### Usage
```bash
postman flows list-runs --workspace [options]
```
### Options
Specifies the workspace by its ID. This option is required for the `postman flows list-runs` command.
Filter by flow ID.
Specifies the time window in minutes (`1m`), hours (`1h`), or days (`1d`).
### Example
```plaintext wordWrap
postman flows list-runs --workspace ab12a1bb-1a12-1234-123a-123ab1234a1a --range 1d
```
## `postman flows get-run`
You can use the `postman flows get-run` command to analyze a specific run.
To use this command, sign in to Postman with [the `postman login` command](/docs/postman-cli/postman-cli-auth/#postman-login).
### Usage
```bash
postman flows get-run --run-id [options]
```
### Options
Specifies the run by its ID. This option is required for the `postman flows get-run` command.
Shows the full event log including each block's ID, input, and output.
Narrows output by block ID.
### Example
```bash
postman flows get-run main/1a123ab1
```