FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date.

For more details, review the migration guide. Contact support@fauna.com with any questions.

default-endpoint

Set a Fauna endpoint as the default.

Syntax

fauna default-endpoint ENDPOINT_ALIAS [OPTIONS]

Description

The default-endpoint command configures an endpoint to be the default.

Arguments

Argument Description

ENDPOINT_ALIAS

The name of the endpoint to set as the default.

Example

This fauna-shell configuration file includes entries for three endpoints: localhost, cloud, and db2. db2 is the default:

default=db2

[localhost]
domain=127.0.0.1
port=8443
scheme=http
secret=secret

[cloud]
domain=db.fauna.com
scheme=https
secret=fnADS@PxN@2CE@n7z@kDa4_p6Z@fIBaZm@Qt@bYT

[db2]
domain=private.example
port=8443
scheme=https
secret=MY_ORGANIZATION_SECRET

Now, run fauna default-endpoint to change the default endpoint to localhost:

$ fauna defaut-endpoint localhost
Endpoint 'localhost' set as default endpoint.

The contents of the configuration file now confirm that the default endpoint has changed to localhost. The updated configuration file should resemble:

default=localhost

[localhost]
domain=127.0.0.1
port=8443
scheme=http
secret=secret

[cloud]
domain=db.fauna.com
scheme=https
secret=fnADS@PxN@2CE@n7z@kDa4_p6Z@fIBaZm@Qt@bYT

[db2]
domain=private.example
port=8443
scheme=https
secret=MY_ORGANIZATION_SECRET

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!