VueJS Commander is a Visual Studio Code extension designed to streamline the execution of common Vue.js and Nuxt.js commands. It simplifies project creation, development server management, and production builds directly from the VS Code command palette.
- VS Code 1.88.0 or higher.
-
Open the Command Palette in VS Code:
- Windows:
CTRL + SHIFT + P - macOS:
CMD + SHIFT + P
- Windows:
-
Open the Workspace Settings:
- Type
Preferences: Open Workspace Settings (JSON).
- Type
Copy the following configuration into your .vscode/settings.json file:
{
"vuejs.commander.enable": true,
"vuejs.commander.packages.defaultPackageManager": "npm",
"vuejs.commander.terminal.hideFromUser": false
}Commands run in the selected workspace folder by default. Set vuejs.commander.terminal.currentWorkingDirectory only when you need to override that folder with an explicit absolute path.
Restart VS Code to apply the settings.
You can customize VueJS Commander by modifying its settings in .vscode/settings.json. Some of the available settings are:
vuejs.commander.enable: Enable or disable the extension.vuejs.commander.packages.defaultPackageManager: Set the default package manager for the project. Options arenpm,yarnorpnpm(default:"npm").vuejs.commander.terminal.currentWorkingDirectory: Optional override for the terminal working directory. When unset, commands run in the selected workspace folder. Must be an absolute path when set.vuejs.commander.terminal.hideFromUser: Hide the terminal from the user. If set totrue, the terminal will run in the background (default:false).
| Command | Description |
|---|---|
Create New Project |
Create a new Vue/Nuxt project |
Start Development Server |
Start the development server |
Build for Production |
Build the project for production |
All commands are available from the Command Palette and from the VueJS Commander submenu in the Explorer context menu on workspace root folders. In multi-root workspaces, Command Palette commands reuse the selected workspace folder, while Explorer commands run in the targeted folder.
This extension is maintained by the Vue JS Colombia Meetup Community. Stay updated on new features and improvements:
We welcome contributions from the community! To get started:
- Fork the GitHub repository.
- Make your changes and submit a pull request.
For contribution guidelines, refer to the Contribution Guide.
We value a welcoming and inclusive community. Please review our Code of Conduct before participating.
See the full list of changes in the CHANGELOG.md file.
This extension is licensed under the MIT License. See the MIT License for details.