Skip to content

v0.4.1 - Official CLI Installation and Migration Guide | 공식 CLI 설치와 마이그레이션 가이드

Choose a tag to compare

@NARUBROWN NARUBROWN released this 02 Nov 06:28
· 195 commits to preview since this release
cbeb004
Spine

🦴 Spine CLI v0.4.1

Official CLI Installation and Migration Guide | 공식 CLI 설치와 마이그레이션 가이드

Spine CLI v0.4.1은 공식 설치 경로를 github.com/NARUBROWN/spine-cli/cmd/spine으로, 호출 명령을 spine으로 명확히 안내하는 패치입니다. 기존 앱을 CLI가 검사하는 구조로 옮기는 가이드와 오프라인 계약 검사의 모듈 캐시 복구 안내를 추가합니다.

Spine CLI v0.4.1 clarifies the official installation path, github.com/NARUBROWN/spine-cli/cmd/spine, and the executable command, spine. It adds guidance for adapting existing applications to the CLI and preparing the module cache for offline contract inspection.

이 릴리스 노트는 v0.4.0 태그 이후의 최종 변경을 정리합니다. 기존 CLI 명령, 생성 동작과 HTTP/DI 계약은 유지합니다.

These release notes cover the final changes since the v0.4.0 tag. Existing CLI commands, generation behavior, and HTTP/DI contracts are preserved.


✨ 주요 변경 사항 | Highlights

  • 공식 설치 경로 cmd/spine과 호출 명령 spine으로 README와 에이전트 안내 통일
  • 일반 설치에는 @latest, CI와 버전별 재현에는 고정 태그를 사용하는 기준 명시
  • 기존 앱을 위한 CLI v0.4.0 호환 워크스페이스 마이그레이션 가이드 추가
  • MODULE_GRAPH_UNAVAILABLE 발생 시 전체 모듈 메타데이터를 준비하는 절차 문서화
  • Aligned the README and agent guidance around installation through cmd/spine and invocation through spine
  • Clarified the use of @latest for general installation and pinned tags for CI and reproducibility
  • Added the CLI v0.4.0-compatible workspace migration guide for existing applications
  • Documented full module metadata preparation when inspection reports MODULE_GRAPH_UNAVAILABLE

🚀 주요 변경 사항 상세 | Detailed Changes

설치 경로와 호출 명령 | Installation Path and Command Name

공식 설치 경로는 github.com/NARUBROWN/spine-cli/cmd/spine이며 실행 파일 이름은 spine입니다. 도움말, 생성 README, 첫 API 예제와 자동화의 다음 명령도 spine을 사용합니다.

프로젝트 이름은 spine-cli입니다. spine version은 기존 출력 형식으로 spine-cli 0.4.1을 반환합니다.

The official installation path is github.com/NARUBROWN/spine-cli/cmd/spine, which installs the spine executable. Help, generated READMEs, the first API example, and suggested automation commands use spine.

The project name remains spine-cli. spine version retains the existing output format and returns spine-cli 0.4.1.

기존 프로젝트의 마이그레이션 | Existing Project Migration

새 워크스페이스 마이그레이션 가이드는 기존 앱의 설정, 레이아웃, 명시적 앱 구성과 HTTP API를 조사하고 전환하는 절차를 설명합니다. 고정 CLI 버전으로 재현할 수 있도록 가이드의 v0.4.0 기준을 유지합니다.

spine update는 프로젝트 의존성 갱신 명령입니다. 소스, 설정과 레이아웃 전환은 가이드에 따라 별도로 적용합니다.

The new workspace migration guide explains how to inspect and adapt configuration, layouts, explicit application composition, and HTTP APIs in existing projects. It retains the pinned v0.4.0 CLI baseline for reproducibility.

spine update updates project dependencies. Apply source, configuration, and layout changes separately using the guide.

오프라인 모듈 검사 복구 | Offline Module Inspection Recovery

