Check out v4 of the Fauna CLI
v4 of the Fauna CLI is now in beta. The new version introduces enhancements to the developer experience, including an improved authentication workflow. To get started, check out the CLI v4 quick start. |
fauna add-endpoint
Learn: Endpoints |
---|
Adds an endpoint to the
.fauna-shell
configuration file.
This command is deprecated. Use
fauna endpoint add
instead.
Syntax
fauna add-endpoint <NAME> [-y | --no-input] [--secret <value>]
[--set-default] [--url <value>]
Description
The add-endpoint
command adds an
endpoint to the
.fauna-shell
configuration file. If
you don’t provide a URL or secret, you’re prompted for them, and they are written
to the configuration file.
fauna cloud-login
is the preferred way to add an
endpoint. Use fauna endpoint add
to
add a non-standard endpoint, such as when using the
Fauna Dev Docker image.
Options
Option | Description |
---|---|
|
Disables interaction |
|
Authentication secret. Overrides the
secret in Use a scoped key to interact with a child database using a parent database’s admin key. For example, with a parent database’s admin key secret of |
|
Sets this environment as the default |
|
Database URL |
Examples
fauna endpoint add
fauna endpoint add localhost --url http://localhost:8443/ --key secret
fauna endpoint add localhost --set-default
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!