0.5.0 • Published 4 years ago

tina-graphql-gateway-cli v0.5.0

Weekly downloads
11
License
Apache-2.0
Repository
github
Last release
4 years ago

Tina Graphql-Gateway CLI

The "Tina Graphql-Gateway CLI" can be used to set up your project with Tina Cloud configuration, and run 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 schema:gen-query --help

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

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

Development

To run this project locally in another directory, you can create a symlink by running

npm link

Then tina-gql can be run in another directory by running:

tina-gql <commands>

Alternatively, the CLI can be added to a project instead of being used globally.

To run the command locally in this project directory, you can run:

yarn tina-gql <commands>
0.5.0

4 years ago

0.4.0

4 years ago

0.3.1

4 years ago

0.3.0

4 years ago

0.2.60

4 years ago

0.2.58-beta.0

4 years ago

0.2.58-beta.1

4 years ago

0.2.59

4 years ago

0.2.58

4 years ago

0.2.57

4 years ago

0.2.56

4 years ago

0.2.52

4 years ago

0.2.54

4 years ago

0.2.53

4 years ago

0.2.49

4 years ago

0.2.51-0

4 years ago

0.2.51

4 years ago

0.2.50

4 years ago

0.2.48

4 years ago

0.2.45

4 years ago

0.2.44

4 years ago

0.2.43

4 years ago

0.2.47-5

4 years ago

0.2.47-4

4 years ago

0.2.47-6

4 years ago

0.2.47-1

4 years ago

0.2.47-0

4 years ago

0.2.47-3

4 years ago

0.2.47-2

4 years ago

0.2.41

4 years ago

0.2.40

4 years ago

0.2.38

4 years ago

0.2.37

4 years ago

0.2.42

4 years ago

0.2.41-canary-1

4 years ago

0.2.39

4 years ago

0.2.36

4 years ago

0.2.35

4 years ago

0.2.34

4 years ago

0.2.32-canary-5

4 years ago

0.2.33

4 years ago

0.2.32-canary-4

4 years ago

0.2.32-canary-3

4 years ago

0.2.32-canary-2

4 years ago

0.2.32-canary-1

4 years ago

0.2.32

4 years ago

0.2.31

4 years ago

0.2.30

4 years ago

0.2.27

4 years ago