run-project-commands
v1.0.0
Published
A powerful CLI toolkit for developers to run, manage, and automate project commands across JavaScript/TypeScript projects with task automation and workflow management
Maintainers
Readme
Run Project Commands (RPC)
A powerful, developer-friendly CLI toolkit for running and managing project commands in JavaScript/TypeScript projects. Streamline your development workflow with automated task management, command execution, and project configuration.
✨ Features
- Simple Command Execution: Run project commands with ease using the intuitive CLI interface
- Project Information: Display package details directly from your terminal
- System Diagnostics: Built-in doctor command to verify installation and compatibility
- Developer-Friendly: Designed for JavaScript/TypeScript developers to increase productivity
- Cross-Platform: Works on Windows, macOS, and Linux environments
🚀 Installation
Global Installation (Recommended)
We recommend installing run-project-commands globally to make the rpc command available in any terminal or directory on your system:
npm install -g run-project-commandsAfter global installation, you can run the rpc command from any terminal:
rpcAlternative: Run with npx
If you prefer not to install globally, you can run it directly with npx:
npx run-project-commands
# or shorter:
npx rpc📋 Usage
Basic Command
When you run rpc in a project directory, it will display the package name and version from the package.json file.
rpcAvailable Commands
Doctor Command (rpc doctor)
The doctor command checks if your installation is healthy and working correctly:
rpc doctorThis command performs:
- ✅ Verification of global RPC installation
- 🔄 Checks for available updates
- 🔍 Node.js compatibility validation
- 💡 Troubleshooting recommendations
Command Options
# Display version information
rpc -v
rpc --version
# Display help menu and available commands
rpc --help💻 Development
Want to contribute or build locally? Follow these steps:
Clone the repository:
git clone https://github.com/AdarshHatkar/run-project-commands.git cd run-project-commandsInstall dependencies:
npm installBuild the project:
npm run buildFor development with auto-rebuild:
npm run devLink locally for testing:
npm run link
🔍 Troubleshooting
Command not found after global installation
If you've installed the package globally but still get a "command not found" error when running rpc, try the following:
Check your PATH environment variable:
# On Windows (PowerShell) $env:PATH # On macOS/Linux echo $PATHFind the location of your global npm bin directory:
npm config get prefixThe global bin directory is typically
<npm prefix>/binon macOS/Linux or<npm prefix>on Windows.If needed, add the global npm bin directory to your PATH in your shell profile.
📊 Compatibility
- Node.js: >=16.0.0
- Platforms: Windows, macOS, Linux
� Future Plans
While we're planning to expand this tool to support various project types in the future, our current focus is on Node.js/JavaScript/TypeScript projects. We aim to make RPC a universal tool for developers across different technologies.
If you're interested in adding new functionality or extending support for other project types, feel free to raise a pull request! Contributions are always welcome.