정적 계약 검사는 모듈 그래프를 오프라인으로 읽습니다. 의존성을 직접 변경했거나 MODULE_GRAPH_UNAVAILABLE이 발생하면 다음 명령으로 전체 모듈 메타데이터를 준비한 뒤 다시 검사합니다.

Static contract inspection reads the module graph offline. After changing dependencies manually, or when inspection reports MODULE_GRAPH_UNAVAILABLE, prepare the full module metadata before checking again.

go mod tidy
go mod download all
spine contract check --json
spine verify --json

🧩 호환성 메모 | Compatibility Notes

Spine v0.6.0, Echo 플랫폼 v0.1.0, Echo v5.4.4의 검증 레시피를 유지합니다. 기존 CLI 명령과 생성 규칙, Go API, 설정 파일 이름 및 JSON 프로토콜 스키마도 유지합니다. v0.4.0에서 생성한 앱은 이 패치 때문에 업무 Go 소스를 이동하거나 마이그레이션할 필요가 없습니다.

The verified recipe remains Spine v0.6.0, Echo platform v0.1.0, and Echo v5.4.4. Existing CLI commands, generation rules, Go APIs, configuration file names, and JSON protocol schemas are preserved. Applications generated with v0.4.0 do not need source relocation or migration for this patch.


🧪 테스트 범위 | Test Coverage Boundary

  • CLI 전체 go test -race ./... -count=1, vet, gofmt와 diff 검사 통과
  • Windows amd64 공식 패키지 빌드 통과
  • 공개 cmd/spine@v0.4.1과 cmd/spine@latest 설치 및 spine-cli 0.4.1 출력 확인
  • 별도 GOBIN에 spine만 설치되고 spine-cli가 없는 PATH에서 discovery 명령 통과
  • 공개 CLI로 new dry-run/if-match, Echo 플랫폼 설치 6단계와 contract check/verify 통과
  • 수동 tidy나 업무 Go 소스 수정 없이 실제 /health 200, 정상 종료와 포트 반환 확인
  • 생성 README와 next_actions가 spine을 사용함을 확인
  • Passed the full CLI race suite, vet, gofmt, and diff checks
  • Passed the Windows amd64 build of the official package
  • Installed the public cmd/spine@v0.4.1 and cmd/spine@latest packages and confirmed spine-cli 0.4.1
  • Confirmed that the isolated GOBIN contains only spine and discovery works without spine-cli on PATH
  • Passed guarded project creation, all six Echo installation stages, and contract check/verify using the public CLI
  • Observed real /health HTTP 200, normal shutdown, and port release without manual tidy or application Go edits
  • Verified spine commands in the generated README and next_actions

검증은 로컬 Go 검사와 공개 태그를 설치한 CLI의 실제 로컬 HTTP 실행 범위입니다. Windows 실행, 외부 DB, 브로커와 운영 애플리케이션 배포는 포함하지 않습니다.

These results cover local Go checks and real local HTTP execution with the CLI installed from the public tag. Windows execution, live databases, brokers, and production application deployment are outside this validation.


📦 설치 | Installation

Go 1.25.5 이상에서 다음 명령으로 설치합니다.

Install with Go 1.25.5 or later.

go install github.com/NARUBROWN/spine-cli/cmd/spine@v0.4.1
spine version
# spine-cli 0.4.1

spine new todo-api --module github.com/acme/todo-api
cd todo-api
spine dev

일반 설치에서는 최신 공개 태그를 선택하는 @latest를 사용할 수 있습니다.

For general installation, use @latest to select the latest published tag.

go install github.com/NARUBROWN/spine-cli/cmd/spine@latest

다른 터미널에서 기본 health 응답을 확인합니다. 200 OK와 {"status":"ok"}가 반환됩니다.

Check the default health response in another terminal. It returns 200 OK and {"status":"ok"}.

curl http://localhost:8080/health

관련 PR / Pull request: #26

Full Changelog: v0.4.0...v0.4.1