Course lesson
Installing the FaunaDB CLI and using it to send queries from a local file
The FaunaDB CLI is distributed on NPM and includes an interactive shell as well as the ability to send queries from a file.
- 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-databasesopen a shell to a database:
fauna shell test-demoMatch(Index("all_customers"))Paginate(Match(Index("all_customers")))Running queries from a file
fauna eval test-demo --file=./fauna.fql