Not sure where to report issues with the documentation, but on this page it says to register an extension command with the get_commands method. But it appears this method is still called get_command. Although…it might not be a bad idea to rename it to get_commands.
Good spot. You can submit a PR at Sign in to GitHub · GitHub if you like