Unfortunately there is no script that extract a list of CLI commands.
AFAIR there is a feature request to inherit from a 'base' profile which may solve your problem
Reply to this message by going to Community
Start a new discussion in Beginner's Corner at Community