Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/h-enk/hyas-cli

Hyas command line tool
https://github.com/h-enk/hyas-cli

cli hugo hyas

Last synced: 5 days ago
JSON representation

Hyas command line tool

Awesome Lists containing this project

README

        

# @hyas/cli
[![npm](https://img.shields.io/npm/v/@hyas/cli.svg)](https://www.npmjs.com/package/@hyas/cli)
[![CodeQL](https://github.com/h-enk/hyas-cli/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/h-enk/hyas-cli/actions/workflows/codeql-analysis.yml)

Hyas command line tool.

## Installation

Install the [Hyas CLI](https://www.npmjs.com/package/@hyas/cli) globally:

```bash
npm install -g @hyas/cli
```

## npx

Or use [npx](https://nodejs.dev/learn/the-npx-nodejs-package-runner):

```bash
npx @hyas/cli [options]
```

## Usage

```bash
hyas [options]
```

## Commands

### Create

Create a new Hyas project:

```bash
hyas create [dir]
```

| Arguments | Description | Default |
| - | - | - |
| `dir` | Directory to create the project in | `my-hyas-site`|
| `-c, --child` | Use child theme | Use starter theme |
| `-t, --theme` | Hyas theme to use (e.g. `--theme=doks`)| No Hyas theme|

### Start

Start local development server:

```bash
hyas start
```

### Build

Build production website:

```bash
hyas build
```

### Clean

Delete temporary directories:

```bash
hyas clean
```

### Check

Check local environment:

```bash
hyas check
```

## Options

### -h, --help

Show help for command.

### -v, --version

Show @hyas/cli version.

## Documentation

- [Hyas CLI](https://gethyas.com/docs/prologue/hyas-cli/)