Skip to content

Fauna secret

Victor Duarte edited this page Jul 6, 2022 · 1 revision

How to create a Fauna secret

It only takes a few seconds to get setup. There are three steps:


  1. Sign in to your FaunaDB account

    Visit https://dashboard.fauna.com/ in your web browser, and log in / sign up.

  2. Create a database for your new project.

    Skip this step if you have performed it previously.

    1. Click the New Database button,

    2. Enter faugra as the database name, (or any name you might prefer)

    3. Click Save.

  3. Create an admin key for the faugra database

    Skip this step if you have performed it previously.

    1. Click Security in the left navigation bar,

    2. Click New Key,

    3. Ensure that the Database field matches the database name you just created,

    4. Ensure that the Role field is set to Admin,

    5. Enter Faugra Key into the Key Name field,

    6. Click Save,

    7. Copy the displayed secret, and store it somewhere safe. This is your fauna secret!

That’s it!

You’re all done setting up a Fauna secret.

From now on, you can run faugra using one of the 2 forms:

  • npx faugra --secret <YOUR_FAUNA_SECRET>
  • FAUNA_SECRET=<YOUR_FAUNA_SECRET> npx faugra
Clone this wiki locally