Hasura CLI
hasuraA command line tool that acts as an interface to the Hasura GraphQL Engine's Metadata API, to create, migrate and manage projects.
A command line tool that acts as an interface to the Hasura GraphQL Engine's Metadata API, to create, migrate and manage projects.
Initialise a project, open the console and manage migrations. Metadata, actions, seeds and plugin commands are left out.
hasura initCreate a directory for Hasura migrations and metadata.
directoryendpointadmin_secretstring · positional 0string--endpointstring--admin-secretstring--install-manifestinteger--versionhasura consoleServe the console and migration API locally.
endpointadmin_secretno_browserprojectstring--endpointstring--admin-secretboolean--no-browserstring--console-portstring--api-portstring--addressboolean--use-server-assetspath--projecthasura migrate applyApply migrations to the database. Use --up/--down/goto by editing the command.
endpointadmin_secretprojectendpointadmin_secretdry_runstring--endpointstring--admin-secretstring--versionstring--typeupdownboolean--dry-runboolean--skip-executionboolean--all-databasespath--projecthasura migrate createCreate the files for a new migration.
nameup_sqldown_sqlprojectnamesql_from_fileprojectstring · positional 0string--up-sqlstring--down-sqlpath--sql-from-fileboolean--sql-from-serverboolean--from-serverstring--endpointstring--admin-secretpath--projectfigcompletionfigcompletionfigcompletionfigcompletionfigcompletionBefore it fills your prompt, Otty checks the installed hasura against its version. A form that does not match your version is not offered.