본문으로 건너뛰기

CLI 레퍼런스

명령어

bash
npx connectbase tunnel <port> [options]

옵션

옵션단축설명기본값
--public-key <key>-k유저 Secret Key (cb_sk_)CONNECTBASE_SECRET_KEY 환경변수
--app <appID>-a앱 ID자동 선택 또는 인터랙티브
--base-url <url>-u서버 URLhttps://api.connectbase.world
--timeout <sec>-t요청 타임아웃 (초)플랜 기본값
--max-body <MB>최대 바디 크기 (MB)플랜 기본값
--help-h도움말

예시

기본 사용

bash
# React 개발 서버 (포트 3000)
npx connectbase tunnel 3000

# Next.js 개발 서버
npx connectbase tunnel 3000

# FastAPI 서버
npx connectbase tunnel 8000

고급 옵션

bash
# GPU 서버 (긴 응답 시간)
npx connectbase tunnel 7860 --timeout 300 --max-body 50

# Stable Diffusion WebUI
npx connectbase tunnel 7860 -t 600

# 대용량 파일 업로드
npx connectbase tunnel 3000 --max-body 100

종료

  • Ctrl+C: 터널 종료
  • 연결이 끊어지면 자동 재연결 시도 (최대 10회)