Getting Started

Why do we need Hasura CLI?

Introduction

The Hasura CLI plays a central role in database development. It allows you to:

  • Generate and execute database & hasura metadata migrations.

  • Run seed data operations

  • Run the Hasura Console (GraphiQL web client) cluster with different environments including prod, staging, local.

  • Reload metadata

  • Run API statements

  • And many more:

    • Create Hasura Actions

    • Make consistency checks

    • Install Hasura Plugins

    • Etc.

We will need it to implement best practices around the development of Moped, so unfortunately it is not an option to not use it. Luckily, there is ample support for multiple environments in Mac, Linux and Windows development.

Learning Curve

As with any serious production framework, there is a learning curve that will require some time to absorb the different components of a migration, and things might not make a lot of sense in the beginning. Fortunately, the migration system is simple compared to other frameworks and once we get used to it, it might in fact be an enjoyable feature of our workflow.

Last updated