🐑 Commons Host

Documentation

@commonshost/cli

Usage

Run commonshost if you globally installed. Run npx commonshost if you locally installed.

Table of Contents

Create an account

$ commonshost signup

? Email address: johnw@example.net
? Username: babayaga
? Password: ***************
 ✔ Registering account
 ✔ Creating new authentication token
 ✔ Saving credentials

Use an existing account

$ commonshost login

? Username or email address: babayaga
? Password: [hidden]
 ✔ Authenticating
 ✔ Saving token

Deploy a static web site

$ commonshost deploy --domain example.net --root ./ --confirm

To cancel, press Ctrl+C.

Deploying:

   Directory:  /Users/johnw/blog/public
   File count: 14
   Total size: 24 kB
   Options:    default
   URL:        https://example.net

 ✔ Uploading

Deployment successful!