Revive CMD
A VS Code extension for quickly running common commands with a single click
Features
- Run Custom Commands: Configure your own commands in a
commands.json
file
- Command Dropdown: Quick access to all available commands via dropdown menu
- Folder Selection: Choose which directory to run your commands in
- Prebuilt Commands: One-click access to common commands:
npm run dev
npm start
npm run build
npm test
git pull
- Multiple Terminals: Each command runs in its own named terminal
- Easy Access: Terminal icons in the editor title bar and explorer view
Usage
Quick Start
- After installation, you'll see terminal icons in your editor's title bar and explorer view
- Click the "Select Command to Run..." icon to see all available commands
- Choose a command and then select which folder to run it in
- The command will execute in a new terminal window
Using the Command Dropdown with Folder Selection
Click the terminal icon labeled "Select Command to Run..." in the editor title bar or explorer view
Choose from the dropdown menu of available commands:
Select which folder to run the command in (current directory or any subfolder)
The selected command will run in the chosen directory in a new terminal
Setting Up Custom Commands
- Create a
commands.json
file in the root of your workspace with this structure:
{
"commands": [
{
"terminal": "Frontend",
"command": "npm run dev"
},
{
"terminal": "Backend",
"command": "cd api && npm start"
},
{
"terminal": "Tests",
"command": "npm test"
}
]
}
- Click the "Run Commands from JSON" terminal icon or select it from the dropdown menu
- All commands will execute simultaneously in separate terminals:
Installation
From Marketplace
- Open VS Code
- Go to Extensions view (Ctrl+Shift+X)
- Search for "Revive CMD"
- Click Install
From VSIX File
- Download the latest
.vsix
file from the releases page
- In VS Code, go to Extensions view (Ctrl+Shift+X)
- Click "..." at the top of the Extensions panel
- Select "Install from VSIX..."
- Choose the downloaded
.vsix
file
- Click "Install"
Configuration Examples
Simple React Project
{
"commands": [
{
"terminal": "React Dev",
"command": "npm run start"
},
{
"terminal": "Tests",
"command": "npm test"
}
]
}
Full Stack Project
{
"commands": [
{
"terminal": "Backend",
"command": "cd server && npm run dev"
},
{
"terminal": "Frontend",
"command": "cd client && npm start"
},
{
"terminal": "Database",
"command": "docker-compose up"
}
]
}
Next.js + API Project
{
"commands": [
{
"terminal": "Next.js",
"command": "npm run dev"
},
{
"terminal": "API",
"command": "cd api && npm start"
},
{
"terminal": "Prisma Studio",
"command": "npx prisma studio"
}
]
}
Development
Building the Extension
- Clone the repository:
git clone https://github.com/Mohit-Nippanikar78/Revive-CMD
cd revive-cmd
- Install dependencies:
npm install
- Package the extension:
npm install -g @vscode/vsce
vsce package
License
This project is licensed under the MIT License - see the LICENSE file for details.
Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Feedback
If you have any feedback or issues, please file an issue at the GitHub repository.
Made by Mohit Nippanikar