move publish and resolve under the 'name' subcommand