spine-cli

command module
v0.4.4-rc.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 11, 2026 License: MIT Imports: 2 Imported by: 0

README

Spine CLI

Spine 앱을 생성하고, 실행 계약을 검사하고, API 명세를 내보내는 Go CLI입니다. 설치한 실행 파일은 spine입니다.

채널별 소스는 Preview, RC, Stable에서 확인하세요.

빠른 시작

Go 1.25.5 이상이 필요합니다. --validator playground를 선택한 앱에는 Go 1.26.0 이상이 필요합니다.

go install github.com/NARUBROWN/spine-cli/cmd/spine@latest
spine version
spine new todo-api --module github.com/acme/todo-api --channel main --no-interactive
cd todo-api
spine dev
curl http://localhost:8080/health

/health에서 HTTP 200과 {"status":"ok"}가 반환됩니다. --channel main은 정식 의존성을 선택합니다. 선택된 버전은 생성된 go.mod에서 확인하세요.

자주 쓰는 명령

명령 하는 일
spine new Spine 프로젝트 생성
spine dev 개발 서버 실행과 변경 감지
spine g resource 리소스에 필요한 구성 요소 생성
spine contract check 앱에 등록된 실행 계약 검사
spine verify 정적 계약, 서식, go vet, 테스트 검사
spine update 프로젝트의 Spine과 플랫폼 의존성 갱신

기존 파일을 수정하는 생성 작업은 --dry-run --json으로 변경을 확인하고, 검토한 base_hash를 --if-match로 전달하세요. CLI 자체는 위의 go install 명령으로 갱신합니다.

더 보기

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
cmd
spine command
internal
cli

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL