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.
npm i -g fauna-shell fauna cloud-login fauna -h fauna list-databases
open a shell to a database:
fauna shell test-demo
Running queries from a file
fauna eval test-demo --file=./fauna.fql