Fauna CLI
The Fauna CLI lets you access Fauna from your terminal. You
can use the CLI to:
Requirements
Node.js v18.x or later.
Installation
Install the Fauna CLI globally using npm:
npm install -g fauna-shell
To upgrade the CLI, run:
npm update -g fauna-shell
Documentation
For usage instructions and a full list of
commands, see the
Fauna docs.
You can also access help directly in the CLI by running:
fauna --help
fauna <COMMAND> --help
fauna eval --help
Development
To test changes during development, follow these steps:
-
Install the required packages:
yarn install
-
You can run commands in dev in one of two ways:
-
Option 1: Run against the just-in-time built project with development
settings:
./bin/dev cloud-login
./bin/dev eval
-
Option 2: Run against built assets. Use yarn link
to place them in
your $PATH
as if globally installed:
yarn build && yarn link
fauna eval