CLI

Use Command Line Interface to extensively menage your DocLayer project

Introduction

Currently, the CLI provides a limited set of functionalities. New features and commands will be added in each upcoming release. You can already start using some basic commands.

Installation

To install CLI globally run the following command:

pnpm add -g @vuehouse/dl-cli
bun add -g @vuehouse/dl-cli
npm install -g @vuehouse/dl-cli

The binary to run the commands is doclayer.

If you prefer, each command can be also run without installing the CLI globally. To do so, use the remote package runners instead. Apply for any command like this:

pnpx @vuehouse/dl-cli@latest (command)
bunx @vuehouse/dl-cli@latest (command)
npx @vuehouse/dl-cli@latest (command)

Commands

Below is a list of the available commands. You can run doclayer --help to see the full list of commands and their usage.

init

This command lets you create a new DocLayer project on top of the Boilerplate - a ready-to-use application template that you can enter and start working with immediately.

doclayer init# or with a custom folder namedoclayer init my-project

By default, the CLI uses the SSH protocol to clone the Boilerplate repository. To use the HTTPS protocol instead, add the --https flag, like this:

doclayer init --https