Hasura CLI: hasura seed create

Create a new seed file.

Synopsis

Create a new seed file.

hasura seed create seed_name [flags]

Examples

# Create a new seed file and use editor to add SQL:
hasura seed create new_table_seed

# Create a new seed by exporting data from tables already present in the database:
hasura seed create table1_seed --from-table table1

# Export data from multiple tables:
hasura seed create tables_seed --from-table table1 --from-table table2

Options

    --from-table stringArray   name of table from which seed file has to be initialized
-h, --help                     help for create

Options inherited from parent commands

--admin-secret string            admin secret for Hasura GraphQL engine (env "HASURA_GRAPHQL_ADMIN_SECRET")
--certificate-authority string   path to a cert file for the certificate authority (env "HASURA_GRAPHQL_CERTIFICATE_AUTHORITY")
--database-name string           database on which operation should be applied
--endpoint string                http(s) endpoint for Hasura GraphQL engine (env "HASURA_GRAPHQL_ENDPOINT")
--envfile string                 .env filename to load ENV vars from (default ".env")
--insecure-skip-tls-verify       skip TLS verification and disable cert checking (default: false) (env "HASURA_GRAPHQL_INSECURE_SKIP_TLS_VERIFY")
--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

Auto generated by spf13/cobra