Start
Private install
GitHub Packages 인증, manual install, Surface CLI 사용법을 별도로 정리
reopt designUpdated
1. 토큰과 registry
내부 저장소/CI가 아닌 곳에서 설치할 때는 registry와 토큰 상태를 먼저 확인합니다.
ini
@reopt-ai:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}bash
export GITHUB_TOKEN=ghp_xxx
bun add @reopt-ai/opt-ui
bun add -d tailwindcss @tailwindcss/postcss postcss
npx @reopt-ai/opt-cli surface list2. 패키지 설치
bash
bun add @reopt-ai/opt-ui런타임은 @reopt-ai/opt-ui 를 import하고, 필요한 경우 optional
peer dependency를 각 프로젝트에 추가합니다.
3. Surface 설치
bash
npx @reopt-ai/opt-cli surface add billing-pagenpx @reopt-ai/opt-cli surface list로 설치 가능한 Surface 목록을 확인합니다.- 복사된 Surface는 프로젝트 내부 코드로 취급하고 직접 수정합니다.
4. 문제 해결
403또는404가 나면 토큰 권한과 registry 설정을 먼저 다시 확인합니다.Surface가 최신이 아니면 CLI 버전을 확인합니다. Surface registry는 CLI 패키지와 함께 배포됩니다.