Back to home

cli/

datocms-cli

Version: 0.3.0

Last Updated: Unknown


DatoCMS Lib

This file has utility functions to help with DatoCMS - either creating the backend shape, or grabbing the CMS data through Axios and generating the copy.

Usage

Usage $ datocms <action> <option> Action dump Run GraphQL query and write copy json upload Convert copy.json and upload schema to DatoCMS backend query Write a GraphQL query and export it from a file project Create a new project Options --copy Define path to copy JSON (default cwd + '/copy.json') Examples $ datocms query --output path/to/query.js $ datocms upload --copy path/to/copy.json $ datocms dump --input path/to/query.js --output path/to/copy.json $ datocms project --name "New Project"

Install


Repository

https://github.com/okeeffed/pkg-cli-datocms-cli

Sections