Skip to main content

Generate Sample Schema

Generates sample schema

Synopsis

Generates sample schema consisting of three collections: products, users, orders.

tigris generate sample-schema [flags]

Examples


# Generate sample schema files in current directory orders.json, products.json and users.json
tigris generate sample-schema

# Create the database sampledb and sample collections
tigris generate sample-schema --create

# Generate sample schema and output it to stdout
tigris generate sample-schema --stdout

Options

      --branch string    Specifies branch: --branch=my_br1
-c, --create create the sample database and collections
-h, --help help for sample-schema
-p, --project string Specifies project: --project=my_proj1
-s, --stdout dump sample schemas to stdout

SEE ALSO