Installing the FaunaDB CLI and using it to send queries from a local file

InstructorChris Biscardi

Share this video with your friends

Send Tweet

The FaunaDB CLI is distributed on NPM and includes an interactive shell as well as the ability to send queries from a file.

npm i -g fauna-shell
fauna cloud-login
fauna -h
fauna list-databases

open a shell to a database:

fauna shell test-demo
Match(Index("all_customers"))
Paginate(Match(Index("all_customers")))

Running queries from a file

fauna eval test-demo --file=./fauna.fql