Alibaba Cloud CLIインストール

(22)

https://qiita.com/n_watanabe/items/1ca89c3a3cf5dc650305
https://github.com/aliyun/aliyun-cli
https://github.com/aliyun/aliyun-cli/blob/master/README.md


sudo /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/aliyun/aliyun-cli/HEAD/install.sh)"

aliyun

export ALIBABACLOUD_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxxxxxxx
export ALIBABACLOUD_ACCESS_KEY_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export ALIBABACLOUD_REGION_ID=cn-qingdao

aliyun ram ListUsers

 

(12)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/aliyun/aliyun-cli/HEAD/install.sh)"

aliyun

export ALIBABACLOUD_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxxxxxxx
export ALIBABACLOUD_ACCESS_KEY_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export ALIBABACLOUD_REGION_ID=cn-qingdao

aliyun ram ListUsers

 

(RL9)

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/aliyun/aliyun-cli/HEAD/install.sh)"

aliyun

export ALIBABACLOUD_ACCESS_KEY_ID=xxxxxxxxxxxxxxxxxxxxxxxx
export ALIBABACLOUD_ACCESS_KEY_SECRET=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
export ALIBABACLOUD_REGION_ID=cn-qingdao

aliyun ram ListUsers

 

(2022)

https://hosopro.blogspot.com/2017/01/powershell-set-environment-variable.html


$Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine")
$Path += ";C:\Users\Administrator\Downloads\aliyun-cli-windows-latest-amd64"
[System.Environment]::SetEnvironmentVariable("Path", $Path, "Machine")

 


aliyun

$Env:ALIBABACLOUD_ACCESS_KEY_ID = "xxxxxxxxxxxxxxxxxxxxxxxx"
$Env:ALIBABACLOUD_ACCESS_KEY_SECRET = "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
$Env:ALIBABACLOUD_REGION_ID = "cn-qingdao"

aliyun ram ListUsers