VuePressVuePress
  • Introduction
  • Getting Started
  • Configuration
  • Page
  • Markdown
  • Assets
  • I18n
  • Deployment
  • Theme
  • Plugin
  • Bundler
  • Migrating from v1
  • Troubleshooting
  • Core

    • CLI
    • Config
    • Frontmatter
    • Built-in Components
    • Plugin API
    • Theme API
    • Client API
    • Node API
  • Bundlers

    • Vite
    • Webpack
  • Ecosystem

    • Default Theme
    • Plugins
  • Advanced

    • Architecture
    • Writing a Plugin
    • Writing a Theme
    • Cookbook
  • Resources

    • Ecosystem
    • MarketPlace
    • Contributing Guide
  • Changelog
  • v1.x
  • v0.x
  • English
  • 简体中文
GitHub
  • Introduction
  • Getting Started
  • Configuration
  • Page
  • Markdown
  • Assets
  • I18n
  • Deployment
  • Theme
  • Plugin
  • Bundler
  • Migrating from v1
  • Troubleshooting
  • Core

    • CLI
    • Config
    • Frontmatter
    • Built-in Components
    • Plugin API
    • Theme API
    • Client API
    • Node API
  • Bundlers

    • Vite
    • Webpack
  • Ecosystem

    • Default Theme
    • Plugins
  • Advanced

    • Architecture
    • Writing a Plugin
    • Writing a Theme
    • Cookbook
  • Resources

    • Ecosystem
    • MarketPlace
    • Contributing Guide
  • Changelog
  • v1.x
  • v0.x
  • English
  • 简体中文
GitHub
  • Core

    • Command Line Interface
    • Config
    • Frontmatter
    • Built-in Components
    • Plugin API
    • Theme API
    • Client API
    • Node API
  • Bundlers

    • Vite
    • Webpack
  • Ecosystem

    • Default Theme
    • Plugins

Command Line Interface

Run vuepress --help to get following help messages:

Usage:  $ vuepress <command> [options]  Commands:  dev [sourceDir] Start development server  build [sourceDir] Build to static site  info Display environment information  For more info, run any command with the `--help` flag:  $ vuepress dev --help  $ vuepress build --help  $ vuepress info --help  Options:  -v, --version Display version number  -h, --help Display this message

Tips

VuePress is using debug module.

Set environment variable DEBUG=vuepress* to enable debug logs.

dev

Start a development server to develop your VuePress site locally.

Usage:  $ vuepress dev [sourceDir]  Options:  -c, --config <config> Set path to config file  -p, --port <port> Use specified port (default: 8080)  -t, --temp <temp> Set the directory of the temporary files  --host <host> Use specified host (default: 0.0.0.0)  --cache <cache> Set the directory of the cache files  --clean-temp Clean the temporary files before dev  --clean-cache Clean the cache files before dev  --open Open browser when ready  --debug Enable debug mode  --no-watch Disable watching page and config files (default: true)  -v, --version Display version number  -h, --help Display this message

Tips

Options set by CLI will override those options with the same name in your config file.

build

Build your VuePress site to static files, which are ready for deployment.

Usage:  $ vuepress build [sourceDir]  Options:  -c, --config <config> Set path to config file  -d, --dest <dest> Set the directory build output (default: .vuepress/dist)  -t, --temp <temp> Set the directory of the temporary files  --cache <cache> Set the directory of the cache files  --clean-temp Clean the temporary files before build  --clean-cache Clean the cache files before build  --debug Enable debug mode  -v, --version Display version number  -h, --help Display this message

Tips

Options set by CLI will override those options with the same name in your config file.

info

Outputs information about your system and dependencies.

This command would be helpful when you want to check your environment or report an issue.

Edit this page on GitHub
Last Updated: 2/6/24, 3:46 PM
Contributors: meteorlxy, Mr.Hope, Xinyu Liu
Next
Config