Fauna CLI commands

add-endpoint

Add an endpoint to query databases.

cloud-login

Add a Fauna endpoint with login credentials.

create-database

Create a database.

create-key

Create a key to access a database.

default-endpoint

Select an endpoint configuration entry as the default endpoint.

delete-database

Delete a database.

delete-endpoint

Delete an endpoint entry from the configuration file.

delete-key

Delete a database key.

endpoint add

Add an endpoint to ~/.fauna-shell.

endpoint list

List endpoints in ~/.fauna-shell.

endpoint remove

Remove an endpoint from ~/.fauna-shell.

endpoint select

Set the default endpoint.

environment add

Add an environment to the .fauna-project file.

environment list

List environments available in .fauna-project file.

environment select

Update the default environment in .fauna-project file.

eval

Run an FQL query.

help

Display the Fauna CLI help.

import

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

list-databases

List child databases in the current database.

list-endpoints

List connection endpoints.

list-keys

List keys in the current database.

project init

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

run-queries

Run the queries from a file.

schema diff

Print the diff between local and remote schema.

schema pull

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

schema push

Push a directory of .fsl files to Fauna.

shell

Start 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!