Skip to content

Commit

Permalink
chore(docs): document advanced stack selection
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielMSchmidt committed Mar 22, 2022
1 parent 688ec5d commit e731fd0
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions website/docs/cdktf/cli-reference/commands.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,18 @@ Deploy multiple stacks in one run.
$ cdktf deploy my-first-stack my-second-stack my-third-stack
```

Deploy all stacks in one run:

```bash
$ cdktf deploy '*'
```

Deploy all stacks ending with production in one run:

```bash
$ cdktf deploy '*-production'
```

If the stacks have dependencies (through cross stack references or by calling `myStack.addDependency(otherStack)`) deploy will figure out the right order to run.

For more info on the `--outputs-file` option, [see the `output` command below](/cdktf/cli-reference/commands#output).
Expand Down Expand Up @@ -231,6 +243,18 @@ Destroy multiple stacks in one run.
$ cdktf destroy my-first-stack my-second-stack my-third-stack
```

Destroy all stacks in one run:

```bash
$ cdktf destroy '*'
```

Destroy all stacks ending with production in one run:

```bash
$ cdktf destroy '*-production'
```

If the stacks have dependencies (through cross stack references or by calling `myStack.addDependency(otherStack)`) deploy will figure out the right order to run.

## diff
Expand Down

0 comments on commit e731fd0

Please sign in to comment.