An open API service indexing awesome lists of open source software.

https://github.com/aadish-25/devenvx-cli

Source code for DevEnvx β€” a CLI tool to automate full development environment setup on Windows using Node.js and PowerShell.
https://github.com/aadish-25/devenvx-cli

automation cli cli-tool cli-tool-cross-platform cpp cross-language developer-tools development devenvx devtools environment-setup java nodejs npm npx powershell python script-setup terminal windows

Last synced: about 1 month ago
JSON representation

Source code for DevEnvx β€” a CLI tool to automate full development environment setup on Windows using Node.js and PowerShell.

Awesome Lists containing this project

README

          


πŸš€ DevEnvx CLI



npm


GitHub Repo


License

Available instantly via npx β€” no install, no setup, no browser.

---

## The Ultimate Development Environment Setup Tool for Windows

**DevEnvx CLI** is a zero-install, cross-language setup tool available directly via `npx`.
It lets you configure full development environments (Python, Java, C++, and more) from the terminal β€” no downloads, no GUIs, no extra setup.
Everything happens via trusted PowerShell scripts under the hood, but you only run one command:

```bash
npx devenvx
```

That’s it. **No global installation. No browser. No configuration.**

---

## ✨ Why DevEnvx?

- **Powered by npm** β€” Instantly accessible via the world’s most trusted package registry β€” no installs, no browser, just run.
- **Truly One-Line Setup** β€” From nothing to a fully configured environment in seconds
- **Zero Browser Required** β€” Everything happens in your terminal
- **Windows-Native Integration** β€” Purpose-built for Windows using PowerShell scripts
- **Clean, Fast, & Reliable** β€” Optimized installers with intelligent validation
- **Multiple Language Support** β€” Set up C++, Java, Python, and more with one interface

---

## πŸš€ Get Started in Seconds

### 1. Run DevEnvx directly:

```bash
npx devenvx
```

> β–Έ Prefer using it globally? Install once with:
>
> ```bash
> npm install -g devenvx
> ```
>
> Then run it anytime with:
>
> ```bash
> devenvx
> ```

### 2. Set up your desired programming language:

```bash
npx devenvx install python
```

> β–Έ Using the global install? Run:
>
> ```bash
> devenvx install python
> ```

### 3. Start coding instantly

Your environment is ready to use right away β€” no terminal restart needed.

```bash
python --version
```

> ℹ️ **Note:**
> The first time you run `npx devenvx`, npm may ask:
> `Need to install the following packages: devenvx... Ok to proceed? (y)`
> Just type `y` β€” from next time, it runs instantly without prompts.

