@takeshape/cli

The TakeShape CLI tsg aids in local development of TakeShape projects that use the TakeShape SSG. The CLI handles local authentication to the TS API.

@takeshape/cli is compatible with MacOS and Linux / Unix operating systems, and Windows 10 with Windows Subsystem for Linux.

Install

NPM

npm install --save-dev @takeshape/cli

Yarn

yarn add --dev @takeshape/cli

Usage

tsg  <command>

Commands

init

build

watch

status

Options

--token, -t TakeShape API auth token

--site, -s TakeShape static site id

--file, -f path to tsg.yml

--output, -o build output path

--endpoint, -e endpoint

--version,  -v tsg version number

--cache -c use file cache (default false)

--watchContent, -W rebuild on content change (watch only)

Example

$ tsg build --file path/to/tsg.yml

Created by Init

  • .graphqlconfig -  Reference to the TS endpoint
  • .tsg-project.graphql - local version of the schema 
  • .tsgrc -  Details to connect to a specific project on the TS platform

Join us

Interested in joining the team as coworker or investor?

contact@takeshape.com