Bugfix.
Added before-cli and after-cli hooks.