Skip to content

openkraken/cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

5aeba6a · Jun 25, 2022

History

93 Commits
Jun 25, 2022
Jun 24, 2022
Jan 24, 2022
Jan 12, 2022
Jun 25, 2022
Jan 21, 2022
Sep 26, 2021
Jun 25, 2022
Jan 21, 2022
Jan 13, 2022
Jun 25, 2022
Jun 25, 2022

Repository files navigation

Command Line Tools for Kraken npm

You can install kraken CLI with npm (you may need to use sudo on Linux or macOS):

npm config set foreground-scripts true // Make sure kraken binaries can be downloade via install scripts.
npm install -g @openkraken/cli

Plaform support:

  • macOS
  • Linux
  • Windows

Usage

kraken run

Usage: kraken run [options] [bundle|url]

Start a kraken app.

Options:
  -b --bundle <filename>           Bundle path. One of bundle or url is needed, if both determined, bundle path will be used.
  -u --url <URL>                   Bundle URL. One of bundle or URL is needed, if both determined, bundle path will be used.
  -i --instruct <instruct>         instruct file path.
  -s, --source <source>            Source code. pass source directory from command line
  -m --runtime-mode <runtimeMode>  Runtime mode, debug | release. (default: "debug")
  --enable-kraken-js-log           print kraken js to dart log (default: false)
  --show-performance-monitor       show render performance monitor (default: false)
  -d, --debug-layout               debug element's paint layout (default: false)
  -h, --help                       output usage information

kraken qjsc

Usage: kraken qjsc [options] <source> [destination]

convert javascript code to quickjs bytecode.

Options:
  --pluginName [pluginName]  the flutter plugin name.
  --dart                     export dart source file contains bytecode.
  -h, --help                 output usage information