Farm CLI
The Farm CLI allows you to start, build, preview, and watch your application.
To get a list of cli available to Farm, run the following command inside your command
The output look like this:
Start
farm start The command is used to start the development server and compile the code in the development environment
Build
farm build The command builds the products that can be used in the production environment in the default dist directory.
Preview
farm preview the command for locally previewing the products built in your production environment, you need to execute farm build in advance to build the products in the production environment.
Watch
farm watch the command generally listen for file changes and rebuild in node environment
Clean
farm clean Because the incremental build provided by farm generates the cache file locally, you may need to clean up the cache file under certain circumstances (unpredictable compilation errors)
