CLI for Divshot
Want to see pretty graphs? Log in now!
npm install divshot-cli
|20||downloads in the last day|
|223||downloads in the last week|
|1 287||downloads in the last month|
|Last Published By|
|Version||0.9.13 last updated a day ago|
|Keywords||divshot, hosting, static|
|Dependencies (21)||regular, divshot-api, request, lodash, promptly, superstatic, async, feedback, moment, home-dir, through, chalk, sizer, tarzan, divshot-upload, nash, semver, mkdirp, open, read, cozy-slug|
CLI for Divshot
- account - display basic account details
- account:redeem - redeem a voucher and credit it to your account
- apps - list your apps
- auth:token - print out your access token
- config - list, set, or remove keys and values from your app
- config:add - add a value to the config file
- config:remove - remove a value from the config file
- create - create a new app
- destroy - delete an app
- domains - list your domains
- domains:add - add a custom domain to your app
- domains:remove - remove a custom domain from your app
- help - get help with common commands
- init - step by step guide to initiate an app in the current directory
- login - login to Divshot
- logout - logout from Divshot
- open - open the current app in your default browser
- promote - promote one environment to another
- protect - add http basic auth to any environment
- push - deploy your app to the specified environment
- rename - change the name of an app
- rollback - rollback an environment to a previous release
- server - start server for local dev
- status - show release info for each environment
-h, --help- show the help menu
-v, --version- show current version of Divshot CLI
-t, --token [token]- manually pass access token
-a, --app [app name]- manually supply an app name
development- this is the default environment during app deployment
Each environment is immediately available and deployed at the following URL scheme: http://[environment].[app name].divshot.io. You may reference Divshot Builds and Environments for a more detailed explanation.
npm install divshot-cli -g
Display your basic account details.
divshot account:redeem [voucher code]
Redeem a voucher and credit it to your account.
List your Divshot apps.
Print out your access token. This token is used to authenticate you with the Divshot API.
List the keys and values from your Divshot app config file. See Divshot configuration reference for more details on these values.
divshot config:add [key] [value]
Add a value to your Divshot app config file. See Divshot configuration reference for more details on these values.
divshot config:remove [key]
Remove a value from your Divshot app config file. See Divshot configuration reference for more details on these values.
divshot create [app name]
Create a new Divshot app. If no app name is provided, it attempts to read from your Divshot configuration file. It that does not exist, it will prompt you for an app name. You can easily create a new Divshot app locally and remotely by using
dishot destroy [app name]
Delete a Divshot app. This is permanent and immediate. It removes not only your files, but it disables the subdomain associated with the application.
See a list of all custom domains associated with your app. For more in-depth usage, see Divshot Custom Domains.
divshot domains:add [domain]
divshot domains:remove [domain]
Get help with common Divshot commands. Lists all the available commands.
If you need help with a specific command, you may specify that command after the word help.
divshot help [command]
Step by step guide to initiate an app in the current directory. The steps you are taken through are as follows:
name- app name
root- the root directory of the app relative to the current directory
error page- the relative path or absolute url of an error/not foud page to display in in your app.
create app- do you want to create new app on Divshot upon completing these steps? (As opposed to only creating the app locally)
Once you initiated your app, the root directory will now contain a
divshot.json file with your settings. You may reference Divshot configuration reference for a more detailed description of this file.
Login to your Divshot account.
Logout of your account.
divshot open [optional environment]
Open app in your default browser.
divshot open- Opens the production, CDN environment of your app
divshot open development- Opens up the development environment of your app
divshot promote [from env] [to env]
Promote one environment to another. A typical use case for this command would be to deploy your staging app to production without having to redeploy all the files. See environments for a list of available environments.
divshot promote development staging- development -> staging
divshot promote staging production- staging -> production
divshot protect [environment] [username:password]
Protect your development and staging environments with http authentication.
divshot push [environment]
Deploy your app to the specified environment. If no environment is given, we assume that you mean production. The entire push process takes as long as the number of files in your project. Once deployed, your app is immediately available. See environments for a list of available environments.
divshot rename [new app name]
Rename your app. This changes the subomdain on Divshot and updates your configuration file. It is permanent once complete.
divshot rollback [environment]
Rollback the given environment to a previous release. This is useful when buggy code has been deployed. Divshot automatically detects and rolls back to your previous release. See environments for a list of available environments.
Server command options:
-p, --port [port]- specify the port for the server to run. Defaults to 3474
-h, --host [hostname]- specify a custom hostname for your app to run at. Defaults to localhost
divshot status [environment]
Show release info for each environment. If no environment is specified, the latest release info will be listed for each environment. If an environment is specified, it will list the last few releases for that environment. See environments for a list of available environments.