mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-17 12:31:52 +03:00
52 lines
1.5 KiB
ReStructuredText
52 lines
1.5 KiB
ReStructuredText
.. meta::
|
|
:description: Use hasura migrate apply to apply Hasura migrations on a database with the Hasura CLI
|
|
:keywords: hasura, docs, CLI, hasura migrate apply
|
|
|
|
.. _hasura_migrate_apply:
|
|
|
|
Hasura CLI: hasura migrate apply
|
|
--------------------------------
|
|
|
|
Apply migrations on the database.
|
|
|
|
Synopsis
|
|
~~~~~~~~
|
|
|
|
|
|
Apply migrations on the database.
|
|
|
|
::
|
|
|
|
hasura migrate apply [flags]
|
|
|
|
Options
|
|
~~~~~~~
|
|
|
|
::
|
|
|
|
--admin-secret string admin secret for Hasura GraphQL engine
|
|
--down string apply all or N down migration steps
|
|
--endpoint string http(s) endpoint for Hasura GraphQL engine
|
|
-h, --help help for apply
|
|
--skip-execution skip executing the migration action, but mark them as applied
|
|
--type string type of migration (up, down) to be used with version flag (default "up")
|
|
--up string apply all or N up migration steps
|
|
--version string only apply this particular migration
|
|
|
|
Options inherited from parent commands
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
::
|
|
|
|
--log-level string log level (DEBUG, INFO, WARN, ERROR, FATAL) (default "INFO")
|
|
--no-color do not colorize output (default: false)
|
|
--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*
|