Command Line Interface (CLI)
Strapi comes with a full featured Command Line Interface (CLI) which lets you scaffold and manage your project in seconds. The CLI works with both the yarn
and npm
package managers.
Interactive commands such as strapi admin:create-user
don't display prompts with npm
. A fix for the npm
package manager is anticipated by March 2023. In the meantime, consider using the yarn
package manager.
It is recommended to install Strapi locally only, which requires prefixing all of the following strapi
commands with the package manager used for the project setup (e.g npm run strapi help
or yarn strapi help
) or a dedicated node package executor (e.g. npx strapi help
).
To pass options with npm
use the syntax: npm run strapi <command> -- --<option>
.
To pass options with yarn
use the syntax: yarn run strapi <command> --<option>
Setup
Create a new project.
$ quasar
Example usage
$ quasar <command> <options>
Help for a command
$ quasar <command> --help
$ quasar <command> -h
Options
--version, -v Print Quasar App CLI version
Commands
dev, d Start a dev server for your App
build, b Build your app for production
clean, c Clean all build artifacts
new, n Quickly scaffold page/layout/component/... vue file
mode, m Add/remove Quasar Modes for your App
inspect Inspect generated Webpack config
ext, e Manage Quasar App Extensions
run, r Run specific command provided by an installed
Quasar App Extension
describe Describe a Quasar API (component)
info, i Display info about your machine and your App
help, h Displays this message