Zuby CLI
The Zuby.js CLI is a command line interface that allows you to build and run your Zuby.js app.
It can be used with npx
or installed globally
using npm install -g zuby
or yarn global add zuby
.
Example usage:
Available commands
zuby init
This command will help you to create a new Zuby.js app.
zuby dev
This command will start the development server.
zuby build
This command will build your Zuby.js app.
zuby preview
This command will start the preview server and allows you to preview the build locally.
zuby info
Prints useful information about your setup such as Zuby.js version, Node.js version, OS, installed plugins etc…
zuby upgrade
Upgrades Zuby and all its packages to the latest compatible version. For example, if you have Zuby.js 1.0.40 installed, this command will upgrade it to 1.0.45 but not to the latest version 2.0.0.
If you want to upgrade to the latest version,
you can do so by passing the --tag latest
option:
zuby help
This command will display the help message and list all available commands.
Global flags
You can use the following global flags with any command:
—version
Displays the Zuby.js version.
—help
Displays the help message for the given command and lists all available options with descriptions. For example:
Prints: