Creates a Fauna endpoint in the configuration file based on your Fauna credentials.

fauna cloud-login


The cloud-login command prompts you for your Fauna credentials, and if you authenticate successfully, creates a cloud endpoint in the configuration file that you can use to query your top-level Fauna database.

You can provide a secret instead of an email address. When you do so, you are not prompted for a password, and a cloud endpoint is created in the configuration file that connects you to the database associated with the secret.

If the cloud endpoint already exists when you run cloud-login, you are asked if you wish to overwrite the existing cloud endpoint configuration.




Option Description


Optional - The Fauna server domain, that is, the hostname where Fauna is running. Defaults to


Optional - The name of the endpoint to use for the command.


Optional - The connection port. Defaults to 8443.


Optional - The connection scheme. Must be one of https or http. Defaults to https.


Optional - The secret to use. A secret authenticates your connection to Fauna, and connects you to a specific database.


Optional - The connection timeout, an integer number of milliseconds. When the specified period has elapsed, fauna-shell stops waiting for a response and displays an error.

The default is zero, which means that fauna-shell waits until a response is received.


The following example demonstrates the use of cloud-login, and the prompts for email/secret and password:

fauna cloud-login
For email login, enter your email below, and then your password.
For login with 3rd-party identity providers like Github or Netlify,
please acquire a key from Dashboard > Security and enter it below

Email or secret key: <your email address>
Password: ***********

After a successful login, your configuration file now contains a cloud endpoint that includes the secret to access your top level database.

To see the configuration file, perform one of these steps:

  1. On Linux, macOS, and other Unix-like operating systems, run the following command in a terminal:

    cat $HOME/.fauna-shell
  2. On Windows, run the following command in a command terminal:

    type %userprofile%\.fauna-shell

The configuration file should resemble:


Every secret provided by Fauna is unique, so the secret you see when you run cloud-login is guaranteed to differ from the one above. The secret above has been modified; it cannot be used to access a real database.

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email

Thank you for your feedback!