CmdID / aws / aws organizations
aws organizations list-accounts
Lists all the accounts in the organization. AWS CLI reference
2 options Its page in the AWS CLI reference
Options
--max-resultsThe maximum number of items to return in the response.--next-tokenThe parameter for receiving additional results if you receive a NextToken response in a previous request.