schema push
Push a directory of .fsl files to Fauna.
Syntax
fauna schema push [--dir <value>] [--endpoint <value>] [--environment <value>] [--force] [--help] [--secret <value>] [--timeout <value>] [--url <value>]
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:
-
The Fauna Dashboard.
-
The Fauna CLI
-
FQL methods, such as
Collection.create()
orrole.update()
, that write to a schema’s underlying document.
A schema change triggers a transaction that validates all schemas for the database. To avoid errors, perform schema changes sequentially instead.
Options
Option | Description |
---|---|
|
Directory of .fsl files to push. Defaults to the |
|
Fauna server endpoint. |
|
Environment to use, from a Fauna project. |
|
Push the change without a |
|
Help for |
|
Authentication secret. Overrides the
secret in |
|
Connection timeout in milliseconds. |
|
Database URL. Overrides the |
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!