# Select context during cli deploy

**URL:** <https://answers.netlify.com/t/select-context-during-cli-deploy/48285>\
**Category:** Support\
**Tags:** netlify-cli, deployment\
**Created:** [December 4, 2021, 3:42pm UTC](https://answers.netlify.com/t/select-context-during-cli-deploy/48285 "2021-12-04T15:42:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![felipe](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/felipe/32/23695_2.png) [@felipe](https://answers.netlify.com/u/felipe)\
**Post date:** [December 4, 2021, 3:42pm UTC](https://answers.netlify.com/t/select-context-during-cli-deploy/48285/1 "2021-12-04T15:42:03Z")

</div>

Hi. I’m trying to deploy my site to multiple contexts: Prod, Staging, and branches. Is there a way to specify which context I’m deploying to via the CLI?

---

<div class="post-metadata">

**Author:** ![nathanmartin](https://sea1.discourse-cdn.com/netlify/user_avatar/answers.netlify.com/nathanmartin/32/30845_2.png) [@nathanmartin](https://answers.netlify.com/u/nathanmartin)\
**Post date:** [December 5, 2021, 9:38am UTC](https://answers.netlify.com/t/select-context-during-cli-deploy/48285/2 "2021-12-05T09:38:35Z")

</div>

I’m not sure about the CLI specifically, but it’s likely that you can solve this with `Deploy contexts` within a `netlify.toml` file, if you haven’t read it already the relevant docs are here:

> **[File-based configuration](https://docs.netlify.com/configure-builds/file-based-configuration/#deploy-contexts)**
>
> Use a netlify.toml configuration file to specify how the platform builds and deploys your project.
