Run, build, test, deploy apps from your terminal
Last updated 9 months ago by rpazdera .
MIT · Original npm · Tarball · package.json
$ cnpm install @kano/kit-app-shell-cli 
SYNC missed versions from official npm registry.


Run, build, test, deploy apps from your terminal


yarn global add @kano/kit-app-shell-cli

kash --version


Start by running kash --help to discover the available commands

Usage: kash <command> <args> [options]

  run <platform> --help        Show help for the run command
  build <platform> --help      Show help for the build command
  test <platform> --help       Show help for the test command
  configure <platform> --help  Show help for the configure command
  open config                  Open the location of your configuration

  --help     Show help                                                    [commands: help] [boolean]
  --version  Show version number                                       [commands: version] [boolean]

Config files

Configuration files can define options for commands and platforms. THere are two kinds of configuration files, the local rc, a personal file containing options specific to the current machine or user and the project's config, containing the options for a specific project.

You can see your own config file by running kash open config.

A project's config file must be located at the root of the porject and be named either:

  • 'kit-app-shell.conf.js'
  • '.kit-app-shell.conf.js'
  • 'kash.conf.js'
  • '.kash.conf.js'

The config file being a js module, you must export the configuration object.

Personal config

This config is mainly used to store your personal preferences and credentials. You can modify the JSON file manually, but kash provides a way to update this file through the configure CLI command.

kash configure Will let you configure the CLI while kash configure <platform> will let you configure a specific platform.

Project config

You can import the types from the core module to have access to autocompletion of your configuration file

 * @type {import('@kano/kit-app-shell-core/types').KashConfig}
module.exports = {
  run: {/* ... */},
  build: {/* ... */},

Autocomplete example 1 Autocomplete example 2

Env config

You can customize the temporaru directory for kash. This allows you to write to a directory you have the rights to, or avoid writing cached data to a volatile volume on systems like Docker.

Use the KASH_TMP_DIR env variable to set it.



There is something frustrating about slow CLIs. To avoid that, this project tries to only load what is needed to ensure optimal speed.

The CLI routes the user through all the features of the core library and each platform implementation. Using a late require strategy, only the needed resources will be loaded for the path th user is taking.

kash --version should absolutely not load more than the tools to parse and display the version, the same goes for kash --help

In a similar fashion, kash build android should not load the test frameworks and kash test android should not load the build tools.

In this project you will see require statements that use paths instead of module name e.g.:

const util = require('@kano/kit-app-shell-core/lib/util');
// instead of
const { util } = require('@kano/kit-app-shell-core');

While this is usually an anti pattern and can introduce issues when moving files around, this improves the speed of the commands drastically.

To provide some context, here are the times for printing the version of some CLIs (No benchmark, just ran on one's machine) (Keep in mind, node itself takes ~150ms to boot):

Command Time
npm --version ~700ms
rollup --version ~400ms
yarn --version ~300ms
kash --version ~200ms
git --version ~50ms


  • Add a flag for the reporter
  • Add a JSON reporter
  • Add kash configure to configure the choosen reporter and other personal options

Current Tags

  • 0.0.3-alpha.88                                ...           latest (9 months ago)

38 Versions

  • 0.0.3-alpha.88                                ...           9 months ago
  • 0.0.3-alpha.80                                ...           a year ago
  • 0.0.3-alpha.70                                ...           a year ago
  • 0.0.3-alpha.67                                ...           a year ago
  • 0.0.3-alpha.66                                ...           a year ago
  • 0.0.3-alpha.64                                ...           a year ago
  • 0.0.3-alpha.61                                ...           a year ago
  • 0.0.3-alpha.58                                ...           a year ago
  • 0.0.3-alpha.48                                ...           a year ago
  • 0.0.3-alpha.43                                ...           a year ago
  • 0.0.3-alpha.42                                ...           a year ago
  • 0.0.3-alpha.36                                ...           a year ago
  • 0.0.3-alpha.35                                ...           a year ago
  • 0.0.3-alpha.32                                ...           a year ago
  • 0.0.3-alpha.31                                ...           a year ago
  • 0.0.3-alpha.28                                ...           a year ago
  • 0.0.3-aplha.22                                ...           2 years ago
  • 0.0.3-alpha.21                                ...           2 years ago
  • 0.0.3-alpha.19                                ...           2 years ago
  • 0.0.3-alpha.17                                ...           2 years ago
  • 0.0.3-alpha.16                                ...           2 years ago
  • 0.0.3-alpha.14                                ...           2 years ago
  • 0.0.3-alpha.13                                ...           2 years ago
  • 0.0.3-alpha.12                                ...           2 years ago
  • 0.0.3-alpha.11                                ...           2 years ago
  • 0.0.3-alpha.10                                ...           2 years ago
  • 0.0.3-alpha.9                                ...           2 years ago
  • 0.0.3-alpha.8                                ...           2 years ago
  • 0.0.3-alpha.7                                ...           2 years ago
  • 0.0.3-alpha.6                                ...           2 years ago
  • 0.0.3-alpha.5                                ...           2 years ago
  • 0.0.3-alpha.4                                ...           2 years ago
  • 0.0.3-alpha.3                                ...           2 years ago
  • 0.0.3-alpha.2                                ...           2 years ago
  • 0.0.3-alpha.1                                ...           2 years ago
  • 0.0.3-alpha.0                                ...           2 years ago
  • 0.0.2-alpha.2                                ...           2 years ago
  • 0.0.2-alpha.1                                ...           2 years ago
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (8)
Dev Dependencies (9)
Dependents (0)

Copyright 2014 - 2016 © taobao.org |