Project Command
Less than 1 minute
This tutorial introduces VuePress project commands.
Common Commands
vuepress dev <dir>starts a development server for local development of your VuePress site.vuepress build <dir>builds your VuePress site into static files for deployment.
Using Template
If you are using the VuePress Theme Hope template, you can find the following three commands in package.json:
{
"scripts": {
"docs:build": "vuepress build src",
"docs:clean-dev": "vuepress dev src --clean-cache --clean-temp",
"docs:dev": "vuepress dev src"
}
}This means you can use:
pnpm
pnpm docs:devstarts the development serverpnpm docs:buildbuilds the project and outputspnpm docs:clean-devto clear cache and start development server
yarn
yarn docs:devstarts the development serveryarn docs:buildbuilds the project and outputsyarn docs:clean-devto clear cache and start development server
npm
npm run docs:devstarts the development servernpm run docs:buildbuilds the project and outputsnpm run docs:clean-devto clear cache and start development server
Terminating Development Server
To terminate the development server, click on the terminal and press Ctrl + C twice.
Update Version
To upgrade your theme and VuePress version, execute the following command:
pnpm
pnpm dlx vp-updateyarn
yarn dlx vp-updatenpm
npx vp-updateChangelog
6/4/25, 4:25 PM
View All Changelog
6ca3e-onf3e43-on8289f-on6c081-on01cd9-on93784-ond45fd-on2a306-ond8d58-on24b0b-on774f1-on5e7ca-on8174c-ona0c8a-on01bca-onec469-on6af05-one5834-on23515-on9cdd7-on63d09-onad023-onfd395-on52ff1-on9e3b2-on