# How to switch between projects/configs using CLI?

**URL:** <https://community.doppler.com/t/how-to-switch-between-projects-configs-using-cli/542>\
**Category:** Need Help\
**Created:** [March 5, 2022, 7:51pm UTC](https://community.doppler.com/t/how-to-switch-between-projects-configs-using-cli/542 "2022-03-05T19:51:38Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![dopmax](https://avatars.discourse-cdn.com/v4/letter/d/65b543/32.png) [@dopmax](https://community.doppler.com/u/dopmax)\
**Post date:** [March 5, 2022, 7:51pm UTC](https://community.doppler.com/t/how-to-switch-between-projects-configs-using-cli/542/1 "2022-03-05T19:51:39Z")

</div>

In the [accessing-secrets](https://docs.doppler.com/docs/accessing-secrets) docs, it shows an example on accessing a secret:  
`doppler secrets get TLS_CERT --plain`

When I try that, I get `Doppler Error: You must specify a project`. I am able to access the secret if specify the project and config  
`doppler secrets -p myproject -c dev TLS_SECRET --plain`

How can I access the secret without specifying the project and config each time like in the example doc?

Also, how do I switch between configs using the dopper CLI so when I run `dopper run -- command` it’ll use a specific config?

---

<div class="post-metadata">

**Author:** ![watsonian](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/watsonian/32/267_2.png) [@watsonian](https://community.doppler.com/u/watsonian)\
**Post date:** [March 7, 2022, 4:39pm UTC](https://community.doppler.com/t/how-to-switch-between-projects-configs-using-cli/542/2 "2022-03-07T16:39:41Z")

</div>

Hi @dopmax!

Welcome to the Doppler Community!

You can set a specific project and config that will be used for a specific folder location locally by running `doppler setup` inside the directory for your project. After doing that, any `doppler` commands you run in that directory will use the project and config you specified.

If you want to switch to a different config from the one you set as the default temporarily, you would use the `-c` flag. That will temporarily override the default you set using `doppler setup`.

Regards,  
-Joel
