Skip to main content

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

Terminal

The output look like this:

Terminal

Start

farm start The command is used to start the development server and compile the code in the development environment

Terminal

Build

farm build The command builds the products that can be used in the production environment in the default dist directory.

Terminal

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.

Terminal

Watch

farm watch the command generally listen for file changes and rebuild in node environment

Terminal

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)

Terminal
Extremely Fast Web Build Tool Written in Rust

Copyright © 2024 Farm Community. Built with Docusaurus.