Allow using custom actions from CLI

Currently custom actions are only available with the interactive mode, they should be available also via cli by the -a option followed by the action name.