sbx create shell
sbx create shell
sbx create shell은 shell 에이전트가 호스트 워크스페이스에 접근하는 샌드박스를 만드는 명령이에요.
출처: 문서
본문
sbx create shell은 shell이 호스트 워크스페이스에 접근하는 샌드박스를 만들어요.
워크스페이스 경로는 호스트와 같은 경로로 샌드박스 안에 마운트돼요. 추가 워크스페이스는 추가 인자로 줄 수 있고, :ro를 붙이면 읽기 전용으로 마운트해요. 읽기 전용 인자는 단일 파일을 지정할 수 있는데, 그 파일 하나만 샌드박스가 쓰는 워크스페이스 안에서 접근 불가로 유지돼요.
경로를 생략하면 워크스페이스 바인드 마운트 없이 샌드박스를 만들어요. 에이전트는 파일 대신 컨테이너 자체 파일시스템에서 작업해요.
생성 후 연결은 sbx run --name SANDBOX로 해요.
--cloud와 함께:
shell용 클라우드 샌드박스를 만들어요. 클라우드 샌드박스는 호스트 워크스페이스가 없어 경로가 뒤에 오지 않아요. 지정하지 않으면 2 CPU·4 GiB를 받아요.
sbx create shell [PATH...] [flags]
예시
# Create in the current directory
sbx create shell .
# Create with a specific path
sbx create shell /path/to/project
# Create with additional read-only workspaces
sbx create shell . /path/to/docs:ro
# Create without a workspace bind mount
sbx create shell
# Create a cloud sandbox for shell
sbx --cloud create shell
# Create a named cloud sandbox with a mixin baked in
sbx --cloud create --name my-project shell --kit ./my-mixin/
# Create from a template that already exists in the cloud registry
sbx --cloud create -t TEMPLATE