adding cli support