Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

openwebf/cli

Repository files navigation

Command Line Tools for WebF npm

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

npm install -g @openwebf/cli

Plaform support:

  • macOS
  • Linux
  • Windows

Usage

webf run

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

Start a webf 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-webf-js-log           print webf 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

webf qjsc

Usage: webf 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