--- title: "auth" slug: "cli-archivestorage-auth" updated: 2026-09-17T09:16:11Z published: 2026-09-17T09:16:11Z canonical: "cli.ncloud-docs.com/cli-archivestorage-auth" --- > ## Documentation Index > Fetch the complete documentation index at: https://cli.ncloud-docs.com/llms.txt > Use this file to discover all available pages before exploring further. # auth Classic/VPC 환경에서 이용 가능합니다. 인증에 사용할 환경 변수를 셸에서 바로 사용할 수 있는 형식으로 출력합니다. ## 구문 `auth` 구문은 다음과 같습니다. ``` swift auth ``` ## 옵션 `auth`는 하위 옵션을 지원하지 않으며, 인증에 필요한 값은 공통 옵션으로 지정합니다. `swift` 명령에서 공통으로 사용하는 옵션에 대한 정보는 [Archive Storage 옵션](/docs/guide-archivestorage#%EC%98%B5%EC%85%98)을 참조해 주십시오. ## 예시 인증 요청이 성공하면 스토리지 URL과 인증 토큰을 환경 변수로 설정하는 `export` 명령이 출력됩니다. ### 명령 명령 예시는 다음과 같습니다. ``` swift --os-auth-url https://kr.archive.ncloudstorage.com:5000/v3 --auth-version 3 \ --os-username {access_key_id} --os-password {secret_key} \ --os-user-domain-id {domain_id} --os-project-id {project_id} \ auth ``` ### 출력 출력 예시는 다음과 같습니다. ``` export OS_STORAGE_URL=https://kr.archive.ncloudstorage.com/v1/AUTH_a1b2c3d4e5f64a7b8c9d0e1f2a3b4c5d export OS_AUTH_TOKEN= ``` 출력된 `export` 명령을 실행하면 이후 요청에서 재인증 없이 `OS_STORAGE_URL`과 `OS_AUTH_TOKEN`을 사용할 수 있습니다.