1.2.0 • Published 9 years ago
@cloudstitch/cli v1.2.0
cloudstitch-cli
Install
npm install -g @cloudstitch/cliThe Cloudstitch CLI provides command line access to Cloudstitch, as well as a web server to facilitate easy development of widgets.
Commands
The following commands can be invoked by typing cloudstitch <command> on the command line.
No login required:
pull user/app- Pulls down files to local diskserve- Serves the current directory as a Cloudstitch widget.signup- Helps you create and log into a new Cloudstitch accountlogin- Helps you log into Cloudstitch save your API key to ~/.config/cloudstitch.jsonuse [<folder>]- Provides usage information base of your widget
Login required:
clone <user>/<app> [folder]- Clones the user/app on Cloudstitch and does a pull into[folder]. If[folder]is not specificed, creates one named<app>.create- Helps you create a new app based on one of seven base project types.push [filename]- Pushes[filename](default: all files) to the remote Cloudstitch project.publish [--configure]- Publishes static site to github repository. NOTE: you must complete github authentication on cloutstitch.com before this can be used.
Cloudstitch Package format
Cloudstitch project record information in a cloudstitch.json file stored at the project root.
Available properties:
user- The username of the widget instance on Cloudstitchapp- The appname of the widget instance on Cloudstitchkind- The type of widget (widget|jekyll, etc.)
Authentication and Configuration
Your command line configuration, including API key, is stored in file called ~/.config/cloudstitch.json.
The format of the config file is:
{
"ApiKey": "Your API Key"
}