GithubHelp home page GithubHelp logo

ieb / helix-cli Goto Github PK

View Code? Open in Web Editor NEW

This project forked from adobe/helix-cli

0.0 1.0 0.0 39.8 MB

Command-line tools for developing with helix

License: Apache License 2.0

Shell 0.03% JavaScript 97.85% CSS 1.88% HTML 0.24%

helix-cli's Introduction

Helix Command Line Interface (hlx)

Status

codecov CircleCI GitHub license GitHub issues LGTM Code Quality Grade: JavaScript

The Helix Command Line Interface allows web developers to create, develop, and deploy digital experiences using Project Helix

Installation

Install hlx as a global command. You need Node 12.11 or newer.

$ npm install -g @adobe/helix-cli

Quick Start

$ hlx --help
Usage: hlx <command> [options]

Commands:
  hlx up  Run a Helix development server

Options:
  --version                Show version number                         [boolean]
  --log-file, --logFile    Log file (use "-" for stdout)  [array] [default: "-"]
  --log-level, --logLevel  Log level
        [string] [choices: "silly", "debug", "verbose", "info", "warn", "error"]
                                                               [default: "info"]
  --help                   Show help                                   [boolean]

use <command> --help to get command specific details.

for more information, find our manual at https://github.com/adobe/helix-cli

Starting development

$ cd <my-cool-project>
$ hlx up

automatically open the browser

The --open argument takes a path, eg --open=/products/, will cause the browser to be openend at the specific location. Disable with --no-open'.

environment

All the command arguments can also be specified via environment variables. the .env file is loaded automatically.

example:

.env

HLX_OPEN=/products
HLX_PORT=8080
HLX_PAGES_URL=https://stage.myproject.com

Global

option variable default description
--log-file HLX_LOG_FILE - Log file. use - to log to stdout
--log-level HLX_LOG_LEVEL info Log level

Up command

option variable default description
--port HLX_PORT 3000 Development server port
--livereload HLX_LIVERELOAD true Enable automatic reloading of modified sources in browser.
--no-livereload HLX_NO_LIVERELOAD false Disable live-reload.
--open HLX_OPEN / Open a browser window at specified path after server start.
--no-open HLX_NO_OPEN false Disable automatic opening of browser window.

Developing Helix CLI

Testing

You can use npm run check to run the tests and check whether your code adheres to the helix-cli coding style.

helix-cli's People

Contributors

alexkli avatar constanceyu avatar davidnuescheler avatar dependabot[bot] avatar distributedlock avatar dominique-pfister avatar filmaj avatar fkakatie avatar greenkeeper[bot] avatar hirenoble avatar keuhdall avatar koraa avatar kptdobe avatar marquiserosier avatar maxakuru avatar medusalix avatar ramboz avatar renovate-bot avatar renovate[bot] avatar rofe avatar semantic-release-bot avatar sj avatar snyk-bot avatar stefan-guggisberg avatar trieloff avatar tripodsan avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.