environment add

Add an environment to the .fauna-project file.

Syntax

fauna environment add [--non-interactive --name <value> --endpoint <value> --database <value>] [--set-default]

Description

Add a new environment to .fauna-project.

fauna project and fauna environment are still in beta. Behavior is subject to change.

Arguments

None

Options

Option Description

--non-interactive

Disable interaction.

--name

Environment name.

--endpoint

Endpoint to use in this environment.

--database

Database path to use in this environment.

--set-default

Set this environment as the default.

--help

Help for environment add command.

Examples

fauna environment add
fauna environment add --name my-app --endpoint dev --database my-database
fauna environment add --name my-app --endpoint dev --database my-database --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!