Duration
2 min
Access
Free
Transcript
Needs source

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