I’m looking for a way to programmatically get all commands registered by a package. Neither the CommandRegistry API nor the PackageManager API expose any documented methods for this. While
atom.commands.registeredCommands list all registered commands, that’s not a reliable way to associate a command to a package since the command prefix should, but doesn’t have to match the package name. Using
atom.packages.getLoadedPackage(packageName) lists all activation commands of a package (which could also be retrieved from the package manifest), but that doesn’t include commands that are not bound to the activation event.