Skip to content

runbooks inventory list-org-accountsΒΆ

Auto-generated from runbooks inventory list-org-accounts --help on 2026-05-21. Source of truth: runbooks PyPI package v1.3.22

Usage: runbooks inventory list-org-accounts [OPTIONS]

  List all accounts in AWS Organizations.

  Supports multi-account discovery via --all-profiles flag at group level:
  runbooks inventory --all-profiles mgmt list-org-accounts

  Single account mode:     runbooks inventory --profile mgmt list-org-accounts

  Examples:     # Multi-account Organizations discovery     runbooks inventory
  --all-profiles $MANAGEMENT_PROFILE list-org-accounts

      # Brief listing with timing     runbooks inventory --profile mgmt list-
      org-accounts --short --timing

      # Find specific accounts across organizations     runbooks inventory
      --all-profiles mgmt list-org-accounts --acct 123456789012 987654321098

      # Export to CSV     runbooks inventory --profile mgmt list-org-accounts
      --export-format csv --output orgs

Options:
  -p, --profile TEXT              AWS profile name (default: from AWS_PROFILE
                                  env var)
  -s, -q, --short                 Brief listing without child accounts
  -A, --acct TEXT                 Find which org these accounts belong to
  --root-only                     Show only management accounts
  -f, --format, --export-format [json|csv|markdown|table]
                                  Export format (-f/--format preferred,
                                  --export-format legacy)
  -o, --output TEXT               Output filename (for export formats)
  --timing                        Show performance metrics
  -v, --verbose                   Increase verbosity
  --skip-profiles TEXT            Profiles to exclude from discovery
  --help                          Show this message and exit.

ExamplesΒΆ