yak account¶
Switch the active AWS account.
Usage¶
Description¶
Switches the active account, regenerates ~/.aws/config with the new active account context, and exports credentials for the new account. Accepts full account names or any configured alias.
Updates state.json in your configured state directory (paths.state_dir, default ~/.local/share/yak).
Flags¶
| Flag | Description |
|---|---|
--role <tier> |
Also switch to this role tier when changing account |
Examples¶
Notes¶
yak account cannot set AWS_PROFILE in your parent shell on its own — this requires the shell wrapper.