帮助信息 $ ./ali-windows.exe -h 阿里云相关工具。 Usage: ali [command] Available Commands: completion Generate the autocompletion script for the specified shell help Help about any command image 查看镜像仓库镜像 version 本工具版本号 Flags: --access-key-id string 必须,阿里云 access-key-id,可环境变量设置 ALIYUN_ACCESS_KEY_ID --access-key-secret string 必须,阿里云 access-key-secret,可环境变量设置 ALIYUN_ACCESS_KEY_SECRET -f, --config string config file (default is $HOME/.basecmd) -h, --help help for ali --region string 阿里云 region,可环境变量设置 ALIYUN_REGION (default "cn-shanghai") Use "ali [command] --help" for more information about a command. image 子命令 $ ./ali-windows.exe image -h 查看阿里云镜像仓库的镜像信息。 默认使用: ali image -N dzcx-uat -r lbs 指定条目数:ali image -N dzcx-uat -r lbs -n 5 仅返回最后一条:ali image -xs -N dzcx-uat -r lbs -n 1 查询某个tag信息:ali image -N dzcx-uat -r lbs -t uat01-202305230943 查询某个tag信息,仅返回名字:ali image -N dzcx-uat -r lbs -t uat01-202305230943 -xs 注意: 记得提供阿里云访问密钥。 Usage: ali image [flags] Flags: -a, --args 显示传入的所有参数 -h, --help help for image -N, --namespace string 必须,指定命名空间 -x, --noheader 不显示头信息 -n, --number int 输出条目数,最大20 (default 20) -r, --repo string 必须,指定仓库名(一般为项目名) -s, --short 简短显示,只显示tag名字 -t, --tag string 获取指定的tag Global Flags: --access-key-id string 必须,阿里云 access-key-id,可环境变量设置 ALIYUN_ACCESS_KEY_ID --access-key-secret string 必须,阿里云 access-key-secret,可环境变量设置 ALIYUN_ACCESS_KEY_SECRET -f, --config string config file (default is $HOME/.basecmd) --region string 阿里云 region,可环境变量设置 ALIYUN_REGION (default "cn-shanghai")