`WP_CLI::$root->get_subcommands();` was similar to what I wanted to use, but it was fataling because it was trying to re-register all of the commands.