# depot bake now has targeted load 🤩 (https://depot.dev/changelog/2024-03-04-depot-bake-targeted-load)

> Published 2024-03-04

Our latest release of the [`depot` CLI](/docs/cli/installation) includes an excellent new enhancement to `depot bake --load` that was previously not possible.

Before the latest release, `depot bake --load` would always pull back all targets in a bake file rather than just the target specified in the build. For example, if you had a bake file with 10 targets and you only wanted to build one of them, you would still have to pull back all 10 targets.

Instead, we now only pull back the targets specified in the build. This means that if you have a bake file with 10 targets and you only want to build one of them, you will only pull back the one target.

```shell
depot bake --load <target>
```

It works for groups as well! If you have a group with two targets and you request that group in your bake command, we will only pull back the two targets in that group.

```hcl
group "test" {
  targets = ["app", "db"]
}

target "app" {
  dockerfile = "Dockerfile.app"
}

target "db" {
  dockerfile = "Dockerfile.db"
}
```

So if you run `depot bake --load` for the `test` group, we will only pull back the `app` and `db` targets.

```shell
depot bake --load test
```

## For AI Agents

The full site index is at [llms.txt](https://depot.dev/llms.txt). Append `.md` to any documentation, blog, changelog, or customer URL to fetch its markdown source directly.