mirror of
https://github.com/hasura/graphql-engine.git
synced 2024-12-18 04:51:35 +03:00
74 lines
2.2 KiB
ReStructuredText
74 lines
2.2 KiB
ReStructuredText
.. meta::
|
|
:description: Use hasura scripts to list scripts on the Hasura CLI
|
|
:keywords: hasura, docs, CLI, hasura scripts
|
|
|
|
.. _hasura_scripts_update-project-v2:
|
|
|
|
Hasura CLI: hasura scripts update-project-v2
|
|
--------------------------------------------
|
|
|
|
Update the Hasura Project from v1 to v2.
|
|
|
|
Synopsis
|
|
~~~~~~~~
|
|
|
|
|
|
Update the Hasura Project from v1 to v2 by executing the following actions:
|
|
|
|
1. Installs a plugin system for CLI
|
|
2. Installs CLI Extensions plugins (primarily for actions)
|
|
3. Takes a back up of migrations directory
|
|
4. Removes all metadata yaml migrations and converts everything to SQL
|
|
5. Exports the metadata from server in the new format (multiple files in a directory)
|
|
6. Re-write the config.yaml file to new format
|
|
|
|
|
|
::
|
|
|
|
hasura scripts update-project-v2 [flags]
|
|
|
|
Alias: update-config-v2
|
|
|
|
Examples
|
|
~~~~~~~~
|
|
|
|
::
|
|
|
|
# Read more about v2 configuration for CLI at https://docs.hasura.io
|
|
|
|
# Update the Hasura Project from v1 to v2
|
|
hasura scripts update-project-v2
|
|
|
|
# Update the Hasura Project from v1 to v2 with a different metadata directory:
|
|
hasura scripts update-project-v2 --metadata-dir "metadata"
|
|
|
|
Options
|
|
~~~~~~~
|
|
|
|
::
|
|
|
|
--admin-secret string admin secret for Hasura GraphQL engine
|
|
--certificate-authority string path to a cert file for the certificate authority
|
|
--endpoint string http(s) endpoint for Hasura GraphQL engine
|
|
-h, --help help for update-project-v2
|
|
--insecure-skip-tls-verify skip TLS verification and disable cert checking (default: false)
|
|
--metadata-dir string (default "metadata")
|
|
|
|
Options inherited from parent commands
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
::
|
|
|
|
--envfile string .env filename to load ENV vars from (default ".env")
|
|
--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 scripts <hasura_scripts>` - Execute helper scripts to manage Hasura Projects
|
|
|
|
*Auto generated by spf13/cobra*
|