Miss any of our Open RFC calls?Watch the recordings here! »

@communities-webruntime/cli

0.30.9 • Public • Published

Usage

$ npm install -g @communities-webruntime/cli
$ webruntime COMMAND
running command...
$ webruntime (-v|--version|version)
@communities-webruntime/cli/0.30.8 ${process.platform} ${process.version}
$ webruntime --help [COMMAND]
USAGE
  $ webruntime COMMAND
...

Commands

webruntime run [TEMPLATEDIR]

Start the server

USAGE
  $ webruntime run [TEMPLATEDIR]

ARGUMENTS
  TEMPLATEDIR  [default: .] The template root directory

OPTIONS
  --apiEndpoint=apiEndpoint              The external API endpoint to proxy API calls to. If not specified, replay mode
                                         will be used

  --apiEndpointHeader=apiEndpointHeader  An HTTP header to add to the requests proxied to the API endpoint

  --basePath=basePath                    The base path from which the web application will be served, defaults to '/'

  --indexHtml=indexHtml                  The index.html file path

  --isDesignMode                         Compile the template for usage in design mode

  --labels=labels                        The labels.json file path

  --locale=locale                        The locale to use

  --modes=modes                          A comma separated list of modes in which the resources will be generated,
                                         defaults to all modes (dev, compat, prod, prod_compat)

  --partials=partials                    Directory where handlebar partials are stored to be used in templates

  --port=port                            [default: 3000] The server port

  --recordApiCalls                       Whether proxied API calls responses should be recorded

  --routes=routes                        The routes.json file path

  --srcDir=srcDir                        Source directory, used to compute the template version key

  --theme=theme                          The theme.json file path

  --views=views                          Where to get the view metadata from

webruntime validate [TEMPLATEDIR]

Validate the template metadata

USAGE
  $ webruntime validate [TEMPLATEDIR]

ARGUMENTS
  TEMPLATEDIR  [default: .] The template root directory

OPTIONS
  --labels=labels  The labels.json file path
  --routes=routes  The routes.json file path
  --theme=theme    The theme.json file path
  --views=views    Where to get the view metadata from

Keywords

none

Install

npm i @communities-webruntime/[email protected]

Version

0.30.9

License

MIT

Unpacked Size

75.9 kB

Total Files

19

Last publish

Collaborators

  • avatar