Fauna CLI commands

add-endpoint

Adds an endpoint to query databases.

cloud-login

Adds a Fauna endpoint with login credentials.

create-database

Creates a database.

create-key

Creates a key to access a database.

default-endpoint

Selects an endpoint configuration entry as the default endpoint.

delete-database

Deletes a database.

delete-endpoint

Deletes an endpoint entry from the configuration file.

delete-key

Deletes a database key.

endpoint add

Adds an endpoint to ~/.fauna-shell.

endpoint list

Lists endpoints in ~/.fauna-shell.

endpoint remove

Removes an endpoint from ~/.fauna-shell.

endpoint select

Sets the default endpoint.

environment add

Adds an environment to the .fauna-project file.

environment list

Lists environments available in .fauna-project file.

environment select

Updates the default environment in .fauna-project file.

eval

Runs an FQL query.

help

Displays the Fauna CLI help.

import

Imports JSON files, CSV files, or directories into a collection.

list-databases

Lists child databases.

list-endpoints

Lists connection endpoints.

list-keys

Lists keys in the current database.

project init

Initializes a directory as a Fauna project by generating a .fauna-project file.

run-queries

Runs the queries from a file.

schema diff

Prints the diff between local and remote schema.

schema pull

Pulls the database schema .fsl files into the current project.

schema push

Pushes a directory of .fsl files to Fauna.

shell

Starts an interactive Fauna session to run queries.

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!