A command-line tool for interacting with the ContentStack APIs
README
·
CHANGELOG
.
CONTRIBUTING
Report Bug
·
Request Feature
People working with nodejs commonly use a version manager like nodenv
, nvm
, or asdf
to manage several versions of nodejs side-by-side.
These tools install global packages per node version which means you have to install the node csdx
plugin once per node version.
In contrast Golang offers the ability to build source code into single-file executables which truly install globally, independent of any versioning tools.
A Golang version of go-contentstack
simplifies the install and update story making this plugin more manageable.
With a working golang installation at version >= 1.18 you can install or update with:
go install github.com/davidalpert/go-contentstack/cmd/cs@latest
Visit the Releases page to find binary packages pre-compiled for a variety of GOOS
and GOARCH
combinations:
- Download an appropriate package for your
GOOS
andGOARCH
; - Unzip it and put the binary in your path;
- Check the version installed:
cs version
-
go-contentstack
ships with anuninstall
sub-command which cleans up and removes itself:cs uninstall
- TODO; coming as the project nears v1.0
If you run into trouble you can ask cs
to write some diagnostics to a log file by setting the following environment variables:
Variable | Default | Description |
---|---|---|
CONTENTSTACK_CLI_LOG_LEVEL | "fatal" |
"fatal" , "error" , "warning" , "warn" , "info" , "debug" |
CONTENTSTACK_CLI_LOG_FORMAT | "text" |
"text" or "json" |
CONTENTSTACK_CLI_LOG_FILE | "" |
path to a log file; when empty logs go to STDOUT |
See open issues project board for a list of known issues and up-for-grabs tasks.
See the CONTRIBUTING guide for local development setup and contribution guidelines.
Distributed under the GPU v3 License. See LICENSE for more information.
David Alpert - @davidalpert
Project Link: https://github.com/davidalpert/go-contentstack