It looks like we need to register commands with many names.
This would be a good api:
requireCommand(name: string[], file: string): void;