factor install command in subcommand