Tina GraphQL Gateway CLI Commands


Commands

tina-gql server:start [options]

Start a GraphQL server using your Filesystem's content as the datasource. Your site will need to have a valid .tina configuration to define its schema.

Options

--port Specify a port to run the server on. (default 4001)

tina-gql schema:types [options]

Generate Typescript types based on your site's schema.

Options

--schema, -s Dump the graphql SDL

tina-gql schema:audit [options]

Check for .tina/front_matter/templates folder for any issues.

Options

--path Specify a relative path to the .tina folder (eg. my-site)

tina-gql schema:dump [options]

Dump JSON schema into specified path

Options

--folder Dump the schema into the given path