graphql-engine/docs/graphql/manual/hasura-cli/hasura_migrate_apply.rst
2018-09-11 16:41:24 +05:30

44 lines
1.0 KiB
ReStructuredText

.. _hasura_migrate_apply:
Hasura CLI: hasura migrate apply
--------------------------------
Apply migrations on the database
Synopsis
~~~~~~~~
Apply migrations on the database
::
hasura migrate apply [flags]
Options
~~~~~~~
::
--down string apply all or N down migration steps
-h, --help help for apply
--type string migrate the database to a specific version specified by the timestamp
--up string apply all or N up migration steps
--version string migrate the database to a specific version specified by the timestamp
Options inherited from parent commands
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
::
--access-key string access key for Hasura GraphQL Engine
--endpoint string http(s) endpoint for Hasura GraphQL Engine
--project string hasura project directory where the commands should be executed. (default: current directory)
SEE ALSO
~~~~~~~~
* :ref:`hasura migrate <hasura_migrate>` - Manage migrations on the database
*Auto generated by spf13/cobra*