Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hashbrowncms/cli
A command-line interface for HashBrown CMS
https://github.com/hashbrowncms/cli
Last synced: about 1 month ago
JSON representation
A command-line interface for HashBrown CMS
- Host: GitHub
- URL: https://github.com/hashbrowncms/cli
- Owner: HashBrownCMS
- Created: 2019-06-01T21:17:36.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-06-02T08:59:08.000Z (over 5 years ago)
- Last Synced: 2024-11-19T04:28:32.721Z (about 1 month ago)
- Language: JavaScript
- Size: 19.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# HashBrown CMS command-line interface
## Install from NPM
`npm i -g hashbrown-cli`## Example workflow
1. Set your preferred editor
```
$ hashbrown-cli set editor vim
```2. Log in to a HashBrown instance
```
$ hashbrown-cli login https://hashbrown.myserver.com myuser mypass
```3. List all projects
```
$ hashbrown-cli project lshashbrown.myserver.com
--------------------
site1.com 0aa477d87aeca34e
- live
- testingsite2.com febec265e2d80da0
- live
- testing
```4. Enter a project and environment
```
$ hashbrown-cli use febec265e2d80da0 live
```5. List content
```
$ hashbrown-cli content ls0aa477d87aeca34e:[email protected]
--------------------
Page 1 40251e2b09366633
Page 2 45f1fdc3451022b4
Page 3 cb3747b2a3272c90
Page 4 0a7724a8bed9c624
```6. Edit content using partial id
```
$ hashbrown-cli content edit 0a7
```7. Create new content
```
$ hashbrown-cli content new
```## Usage
```
Usage: hashbrown-cli []general
get Get a settings value, such as "editor"
help Display this help dialogue
login Log in to a HashBrown instance
set Set a settings value, such as "editor"
use Switch between projects and environmentsconnection
edit Edit a connection
ls List all available connections
new Create a new connection
rm Remove a connectioncontent
edit Edit a content node
ls List all available content
new Create a new content node
rm Remove a content nodeform
edit Edit a form
ls List all available forms
new Create a new form
rm Remove a formschema
edit Edit a schema
ls List all available schemas
new Create a new schema
rm Remove a schemaproject
ls List all projects
```