run vue cli from other directory code example
Example 1: serve a vue project
cd my-app
npm run serve
Example 2: vue specify build directory
// vue.config.js
const path = require("path");
module.exports = {
outputDir: path.resolve(__dirname, "../public/")
}