All apps/Hasura CLI

Hasura CLI

hasura

A command line tool that acts as an interface to the Hasura GraphQL Engine's Metadata API, to create, migrate and manage projects.

Runs as hasura|macOS, Linux, Windows|hasura.io

Autocomplete

Fig spec, with what the manifest adds · 36 subcommands · 6 options
Published once and never changed; check the digest before caching
sha256
e3ce5c165f5bee0e6a94db4adb29a76916be374ceb85e46c1df07b617e30d77a
Size
101887 bytes
Subcommands36 subcommands
hasura actions
Manage Hasura actions
hasura actions codegen
Generate code for actions
hasura actions create
Create a Hasura action
hasura actions use-codegen
Use the codegen to generate code for Hasura actions
hasura completions
Generate auto completion code
hasura console
Open the console to manage the database and try out APIs
hasura init
Initialize a directory for Hasura GraphQL engine migrations
hasura md
hasura md apply
Apply Hasura metadata on a database
hasura md clear
Clear Hasura GraphQL engine metadata on the database
hasura md diff
Show a highlighted diff of Hasura metadata
hasura md export
Export Hasura GraphQL engine metadata from the database
hasura md ic
Manage inconsistent objects in Hasura metadata
hasura md ic drop
Drop inconsistent objects from the metadata
hasura md ic ls
List all inconsistent objects from the metadata
hasura md ic status
Check if the metadata is inconsistent or not
hasura md reload
Reload Hasura GraphQL engine metadata on the database
hasura migrate
Manage migrations on the database
hasura migrate apply
Apply migrations on the database
hasura migrate create
Create files required for a migration
hasura migrate delete
Clear migrations from local project and server
hasura migrate squash
Squash multiple migrations into a single one
hasura migrate status
Display current status of migrations on a database
hasura plugin
Manage plugins for the CLI
hasura plugin install
Install a plugin from the index
hasura plugin list
List all available plugins from index, versions and installation status
hasura plugin uninstall
Uninstall a plugin
hasura plugin upgrade
Upgrade a plugin to a newer version
hasura scripts
Execute helper scripts to manage Hasura projects
hasura scripts update-project-v2
Update the Hasura project from config v1 to v2
hasura scripts update-project-v3
Update the Hasura project from config v2 to v3
hasura sd
Manage seed data
hasura sd apply
Apply seed data
hasura sd create
Create a new seed file
hasura update-cli
Update the CLI to latest or a specific version
hasura version
Print the CLI version
OptionsOn hasura itself
--envfile
.env filename to load ENV vars from <string>
-h--help
Help for hasura
--log-level
Log level <string>
--no-color
Do not colorize output
--project
Directory where commands are executed <string>
--skip-update-check
Skip automatic update check on command execution