**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 `Your AWS account ID and its alias <https://docs.aws.amazon.com/IAM/latest/UserGuide/console_account-alias.html>`__ in the *AWS IAM User Guide*.