Skip to content

๐Ÿš€ CLI tool for creating containerized development environments with automated Docker setup and VS Code integration

License

Notifications You must be signed in to change notification settings

takashiraki/myenv

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

21 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

myenv

A CLI tool for rapidly creating and managing containerized development environments with Docker.

Overview

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.

Features

  • 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

Installation

go install github.com/takashiraki/myenv@latest

Usage

Create a New Project

myenv init

You can also specify the language and framework using flags:

myenv init --lang PHP --framework Laravel

This will:

  1. Prompt for language and framework selection (if not specified)
  2. Ask for container name and port configuration
  3. Clone the appropriate Docker template
  4. Generate environment configuration files
  5. Build and start the containers
  6. Create a new project with the selected framework
  7. Optionally open the project in VS Code

Available Commands

  • myenv init - Create a new development environment
  • myenv init -l PHP -f Laravel - Create a Laravel project directly
  • myenv --help - Show available commands and options
  • myenv --version - Show version information

Requirements

  • Docker and Docker Compose
  • Go 1.24.5 or later
  • Git

Development

git clone https://github.com/takashiraki/myenv.git
cd myenv
go mod tidy
go run main.go

Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add some amazing feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

License

This project is licensed under the MIT License - see the LICENSE file for details.

About

๐Ÿš€ CLI tool for creating containerized development environments with automated Docker setup and VS Code integration

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages