add resource subcommand