A CLI tool for rapidly creating and managing containerized development environments with Docker.
MyEnv streamlines the process of setting up development environments by automating Docker container creation, port management, and project configuration. Currently supports PHP projects including Laravel and other frameworks.
- Interactive Setup - Guided project creation with language and framework selection
- Automated Container Management - Docker Compose integration with health checks
- Port Conflict Prevention - Smart port allocation and validation
- VS Code Integration - Automatic project opening in development container
- Project Templates - Pre-configured development stacks
go install github.com/takashiraki/myenv@latest
myenv init
You can also specify the language and framework using flags:
myenv init --lang PHP --framework Laravel
This will:
- Prompt for language and framework selection (if not specified)
- Ask for container name and port configuration
- Clone the appropriate Docker template
- Generate environment configuration files
- Build and start the containers
- Create a new project with the selected framework
- Optionally open the project in VS Code
myenv init
- Create a new development environmentmyenv init -l PHP -f Laravel
- Create a Laravel project directlymyenv --help
- Show available commands and optionsmyenv --version
- Show version information
- Docker and Docker Compose
- Go 1.24.5 or later
- Git
git clone https://github.com/takashiraki/myenv.git
cd myenv
go mod tidy
go run main.go
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature
) - Commit your changes (
git commit -m 'Add some amazing feature'
) - Push to the branch (
git push origin feature/amazing-feature
) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.