CmdID / aws / aws account
aws account get-account-information
Retrieves information about the specified account including its account name, account ID, account creation date and time, and account state. AWS CLI reference
1 option Its page in the AWS CLI reference
Options
--account-idSpecifies the 12 digit account ID number of the Amazon Web Services account that you want to access or modify with this operation.