Skip to main content
Warning: You are using the test version of PyPI. This is a pre-production deployment of Warehouse. Changes made here affect the production instance of TestPyPI (
Help us improve Python packaging - Donate today!

Command line client for aws federation proxy api

Project Description


The AFP CLI is the command line interface to access the AWS Federation Proxy.

Its main use case is starting a new shell where your temporary AWS credentials have been exported into the environment.


The afp-cli command can be globally configured with a yaml file:
api_url: <api-url>
Each user’s home directory can override this setting in the same way, using

CLI Tool

Get help text

aws-cli [-h | --help]

List available account names and roles

For the currently logged-in user:
The same for another user:
aws-cli --user=username
Output format:
<accountname>    <role1>,<role2>,...,<roleN>

Example output:

abc_account     some_role_in_abc_account
xyz_account     some_role_in_yxz_account,another_role_in_xyz

Export credentials

This starts a subshell in which the credentials have been exported into the environment. Use the “exit” command or press CTRL+D to terminate the subshell.

Export credentials for currently logged in user and specified account and role
afp-cli --account=accountname --role=rolename
As above, but specifying a different user:
afp-cli --user=username --account=accountname --role=rolename
Specify the URL of the AFP server, overriding any config file
afp-cli --api-url=https://yourhost/some/path .....

Release History

This version
History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


History Node


Download Files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

File Name & Hash SHA256 Hash Help Version File Type Upload Date
(4.0 kB) Copy SHA256 Hash SHA256
Source Aug 27, 2015

Supported By

WebFaction WebFaction Technical Writing Elastic Elastic Search Pingdom Pingdom Monitoring Dyn Dyn DNS Sentry Sentry Error Logging CloudAMQP CloudAMQP RabbitMQ Heroku Heroku PaaS Kabu Creative Kabu Creative UX & Design Fastly Fastly CDN DigiCert DigiCert EV Certificate Rackspace Rackspace Cloud Servers DreamHost DreamHost Log Hosting