Skip to content
Structly Docs
한국어

stly

stly auth

On this page

This page is generated from the public contract. Descriptions are shown in the original Korean.

stly auth login#

브라우저 승인 User 로그인 또는 명시적 JSON 로그인

  • HTTP request: POST /api/auth/cli-login
  • Authentication modes: None
  • Changes records: Yes

Options

NameTypeRequiredDescription
--fieldsstringNo응답 최상위 필드, 쉼표로 구분
Values: current_organization_id, organizations, user, next_steps
--forcebooleanNo유효한 저장 세션이 있어도 새 브라우저 승인 시작
--inputstringNoJSON 원문 파일 또는 stdin(-)
--no-browserbooleanNoURL·코드만 안내하고 브라우저 자동 열기 생략

Common options: --server, --env-file, --timeout, --dry-run

Behavior

  1. POST /api/auth/cli-login
  2. 브라우저 /cli-login에서 코드 확인·명시적 승인
  3. POST /api/auth/cli-login/poll
  4. 독립 CLI 세션 저장
  5. stly auth status
  6. stly org list · stly org select <id>

Example

stly auth login

stly auth logout#

User 로그아웃

  • HTTP request: POST /api/auth/logout
  • Authentication modes: User session
  • Changes records: Yes

Options

NameTypeRequiredDescription
--fieldsstringNo응답 최상위 필드, 쉼표로 구분

Common options: --server, --env-file, --timeout, --auth-mode, --dry-run

Example

stly auth logout

stly auth signup#

User 회원가입

  • HTTP request: POST /api/auth/signup
  • Authentication modes: None
  • Changes records: Yes
  • Input JSON (--input) required

Check the input JSON structure with stly schema auth signup.

Options

NameTypeRequiredDescription
--inputstringYesJSON 원문 파일 또는 stdin(-)
--fieldsstringNo응답 최상위 필드, 쉼표로 구분
Values: current_organization_id, organizations, user

Common options: --server, --env-file, --timeout, --dry-run

Example

stly auth signup --input input.json

stly auth status#

토큰 우선·User 세션 자동 선택 상태 확인

  • HTTP request:
  • Authentication modes: User session, Agent token
  • Changes records: No

Options

Common options: --server, --env-file, --timeout, --auth-mode

Example

stly auth status