> ⚠️ **Having issues running DevEnvx in PowerShell?** [Click here to troubleshoot.](#-powershell-troubleshooting)
>
---

## πŸ†• New: React + Vite + Tailwind Setup

DevEnvx now **creates fully configured React projects with Vite + Tailwind v3.4.17**, eliminating the usual headaches of manual setup, installation errors, and countless configuration bugs.

### Create a new React project effortlessly:

```bash
npx devenvx react-vite-tailwind my-app
```

- **Skip the struggle:** Automatically sets up React + Vite with Tailwind ready to go
- **No manual installation** of TailwindCSS required
- **Cleans unnecessary default files** (`App.css`, `index.css`, `logo.svg`)
- **Provides a minimal `App.jsx` and `index.css`** configured with Tailwind directives
- Sets up `tailwind.config.js` and `vite.config.js` for **instant Tailwind usage**

### Run your project immediately:

```bash
cd my-app
npm run dev
```

> πŸ’‘ **Save time and avoid errors:** DevEnvx handles all setup, so you can start building React apps instantly without dealing with Tailwind configuration issues.

---

## πŸ› οΈ Features That Set DevEnvx Apart

- **Smart Installation** β€” Automatically detects existing installations and skips unnecessary downloads
- **Environment Validation** β€” Verifies your setup with real compilation tests
- **PATH Management** β€” Automatically configures system PATH variables
- **Clean Uninstallation** β€” Remove environments without leaving stray files or registry entries
- **Multiple Language Support** β€” Install multiple languages with one command
- **Published on npm** β€” Delivered via the world’s most trusted package registry β€” no shady downloads, no manual scripts

```bash
# Install multiple environments at once
npx devenvx install java cpp python
```

---

## πŸ“‹ Command Reference

### List Supported Languages

```bash
npx devenvx list
```

### Install Language Environment(s)

```bash
npx devenvx install python # Install a single language
npx devenvx install java cpp # Install multiple languages at once
```

### Verify Language Environment

```bash
npx devenvx check cpp
```

Sample Output

```
πŸ” Checking tools for language: cpp

βœ… C++ Compiler (g++) is installed. Version: g++ (tdm64-1) 10.3.0
βœ… C Compiler (gcc) is installed. Version: gcc (tdm64-1) 10.3.0
βœ… Debugger (gdb) is installed. Version: GNU gdb (GDB) 10.2

πŸŽ‰ All required tools for cpp are installed and working properly!
```

### Uninstall Language Environment

```bash
npx devenvx uninstall python
```

---

## 🌟 Supported Languages

| Language | Status | Installer Details | Features |
| :------- | :------------------ | :---------------------------- | :------------------------------------- |
| C++ | βœ… Fully Supported | MinGW / TDM-GCC | g++, gcc, gdb |
| Java | βœ… Fully Supported | OpenJDK / Oracle JDK | JDK, JRE, javac |
| Python | βœ… Fully Supported | Official Python.org Build | Python 3.x, pip |
| Node.js | πŸ§ͺ Experimental | Node.js LTS | Node.js, npm |
| PHP | πŸ§ͺ Experimental | Windows Installer | PHP, Composer |
| Go | πŸ§ͺ Experimental | Go SDK | Go toolchain |
| Ruby | πŸ§ͺ Experimental | RubyInstaller | Ruby, gem |
| Rust | πŸ§ͺ Experimental | Rustup Toolchain | rustc, cargo |

---

## πŸ”„ How It Works

DevEnvx uses Node.js and PowerShell to create a seamless installation experience:

1. The CLI parses your command and identifies the language(s) to install
2. It runs specialized PowerShell scripts with elevated permissions to:
- Download official installers directly from trusted sources
- Execute installations with silent flags for zero-interaction setup
- Configure system PATH and environment variables
- Verify the installation with real compilation tests
3. You get a fully functional development environment without leaving your terminal

---

## πŸ† What Makes DevEnvx One-of-a-Kind

- **No Browser Required** β€” Unlike other tools that open your browser or require manual downloads, DevEnvx handles everything within the terminal
- **Zero Manual Intervention** β€” No clicking through installers or manually configuring environment variables
- **First-Class Windows Support** β€” Built specifically for Windows, not a Linux tool poorly adapted to Windows
- **Intelligent Recovery** β€” Automatically detects and fixes broken or partial installations
- **Actual Compilation Testing** β€” Verifies installations by compiling and running real code

---

## πŸ“š PowerShell Documentation

To understand how DevEnvx works under the hood, including all PowerShell flags, behaviors, and scripting logic used in our installers and uninstallers:

πŸ”— [docs/powershell-notes.md](./docs/powershell-notes.md)

This guide is beginner-friendly and explains every flag and concept used in the project β€” a must-read if you're exploring or contributing.

---

## 🧠 PowerShell Troubleshooting

If you see an error like this when running `npx devenvx`:

```
npx : File C:\Program Files\nodejs\npx.ps1 cannot be loaded because running scripts is disabled on this system.
```

It means your system's **PowerShell script execution policy is restricted**.

### βœ… Fix: Allow PowerShell Scripts Permanently (Safe)

To allow trusted scripts to run in all PowerShell sessions for your user account, run:

```powershell
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser -Force
```

This is a **safe and permanent fix** that enables locally created or signed scripts β€” without affecting system-wide security.

## πŸ” Real-World Use Cases

- **Developer Onboarding** β€” Get new team members coding in minutes with a complete environment setup.
- **Multi-Language Learning** β€” Quickly set up and switch between Python, Java, C++, and more for study or experimentation.
- **Classroom & Training** β€” Provision dozens of machines with consistent environments β€” no manual setup needed.
- **CI/CD Integration** β€” Automate reliable, reproducible dev setups in your continuous integration workflows.

---

## πŸ“‹ Prerequisites

- Windows 10 or 11
- Node.js v14.0.0 or higher
- Administrator privileges (for system-level installations)

---

## πŸ‘₯ Contributing

We welcome contributions! To add support for a new language or improve existing functionality:

1. Fork the repository
2. Create a new branch for your feature
3. Add your installer/uninstaller scripts
4. Submit a pull request

See the [contributing guidelines](CONTRIBUTING.md) for detailed instructions.

---

## πŸ“œ License

This project is licensed under the MIT License β€” see the [LICENSE](LICENSE) file for details.

---

## πŸ“Š Project Roadmap

- [ ] Support for more programming languages
- [ ] Automated development environment setup (VS Code, IDEs)
- [ ] Project template generation
- [ ] Docker container integration
- [ ] Cross-platform support (macOS, Linux)

---

## 🀝 Acknowledgments

- Built with [Node.js](https://nodejs.org/) and [PowerShell](https://github.com/PowerShell/PowerShell)

---

DevEnvx is available globally via the world's largest package registry β€” npm.

DevEnvx: Because setting up your development environment shouldn't be harder than actual coding.

---