### Install 'assume' CLI Source: https://github.com/sanderknape/assume/blob/master/README.md Install the 'assume' utility using pip. This command is used to add the CLI to your Python environment. ```bash pip install assume ``` -------------------------------- ### Add a Specific Role with ARN Source: https://github.com/sanderknape/assume/blob/master/README.md Example of adding a role named 'myrole' with its specific ARN. If no profile is specified, the default profile is used. ```bash assume add myrole --role-arn arn:aws:iam::012345678912:role/myrole ``` -------------------------------- ### Set up Development Environment Source: https://github.com/sanderknape/assume/blob/master/CONTRIBUTING.md Clone the repository and set up a Python virtual environment. Activate the environment and initialize the project dependencies. ```bash cd /path/to/cloned/repository python3 -m venv venv source venv/bin/activate make init ``` -------------------------------- ### Show 'assume' CLI Help Source: https://github.com/sanderknape/assume/blob/master/README.md Display all available commands and options for the 'assume' CLI. Use this to understand the full range of functionality. ```bash assume --help ``` -------------------------------- ### List Configured Roles Source: https://github.com/sanderknape/assume/blob/master/README.md Display the contents of the 'assume' configuration file, located at `~/.assume/config.yaml`. This shows all roles that have been added. ```bash assume list ``` -------------------------------- ### Run Linter Source: https://github.com/sanderknape/assume/blob/master/CONTRIBUTING.md Execute the linter to check for code style and potential issues. ```bash make lint ``` -------------------------------- ### Switch to an Assumed Role Source: https://github.com/sanderknape/assume/blob/master/README.md Switch the active AWS credentials to the specified role. This command modifies the `~/.aws/credentials` file. ```bash assume switch myrole ``` -------------------------------- ### Clear Assumed Role and Revert Source: https://github.com/sanderknape/assume/blob/master/README.md Revert to the original default AWS role. This command restores the credentials that were temporarily stored when 'assume switch' was last run. ```bash assume clear ``` -------------------------------- ### Add a New AWS Role to Assume Source: https://github.com/sanderknape/assume/blob/master/README.md Add a new IAM role to the 'assume' configuration. You must provide a role name and the ARN of the role to assume. The AWS profile can be optionally specified. ```bash assume add [rolename] --role-arn [arn] --profile [profile] ``` -------------------------------- ### Remove a Role from Configuration Source: https://github.com/sanderknape/assume/blob/master/README.md Remove a previously added role from the 'assume' configuration. This command permanently deletes the role entry from `~/.assume/config.yaml`. ```bash assume remove myrole ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.