1×
Become a member
to unlock all features

Level Up!

Access all courses & lessons on egghead today and lock-in your price for life.

Autoplay

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

    Chris BiscardiChris Biscardi
    faunadbFaunaDB

    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
    Code

    Code

    Become a Member to view code

    You must be a Member to view code

    Access all courses and lessons, track your progress, gain confidence and expertise.

    Become a Member
    and unlock code for this lesson
    Discuss

    Discuss