Split build command into build and build_only

This makes it easier to embed as submodule

Also removes outdated `upload` command