# Using a0deploy to set prompts

**URL:** <https://community.auth0.com/t/using-a0deploy-to-set-prompts/87720>\
**Category:** Get Help\
**Tags:** auth0-deploy-cli, prompt\
**Created:** [July 27, 2022, 7:12am UTC](https://community.auth0.com/t/using-a0deploy-to-set-prompts/87720 "2022-07-27T07:12:11Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sean.mclemon1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sean.mclemon1/32/33885_2.png) [@sean.mclemon1](https://community.auth0.com/u/sean.mclemon1)\
**Post date:** [July 27, 2022, 7:12am UTC](https://community.auth0.com/t/using-a0deploy-to-set-prompts/87720/1 "2022-07-27T07:12:11Z")

</div>

Will Vedder implemented some requested functionality in the a0deploy cli tool which allows you to manage prompts ([this issue](https://github.com/auth0/auth0-deploy-cli/issues/229), [this PR](https://github.com/auth0/auth0-deploy-cli/pull/530)). This was _really_ appreciated, however I’m having trouble when I try to integrate the prompts functionality to our existing setup (we already use a0deploy to manage resource servers, clients, grants, etc). I’ve added a file `prompts/prompts.json` to our config, and it looks a little like the below:

```auto
{
    "universal_login_experience": "new",
    "identifier_first": true,
    "webauthn_platform_first_factor": false,
    "customText": {
        "en": {
            "login": {
                "login": {
                    "pageTitle":"TEST",
                }
            }
        }
    }
}

```

But we run a0deploy (`a0deploy import -c config-dev.json -i .` in my case) everything but the prompts get set. There are some messages printed by a0deploy (included below, I actually ran this with `--debug`) which suggest that it considers the prompts settings … but the prompt settings aren’t actually updated.

```auto
...
info: Updated [guardianFactorTemplates]: {"name":"sms"}
info: Updated [prompts]: Prompts settings and prompts custom text
debug: Start processChanges for databases [delete:0] [update:2], [create:0], [conflicts:0]
debug: Stripping "" read-only fields ["strategy","name","id"]
debug: Stripping "" read-only fields ["strategy","name","id"]
info: Updated [databases]: {"name":" ****","id":"****"}
...

```

I’m using a0deploy version `7.14.1` of the a0deploy tool. Is there something else I should have done? Maybe a setting in our tenant.json file? Or is my `prompts/prompts.json` file named or structured incorrectly?

---

<div class="post-metadata">

**Author:** ![art.stupels](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/art.stupels/32/30429_2.png) [@art.stupels](https://community.auth0.com/u/art.stupels)\
**Post date:** [July 27, 2022, 11:52am UTC](https://community.auth0.com/t/using-a0deploy-to-set-prompts/87720/2 "2022-07-27T11:52:51Z")

</div>

Hello Sean,

You will need to split your file into two files: **prompts.json** and **custom-text.json**

**`prompts/prompts.json`**

```auto
{
  "universal_login_experience": "new",
  "identifier_first": true,
  "webauthn_platform_first_factor": false
}

```

**`prompts/custom-text.json`**

```auto
{
  "en": {
    "login": {
        "login": {
            "pageTitle":"TEST"
        }
    }
  }
}

```

Please test and let me know if that works.

---

<div class="post-metadata">

**Author:** ![sean.mclemon1](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/sean.mclemon1/32/33885_2.png) [@sean.mclemon1](https://community.auth0.com/u/sean.mclemon1)\
**Post date:** [July 27, 2022, 12:38pm UTC](https://community.auth0.com/t/using-a0deploy-to-set-prompts/87720/3 "2022-07-27T12:38:57Z")

</div>

Hey Art,

Thanks for getting back to me both here and on the GitHub issue (I was about to add a note there that I’ve raised this issue). It looks like this worked 🙂

Thanks once more!  
Sean

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [July 28, 2022, 1:13pm UTC](https://community.auth0.com/t/using-a0deploy-to-set-prompts/87720/4 "2022-07-28T13:13:05Z")

</div>


