0.3.1 • Published 1 year ago

@kepler-io/cli v0.3.1

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
1 year ago

Kepler CLI

CLI project for Kepler.

CommonJS module, because of oclif, they are not supporting building for ESM.

Run

Quick run

In this case the CLI will use current folder (./tooling-framework/cli), which is not a good idea for creating a new projects via CLI. Instead of kepler command we leverage NPM scripts, so you can replace it with yarn start.

$> yarn start
  1. Build the project yarn build
  2. Run with yarn start
  3. You should see a help page for Kepler CLI, similar to this: alt text

Command examples:

  • yarn start --help
  • yarn start new --help
  • yarn start system
  • yarn start ui
  • yarn start ui table
  • ...etc

Better way

This way is showing how to run the CLI in folder of your choice. Ideal for creating a new projects via CLI.

$> <BINPath>/run
  1. Build the project yarn build
  2. Copy to your clipboard path to bin folder inside the project (Example of path ~/Projects/.../tooling-framework/cli/bin)
  3. Open a new terminal and navigate to some test folder (ex. ~/test-folder)
  4. Run a command

    Mac: ~/Projects/.../tooling-framework/cli/bin/run Win: C:\Projects\...\tooling-framework\cli\bin\run

  5. You should see a help page for Kepler CLI, similar to this: alt text

Command examples:

  • <BINPath>/run --help
  • <BINPath>/run new --help
  • <BINPath>/run system
  • <BINPath>/run new ts
  • <BINPath>/run ui table
  • ...etc

Installation

Kepler CLI is installable as NMP Module: npm install -g @kepler-io/cli.

Upgrade of package is available via command: npm install --global @kepler-io/cli@latest

You can list all installed packages with their versions on your machine via command: npm list --global

Packing

shebang (executable) file is located in ./bin directory.

You can test packaging locally via npm pack and install generated tar file.

npm install -g kepler-io-cli-vx.x.x.tgz

Publishing

Publishing is done via NPM (not Yarn): npm run publish-remote.

https://www.npmjs.com/search?q=kepler-io

Commands

Local development

StatusCommandDescription
kepler newCreate a new project with Wizard.
kepler new toolCreate a new custom tool
kepler new appCreate a new sample web app
StatusCommandDescription
kepler open [browser] [port]Open a specific browser with a specific debugging port open
kepler open wizardOpen a browser with debugging port open via wizard

Framework

StatusCommandDescription
kepler systemPrints a system information

Kepler CLI UI

StatusCommandDescription
kepler uiBrowse Kepler CLI UI with wizard
kepler ui tablePrints examples of Kepler CLI Table
kepler ui progress-barsPrints examples of Kepler CLI Progress bar
kepler ui tasksPrints examples of Kepler CLI Tasks

Known Issues

Windows 1. open command causes command line to hang in Powershell on Windows. As a workaround, you can press CTRL-C in the Powershell terminal.