spine-cli

command module
v0.4.4-preview.3 Latest Latest
Warning

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

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

README

Spine CLI

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

Preview 채널 | 공개 태그 v0.4.4-preview.2

개발 중인 기능을 시험하고 호환성 문제를 확인하는 채널입니다.

다른 채널은 RC | Stable에서 확인하세요.

빠른 시작

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

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

/health에서 HTTP 200과 {"status":"ok"}가 반환됩니다. --channel preview는 코어와 플랫폼의 개발 브랜치를 조회합니다. 실제로 선택된 버전은 생성된 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 명령으로 갱신합니다.

Spine Cloud 미리보기

spine cloud auth login으로 로그인하고, spine.toml이 있는 프로젝트에서 spine deploy를 실행합니다. 지원 옵션은 spine cloud auth --help와 spine deploy --help에서 확인하세요.

더 보기

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