Hasura CLI: hasura seeds create

Create a new seed file


Create a new seed file

hasura seeds create seed_name [flags]


# 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


    --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")
--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


Auto generated by spf13/cobra