Tina GraphQL Gateway CLI

Table of Contents

The "Tina GraphQL Gateway CLI" performs a few functions:

  • Generates TypeScript types based on your app's schema.
  • Auditing your app's schema and checking for errors.
  • Running a local version of the Tina Cloud content-api (using your file system's content)

Getting started

The CLI can be installed as a dev dependency in your project.

Npm:

npm install --save-dev tina-graphql-gateway-cli

Yarn:

yarn add --dev tina-graphql-gateway-cli

Usage

Arguments wrapped in <> in the command name are required.

Arguments wrapped in [] in the command name are optional.

Help

You can get help on any command with -h or --help.

e.g:

yarn tina-gql server:start --help

This will describe how to use the schema:gen-query command.