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:dev
starts the development serverpnpm docs:build
builds the project and outputspnpm docs:clean-dev
to clear cache and start development server
yarn
yarn docs:dev
starts the development serveryarn docs:build
builds the project and outputsyarn docs:clean-dev
to clear cache and start development server
npm
npm run docs:dev
starts the development servernpm run docs:build
builds the project and outputsnpm run docs:clean-dev
to 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-update
yarn
yarn dlx vp-update
npm
npx vp-update
Changelog
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