在没有桌面环境的机器上运行dws需要使用
dws auth login --device
如果报错
▶ Step 4: 检查组织 CLI 授权状态...
{
"error": {
"category": "auth",
"code": 2,
"message": "device authorization failed: 保存 token 失败: save to keychain: exit status 36"
}
}
# macos
security unlock-keychain ~/Library/Keychains/login.keychain-db