Publish from command line

Is it possible to pushlish a NuGet Package from the command line?

I know about the msbuild parameters, but I don’t want to publish every build

Hi Jaimen,

Thanks for getting in touch! Could you please explain a little more about what you are trying to accomplish, and which tools you are using.
We are unsure where to help you, and understanding your specific scenario and problem could help.

Thanks!
Vanessa

We’re trying to test a windows service. We’d like to be able to deploy the service programmatically before an automated acceptance test.

Normally we are deploying builds from a NuGet stream of our releases provided by Team City. But these acceptance test would be used for code which is under development, and not necessarily checked into version control.

We think we have an alternative solution, but it would be interesting to hear your thoughts on this.

Thanks
Jaimen

Hi Jaimen,

You can absolutely do this. You can publish to a NuGet feed using OctoPack or you can use Nuget push to well push a NuGet Package into our in-built repository.
And you can create, and deploy a release using octo.exe.

Here is some of the documentation to match. See right down the bottom for OctoPack publish commands:


And more about Octo.exe and its release and deploy options:

Let me know if there is anything I can explain further.
Vanessa

Is the publish only possible from msbuild? or can it be done independently?

Hi Jaimen,

Do you have the NuGet package already created?
You can both pack and push from NuGet.exe.
Octo.exe will also pack and create a NuGet package.
Both of these are independent of MSBuild.

Vanessa

Ok, that sounds like to would work, thanks for the quick response

Jaimen