Autodetect CLI command