Claude Code로 개발 환경을 순식간에 세팅하는 방법
새 PC든 새 프로젝트든, Claude Code에 맡기면 개발 환경 세팅이 몇 분이면 끝납니다.
Ever spent half a day setting up a dev environment on a new PC or for a new project? With Claude Code, it takes minutes.
1. Scaffold a New Project
Stand up a project from zero.
mkdir my-app && cd my-app
claude -p "
Set up a Next.js 15 + TypeScript + Tailwind CSS + Prisma + PostgreSQL project.
Include:
- ESLint + Prettier config
- Vitest setup
- Docker Compose (PostgreSQL)
- .env.example
- GitHub Actions CI
- CLAUDE.md
Run npm install when done.
"
In 5 minutes you get a best-practice project ready to go.
2. Bootstrap an Existing Repo
After cloning a team repo, automate the setup.
git clone https://github.com/team/project.git
cd project
claude -p "
Set up the dev environment for this project.
Read README.md and package.json, then:
- Install dependencies
- Set up env vars (.env.example -> .env)
- Set up the database
- Run migrations
- Start the dev server to verify
If errors occur, fix them automatically.
"
It reads the README, parses package.json, runs commands in order, and auto-fixes errors along the way.
3. Docker Environment
Docker Compose config in one shot.
claude -p "
Create a docker-compose.yml with:
- PostgreSQL 16 (port 5432)
- Redis 7 (port 6379)
- MinIO S3-compatible (ports 9000/9001)
Include health checks, volume persistence, and .env variable loading.
Run docker compose up -d.
"
4. Editor Config Standardization
Align everyone’s editor settings.
claude -p "
Create VS Code config files:
.vscode/settings.json:
- Auto-format on save with Prettier
- TypeScript strict mode
- Auto-sort imports
.vscode/extensions.json:
- Recommended extensions for the team
.editorconfig:
- 2-space indent
- Trim trailing whitespace
- Final newline
"
Commit to Git and every team member works with the same settings. See Team Collaboration Guide.
5. CI/CD Pipeline
Auto-generate GitHub Actions.
claude -p "
Create a GitHub Actions workflow for this project:
- On push: lint -> typecheck -> test -> build
- On PR: above + coverage report
- On main merge: above + deploy to Cloudflare Pages
"
See CI/CD Setup Guide.
6. Environment Variable Management
Keep .env.example in sync automatically.
claude -p "
Scan all files for process.env.XXX references.
Output a complete .env.example with dummy values.
If .env.example exists, only add missing vars.
"
Never forget to update .env.example when adding new env vars.
7. Record Setup Steps in CLAUDE.md
Save the setup procedure so it auto-replays for new members.
claude -p "
Add a '## Environment Setup' section to CLAUDE.md.
Document every step from clone to running dev server.
"
Next time someone joins, Claude Code reads CLAUDE.md and sets up automatically. See CLAUDE.md Best Practices.
Gotchas
Node.js Version Management
Use .nvmrc or .node-version — Claude Code auto-detects them.
Docker Permission Issues
On Linux/WSL, permission errors are common. Just tell Claude Code “fix this Docker error.”
Apple Silicon vs Intel
Build behavior differs. Note it in CLAUDE.md and Claude Code adapts.
Conclusion
- New project scaffolding in 5 minutes
- Existing project setup automated (including error recovery)
- Docker, editor, CI/CD configs generated in one shot
- Env var management with zero drift
- CLAUDE.md preserves setup steps for the team
Dev environment setup has moved from “manual labor” to “ask Claude Code.” See the Anthropic Claude Code docs.
Claude Code 워크플로우를 한 단계 업그레이드하세요
지금 바로 Claude Code에 복사해 쓸 수 있는 검증된 프롬프트 템플릿 50선.
무료 PDF: 5분 완성 Claude Code 치트시트
이메일 주소만 등록하시면 A4 한 장짜리 치트시트 PDF를 즉시 보내드립니다.
개인정보는 엄격하게 관리하며 스팸은 보내지 않습니다.
이 글을 작성한 사람
Masa
Claude Code를 적극 활용하는 엔지니어. 10개 언어, 2,000페이지 이상의 테크 미디어 claudecode-lab.com을 운영 중.
관련 글
Claude Code로 신규 엔지니어 온보딩 시간을 대폭 단축하는 방법
3개월 램프업을 2주로. Claude Code를 신입의 코드베이스·환경·첫 PR 코파일럿으로 활용하세요.
Claude Code로 기술 부채를 시각화하고 체계적으로 줄이는 방법
갚지 않은 기술 부채는 엔지니어링 속도를 갉아먹습니다. Claude Code로 부채를 드러내고, 우선순위를 정하고, 점진적으로 상환하는 법을 배워보세요.
Claude Code로 REST API 설계를 빠르게 완성하는 방법
엔드포인트 설계부터 OpenAPI 정의, 유효성 검사, 에러 처리까지. Claude Code를 API 설계 파트너로.