On this page
CLI reference
root dev
Starts the Root.js dev server.
Usage:
bash
root dev
root build
Compiles static assets and outputs to dist/html. By default, the build runs in SSG mode, which pre-renders all routes to HTML. To build in SSR mode, add the --ssr-only flag.
Usage:
bash
root build [--ssr-only]
root package
Creates a standalone npm package that can be used for SSR deployments. This command is useful for projects that exist in monorepos, so that a minimal package is deployed to hosting services without having to deploy the entire monorepo.
Usage:
bash
root package --target=<firebase|appengine> --out=<outdir>
root-cms init
Initializes the firebase project with proper security rules and adds an initial admin to the ACLs of the project.
Usage:
bash
root-cms init --admin=<email@example.com>
root-cms types
Generates root-cms.d.ts type definitions from the .schema.ts files in a project.
Usage:
bash
root-cms types