파일을 다운 받으면 윈도우 버전과 리눅스 버전 폴더가 나뉘어져 있습니다.
cli_windowcli_linuxpowershell을 열고 cli_window 경로로 접속하여 ncloud를 실행합니다.
(저는 C 드라이브에 NCP 폴더를 만들고 그 안에 cli_window가 있습니다)
아래와 같은 메세지가 나타나면 정상적으로 설치된 것입니다.
% cd C:\NCP\cli_window
% ./ncloud
ncloud <command> [subcommand] help
ncloud: error: The command does not exist. For help, input 'help' command.
NCP CLI를 이용하기 위해서는 API 인증키를 등록해주어야 합니다.
API 인증키는 [마이 페이지] > [계정 관리] > [인증키 관리] 에서 확인 가능합니다.

ncloud configure을 통해 API 인증키를 등록합니다.
% PS C:\NCP\cli_windows> ./ncloud configure
set [DEFAULT]'s configuration.
Ncloud Access Key ID []: AAAA
Ncloud Secret Access Key []: AAAA
Ncloud API URL (default:https://ncloud.apigw.ntruss.com) []:
--profile <프로파일 명> 옵션을 이용하면 해당 프로파일에 대한 API 인증키를 등록할 수 있습니다.
NCP CLI를 통해 리전 코드 목록을 JSON 형태로 출력해봅시다.
% ./ncloud server getRegionList
{"getRegionListResponse": {
"requestId": "6a427ae9-57a9-4a1c-809d-80d483838dc9",
"returnCode": "0",
"returnMessage": "success",
"totalRows": 6,
"regionList": [
{
"regionNo": "1",
"regionCode": "KR",
"regionName": "Korea"
},
{
"regionNo": "3",
"regionCode": "HK",
"regionName": "HongKong"
},
{
"regionNo": "7",
"regionCode": "SGN",
"regionName": "Singapore(New)"
},
{
"regionNo": "8",
"regionCode": "JPN",
"regionName": "Japan(New)"
},
{
"regionNo": "9",
"regionCode": "USWN",
"regionName": "US-West(New)"
},
{
"regionNo": "10",
"regionCode": "DEN",
"regionName": "Germany(New)"
}
]
}}
ncloud configure를 수행하면 홈 경로에 ~/.ncloud/configure 파일이 생성되고 그 안에 액세스 키 관련 내용들이 들어있습니다.
% cat ~/.ncloud/configure
[DEFAULT]
ncloud_access_key_id = Zp
ncloud_secret_access_key = SV
ncloud_api_url = https://ncloud.apigw.ntruss.com
[klaytn]
ncloud_access_key_id = 29
ncloud_secret_access_key = E2
ncloud_api_url = https://ncloud.apigw.ntruss.com