Linux command
odpscmd-auth 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Configure authentication interactively
odpscmd auth config
Set access credentials directly
odpscmd auth set --access-id [id] --access-key [key]
Show the current authenticated user
odpscmd auth whoami
Clear stored credentials
odpscmd auth clear
说明
odpscmd auth manages authentication for the odpscmd MaxCompute Console, the legacy Java-based CLI for Alibaba Cloud MaxCompute (formerly ODPS). Credentials (access key ID and secret) are obtained from the Alibaba Cloud console and stored locally in the odpscmd configuration file. The `whoami` subcommand verifies connectivity by displaying the current account identity. For the newer Go-based CLI, see odps-auth(1).
参数
- config
- Configure authentication interactively.
- set
- Set credentials non-interactively using flags.
- whoami
- Display the current authenticated user.
- clear
- Remove stored credentials.
- --access-id _ID_
- Alibaba Cloud access key ID.
- --access-key _KEY_
- Alibaba Cloud access key secret.
- --help
- Display help information.
FAQ
What is the odpscmd-auth command used for?
odpscmd auth manages authentication for the odpscmd MaxCompute Console, the legacy Java-based CLI for Alibaba Cloud MaxCompute (formerly ODPS). Credentials (access key ID and secret) are obtained from the Alibaba Cloud console and stored locally in the odpscmd configuration file. The `whoami` subcommand verifies connectivity by displaying the current account identity. For the newer Go-based CLI, see odps-auth(1).
How do I run a basic odpscmd-auth example?
Run `odpscmd auth config` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does config do in odpscmd-auth?
Configure authentication interactively.