schema push

Push a directory of .fsl files to Fauna.

Syntax

fauna schema push [--url <value>] [--timeout <value>] [--secret <value>] [--endpoint <value>] [--environment <value>] [--dir <value>] [--force] [--help]

Description

The schema push command pushes a directory of .fsl files to Fauna.

Avoid concurrent schema changes

Concurrent schema writes in the same database can cause contended transactions, even if the changes affect different schemas. This includes schema changes made using:

A schema change triggers a transaction that validates all schemas for the database. To avoid errors, perform schema changes sequentially instead.

Arguments

None

Options

Option Description

--dir

Directory of .fsl files to push. Defaults to the .fauna-project directory.

--endpoint

Fauna server endpoint.

--environment

Environment to use, from a Fauna project.

--force

Push the change without a diff or schema version check.

--help

Help for schema push command.

--secret

Authentication secret. Overrides the secret in .fauna-shell.

--timeout

Connection timeout in milliseconds.

--url

Database URL. Overrides the url in .fauna-shell.

Examples

fauna schema push
fauna schema push --dir schemas/myschema

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!