0.5.0 • Published 3 years ago

tina-graphql-gateway-cli v0.5.0

Weekly downloads
11
License
Apache-2.0
Repository
github
Last release
3 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

3 years ago

0.4.0

3 years ago

0.3.1

3 years ago

0.3.0

3 years ago

0.2.60

3 years ago

0.2.58-beta.0

3 years ago

0.2.58-beta.1

3 years ago

0.2.59

3 years ago

0.2.58

3 years ago

0.2.57

3 years ago

0.2.56

3 years ago

0.2.52

3 years ago

0.2.54

3 years ago

0.2.53

3 years ago

0.2.49

3 years ago

0.2.51-0

3 years ago

0.2.51

3 years ago

0.2.50

3 years ago

0.2.48

3 years ago

0.2.45

3 years ago

0.2.44

3 years ago

0.2.43

3 years ago

0.2.47-5

3 years ago

0.2.47-4

3 years ago

0.2.47-6

3 years ago

0.2.47-1

3 years ago

0.2.47-0

3 years ago

0.2.47-3

3 years ago

0.2.47-2

3 years ago

0.2.41

3 years ago

0.2.40

3 years ago

0.2.38

3 years ago

0.2.37

3 years ago

0.2.42

3 years ago

0.2.41-canary-1

3 years ago

0.2.39

3 years ago

0.2.36

3 years ago

0.2.35

3 years ago

0.2.34

3 years ago

0.2.32-canary-5

3 years ago

0.2.33

3 years ago

0.2.32-canary-4

3 years ago

0.2.32-canary-3

3 years ago

0.2.32-canary-2

3 years ago

0.2.32-canary-1

3 years ago

0.2.32

3 years ago

0.2.31

3 years ago

0.2.30

3 years ago

0.2.27

3 years ago