Skip to content

CLI Reference

Reference generated from wxt <command> --help

wxt

sh
wxt/0.18.3

Usage:
  $ wxt [root]

Commands:
  [root]            start dev server
  build [root]      build for production
  zip [root]        build for production and zip output
  prepare [root]    prepare typescript project
  clean [root]      clean generated files and caches
  init [directory]  initialize a new project
  submit            Alias for publish-extension (https://www.npmjs.com/publish-browser-extension)

Options:
  -c, --config <file>                   use specified config file
  -m, --mode <mode>                     set env mode
  -b, --browser <browser>               specify a browser
  -p, --port <port>                     specify a port for the dev server
  -e, --filter-entrypoint <entrypoint>  only build specific entrypoints
  --mv3                                 target manifest v3
  --mv2                                 target manifest v2
  --debug                               enable debug mode
  -h, --help                            Display this message
  -v, --version                         Display version number

wxt build

sh
wxt/0.18.3

Usage:
  $ wxt build [root]

Options:
  -c, --config <file>                   use specified config file
  -m, --mode <mode>                     set env mode
  -b, --browser <browser>               specify a browser
  -e, --filter-entrypoint <entrypoint>  only build specific entrypoints
  --mv3                                 target manifest v3
  --mv2                                 target manifest v2
  --analyze                             visualize extension bundle
  --analyze-open                        automatically open stats.html in browser
  --debug                               enable debug mode
  -h, --help                            Display this message

wxt zip

sh
wxt/0.18.3

Usage:
  $ wxt zip [root]

Options:
  -c, --config <file>      use specified config file
  -m, --mode <mode>        set env mode
  -b, --browser <browser>  specify a browser
  --mv3                    target manifest v3
  --mv2                    target manifest v2
  --debug                  enable debug mode
  -h, --help               Display this message

wxt prepare

sh
wxt/0.18.3

Usage:
  $ wxt prepare [root]

Options:
  -c, --config <file>  use specified config file
  --debug              enable debug mode
  -h, --help           Display this message

wxt clean

sh
wxt/0.18.3

Usage:
  $ wxt clean [root]

Options:
  --debug     enable debug mode
  -h, --help  Display this message

wxt init

sh
wxt/0.18.3

Usage:
  $ wxt init [directory]

Options:
  -t, --template <template>  template to use
  --pm <packageManager>      which package manager to use
  --debug                    enable debug mode
  -h, --help                 Display this message