**To list account aliases**
The following ``list-account-aliases`` command lists the aliases for the current account::
aws iam list-account-aliases
Output::
"AccountAliases": [
"mycompany"
]
For more information, see `Using an Alias for Your AWS Account ID`_ in the *Using IAM* guide.
.. _`Using an Alias for Your AWS Account ID`: http://docs.aws.amazon.com/IAM/latest/UserGuide/AccountAlias.html