diff --git a/divshot.md b/divshot.md index c79dbd1dd..e5aef9c54 100644 --- a/divshot.md +++ b/divshot.md @@ -2,6 +2,8 @@ title: Divshot --- +## Getting started + ### Install divshot-cli ``` @@ -9,9 +11,7 @@ $ npm install -g divshot-cli $ divshot login ``` -### Create `divshot.json` - -Only `root` is mandatory. +### Create divshot.json ```json { @@ -23,7 +23,6 @@ Only `root` is mandatory. ### Push your app ``` -$ divshot config:add name your-app-name-here $ divshot push ``` @@ -62,3 +61,68 @@ See [configuration reference](https://docs.divshot.com/guides/configuration) and } } ``` + +## CLI + +```sh +divshot s # server + +divshot push [staging|production|development] +divshot pull [staging|production|development] +divshot purge # cleans cache +divshot files + +divshot promote development production + +divshot open [] +``` + +### Config +Edits `divshot.json` + +``` + +divshot config:add name your-app-name +divshot config:remove name +``` + +### Environment vars + +``` +divshot env:add KEY=value +divshot env:remove KEY +divshot env:pull +``` + +### App manangement + +``` +divshot create +divshot rename +divshot status +divshot destroy +``` + +divshot apps +divshot account +``` + +### Password protect + +```sh +divshot protect +``` + +## Custom domains + +See [custom domains guide](http://docs.divshot.com/guides/domains). + +```sh +divshot domains:add foo.bar.com +``` + +In your DNS create a `CNAME`: (no apex domains are supported) + +``` +www. CNAME yourname.divshot.io +```