Rerun a workflow

## Usage

`circleci workflow rerun <workflow-id> [flags]`

## Arguments

`<workflow-id>` is the UUID of the workflow to rerun. Workflow IDs are
shown in the output of `circleci run get`.

## Flags

| Flag            | Description            |
| --------------- | ---------------------- |
| `--from-failed` | Rerun only failed jobs |
| `--json`        | Output as JSON         |

Global flags: `-c, --config`, `--debug`, `--no-color`, `-q, --quiet` — see `circleci --help`.

## Examples

- Rerun all jobs in a workflow from scratch: 
  `circleci workflow rerun 5034460f-c7c4-4c43-9457-de07e2029e7b`
- Rerun only the failed jobs: 
  `circleci workflow rerun 5034460f-c7c4-4c43-9457-de07e2029e7b --from-failed`
- Find a workflow ID from the latest run: 
  `circleci run get --json --jq '.workflows[].id'`
- Rerun and capture the new workflow's ID: 
  `circleci workflow rerun <workflow-id> --from-failed --json --jq .workflow_id`

## Details

All jobs rerun from scratch unless --from-failed is given, which reruns
only the jobs that failed. Either way a new workflow is created, and its
ID is reported so you can follow the run.

JSON fields: workflow_id, rerun_from, from_failed

