graphql-engine/docs/graphql/manual/hasura-cli/hasura_migrate_create.rst

45 lines
1.2 KiB
ReStructuredText
Raw Normal View History

.. _hasura_migrate_create:
Hasura CLI: hasura migrate create
---------------------------------
Create files required for a migration
Synopsis
~~~~~~~~
Create sql and yaml files required for a migration
::
hasura migrate create [migration-name] [flags]
Options
~~~~~~~
::
--admin-secret string admin secret for Hasura GraphQL Engine
--endpoint string http(s) endpoint for Hasura GraphQL Engine
-h, --help help for create
--metadata-from-file string path to a hasura metadata file to be used for up actions
--metadata-from-server take metadata from the server and write it as an up migration file
--sql-from-file string path to an sql file which contains the up actions
Options inherited from parent commands
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
--log-level string log level (DEBUG, INFO, WARN, ERROR, FATAL) (default "INFO")
--project string directory where commands are executed (default: current dir)
--skip-update-check Skip automatic update check on command execution
SEE ALSO
~~~~~~~~
* :ref:`hasura migrate <hasura_migrate>` - Manage migrations on the database
*Auto generated by spf13/cobra*