portails/content/docs/prologue/hyas-cli.md

1.5 KiB

title description lead date lastmod draft images menu weight toc
Hyas CLI Hyas command line tool. Hyas command line tool. 2020-09-22T08:38:48+02:00 2020-09-22T08:38:48+02:00 false
docs
parent
prologue
020 true
Usage: hyas <command> [options]

Commands:
  build         Build production website
  clean         Delete temporary directories
  create [dir]  Create a new Hyas project
  start         Start local development server

Options:
  -h, --help     Show help                                             [boolean]
  -v, --version  Show version number                                   [boolean]

Run hyas <command> --help for detailed usage of given command.

Installation

Install the Hyas CLI globally:

yarn add global @hyas/cli
npm install -g @hyas/cli

npx

Or use npx:

npx @hyas/cli <command> [options]

Commands

Create

Create a new Hyas project:

hyas create [dir]

Start

Start local development server:

hyas start

Build

Build production website:

hyas build

Clean

Delete temporary directories:

hyas clean

Options

-h, --help

Show help.

-v, --version

Show version number.

Update

You'll get notified when an update is available:

Update available: 0.3.2
Run npm install -g @hyas/cli to update