@apility/netflex-cli

[![LICENSE](https://img.shields.io/npm/l/@apility/netflex-cli.svg)](https://www.npmjs.com/package/@apility/netflex-cli) [![Version](https://img.shields.io/npm/v/@apility/netflex-cli.svg)](https://www.npmjs.com/package/@apility/netflex-cli) [![Downloads](h

Usage no npm install needed!

<script type="module">
  import apilityNetflexCli from 'https://cdn.skypack.dev/@apility/netflex-cli';
</script>

README

Netflex CLI

LICENSE Version Downloads

This is a cli tool to assist in local development of Netflex based projects. It allows you to run a project locally through Docker, while still being able to edit inside of Netflex.

Installation

npm install @apility/netflex-cli -g

Prerequisite

You will have to have Docker installed on your device.

https://docs.docker.com/install/

See migration guide for existing sites.

Usage

Navigate to the working directory of a Netflex V3 based project

and execute the following command

netflex serve

or you can specify the path as the first option

netflex serve path/to/your/site

You will be prompted to configure the required settings

Build assets

If your Netflex project have a defined build step, you can invoke it by running

netflex serve path/to/your/site --build

Logging

To output logs to stdout use the log flag

netflex serve path/to/your/site --log

Logs will also be outputted in verbose mode

Watch and build assets

If your Netflex project have a defined watcher you can invoke it by running

netflex serve path/to/your/site --watch

To get a verbose output

netflex serve path/to/your/site --watch --verbose