# Add flag to \`doppler login\` CLI command to not prompt to overwrite if already authenticated for scope

**URL:** <https://community.doppler.com/t/add-flag-to-doppler-login-cli-command-to-not-prompt-to-overwrite-if-already-authenticated-for-scope/1501>\
**Category:** Feature Requests\
**Created:** [April 3, 2024, 6:41pm UTC](https://community.doppler.com/t/add-flag-to-doppler-login-cli-command-to-not-prompt-to-overwrite-if-already-authenticated-for-scope/1501 "2024-04-03T18:41:21Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjdellecese](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/rjdellecese/32/1038_2.png) [@rjdellecese](https://community.doppler.com/u/rjdellecese)\
**Post date:** [April 3, 2024, 6:41pm UTC](https://community.doppler.com/t/add-flag-to-doppler-login-cli-command-to-not-prompt-to-overwrite-if-already-authenticated-for-scope/1501/1 "2024-04-03T18:41:21Z")

</div>

This would make it easier in certain contexts to “login only if unauthenticated” in a script—my specific use case is setting up Doppler in a VS Code dev container (I’m running `doppler login` through the `postCreateCommand` hook). `--overwrite` could be made to take a boolean arg, for example, or a `--no-overwrite` flag could be added. This way, if I wrote

```auto
doppler login --scope=/ --no-overwrite

```

the user would only be prompted if they weren’t already authenticated for the `/` scope.
