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:
- Installs a plugin system for CLI
- Installs CLI Extensions plugins (primarily for actions)
- Takes a back up of migrations directory
- Removes all metadata yaml migrations and converts everything to SQL
- Exports the metadata from server in the new format (multiple files in a directory)
- 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¶
- hasura scripts - Execute helper scripts to manage Hasura Projects
Auto generated by spf13/cobra
Was this page helpful?
Thank you for your feedback!
Stay up to date with product & security news
See past editions