Add BaseCommand for config and output handling.