cmsutil

command module
v0.3.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 12, 2021 License: MIT Imports: 1 Imported by: 0

README

cmsutil

Headless CMS CLI Utility

Please log any issues to Github issues.

The current version works with GraphCMS and backs up your project to disk, including asset files.

Install

Once you have Go installed on your target environment, to install cmsutil run

go get github.com/arroyo/cmsutil

Config

In your home directory create a folder called ".cmsutil" and put a text file called "config.yaml" in it.

There is an example config file in the repo.

It has been tested with YAML, but it is possible to use JSON or TOML (use the extensions .json and .toml respectively).

CMS_API_URL must start with https:// or http://

Envars

You can override the settings in your yaml config with the following environment variables

CMS_API_URL

CMS_API_KEY

Usage

Get a copy of your schema or content with the download command. Backup your entire project with the backup command.

Download schema models and enumerations
cmsutil download schemas
Download node content and assets
cmsutil download content
Backup your site

download both schemas and content into a timestamped folder

cmsutil backup
Help

Get general help or help with a specific command using.

cmsutil help
cmsutil download -h
cmsutil backup -h

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
Package cmd backup Copyright © 2020 John Arroyo Package cmd download content Copyright © 2020 John Arroyo Package cmd download schemas Copyright © 2020 John Arroyo
Package cmd backup Copyright © 2020 John Arroyo Package cmd download content Copyright © 2020 John Arroyo Package cmd download schemas Copyright © 2020 John Arroyo
cms

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL