export ANTHROPIC_API_KEY=your_api_key_here
claude --version
CLAUDE.md프로젝트 루트에 파일을 만듭니다 .
# CLAUDE.md This is my project configuration file that Claude will automatically read. ## Common Commands- npm run build: Build the project- npm run test: Run tests- npm run lint: Code linting ## Project Standards- Use TypeScript- Follow ESLint rules- Prefer functional components
처음 실행 시 Claude Code가 도구 권한을 요청합니다. 권장 사항:
.bashrc또는 에 추가하세요 .zshrc:
# Claude Code Configurationexport CLAUDE_CONFIG_PATH="$HOME/.claude"export CLAUDE_DEFAULT_MODEL="claude-3-sonnet"
설정을 확인하려면 다음 명령을 실행하세요.
claude -p "Read the README.md file in current directory and summarize it"
모든 것이 올바르게 작동하면 Claude Code가 README 파일을 읽고 요약할 것입니다.
답변: 환경 변수가 올바르게 설정되었는지 확인하고 터미널을 재시작한 후 다시 시도하세요.
답변: 파일 권한을 확인하고 Claude Code가 대상 디렉토리에 액세스할 수 있는지 확인하세요.
A: 네트워크 연결 및 API 서비스 상태를 확인하세요.