Add apply subcommand.