@doc2site/cli

The doc2.site CLI allows developers to build web experiences with https://doc2.site


Keywords
doc2.site, cli
License
MIT
Install
npm install @doc2site/cli@1.0.3

Documentation

doc2 Command Line Interface (CLI)

The doc2 CLI allows developers to build faster web experiences with https://doc2.site.

Installation

Install the CLI as a global command. You need Node LTS (18.x) or newer.

$ npm install -g @doc2/cli

Quick Start

      _            ____     ____ _     ___
   __| | ___   ___|___ \   / ___| |   |_ _|
  / _` |/ _ \ / __| __) | | |   | |    | |
 | (_| | (_) | (__ / __/  | |___| |___ | |
  \__,_|\___/ \___|_____|  \____|_____|___|

Usage: doc2 [options] [command]

Options:
  -V, --version   output the version number
  -h, --help      display help for command

Commands:
  live --dev      Run a doc2.live development server
  email --dev     Run a doc2.email development server
  help [command]  display help for command

Environment

Specify environment variables in the .env file:

DOC2LIVE_SUBDOMAIN=live-demo
DOC2EMAIL_SUBDOMAIN=email-demo

Starting doc2.live development

$ cd <doc2-project>
$ doc2 live --dev

Starting doc2.email development

$ cd <doc2-project>
$ doc2 email --dev