{"id":458,"date":"2015-11-21T11:41:01","date_gmt":"2015-11-21T11:41:01","guid":{"rendered":"http:\/\/www.scmgalaxy.com\/tutorials\/2015\/11\/21\/how-to-publish-a-nuget-package-in-nuget-gallery\/"},"modified":"2021-02-27T09:50:22","modified_gmt":"2021-02-27T09:50:22","slug":"how-to-publish-a-nuget-package-in-nuget-gallery","status":"publish","type":"post","link":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/","title":{"rendered":"How to Publish a Nuget package in NuGet Gallery?"},"content":{"rendered":"<p><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-3150 size-full\" src=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/11\/how-to-publish-a-nuget-pack.png\" alt=\"publish-a-nuget-package-in-nuget-gallery\" width=\"600\" height=\"400\" srcset=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/11\/how-to-publish-a-nuget-pack.png 600w, https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/11\/how-to-publish-a-nuget-pack-300x200.png 300w\" sizes=\"auto, (max-width: 600px) 100vw, 600px\" \/><\/p>\n<p>How to Publish a Nuget package in NuGet Gallery?<\/p>\n<p><strong>Step 1 &#8211; Create an account at NuGet.org<\/strong><\/p>\n<p>Head over to http:\/\/nuget.org\/ and register for an account. Once you do that, click on &#8220;My Account&#8221; to see an API Key that was generated for you.<\/p>\n<p><strong>Step 2 &#8211; In a command console, run the command:<\/strong><\/p>\n<pre><code>$ nuget setApiKey Your-API-Key<\/code><\/pre>\n<p>This will store your API key so that you never need to do this step again on this machine.<\/p>\n<p>Push your package to NuGet Gallery using the command:<\/p>\n<pre><code>$ nuget push YourPackage.nupkg<\/code><\/pre>\n<p><strong> Reference<\/strong><br \/>\n<a href=\"https:\/\/docs.nuget.org\/consume\/command-line-reference\" target=\"_blank\" rel=\"noopener\">https:\/\/docs.nuget.org\/consume\/command-line-reference<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>How to Publish a Nuget package in NuGet Gallery? Step 1 &#8211; Create an account at NuGet.org Head over to [&hellip;]<\/p>\n","protected":false},"author":4,"featured_media":3150,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_joinchat":[],"footnotes":""},"categories":[86],"tags":[1332,1122,545,1335,933,1334,1333,247,1337,593,1331,1338,1336,732,213],"class_list":["post-458","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-package-management","tag-gallery","tag-guide","tag-how","tag-how-to-publish-nuget-package","tag-nuget","tag-nuget-gallery","tag-nuget-package","tag-package","tag-package-to-nuget-gallery","tag-process","tag-publish","tag-publish-command","tag-publish-the-package-on-the-nuget-gallery","tag-steps","tag-tutorial"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.4 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>How to Publish a Nuget package in NuGet Gallery? - scmGalaxy<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"How to Publish a Nuget package in NuGet Gallery? - scmGalaxy\" \/>\n<meta property=\"og:description\" content=\"How to Publish a Nuget package in NuGet Gallery? Step 1 &#8211; Create an account at NuGet.org Head over to [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/\" \/>\n<meta property=\"og:site_name\" content=\"scmGalaxy\" \/>\n<meta property=\"article:published_time\" content=\"2015-11-21T11:41:01+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-02-27T09:50:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/11\/how-to-publish-a-nuget-pack.png\" \/>\n\t<meta property=\"og:image:width\" content=\"600\" \/>\n\t<meta property=\"og:image:height\" content=\"400\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"scmgalaxy K\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"scmgalaxy K\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-publish-a-nuget-package-in-nuget-gallery\\\/#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-publish-a-nuget-package-in-nuget-gallery\\\/\"},\"author\":{\"name\":\"scmgalaxy K\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"headline\":\"How to Publish a Nuget package in NuGet Gallery?\",\"datePublished\":\"2015-11-21T11:41:01+00:00\",\"dateModified\":\"2021-02-27T09:50:22+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-publish-a-nuget-package-in-nuget-gallery\\\/\"},\"wordCount\":99,\"commentCount\":1,\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-publish-a-nuget-package-in-nuget-gallery\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2015\\\/11\\\/how-to-publish-a-nuget-pack.png\",\"keywords\":[\"Gallery\",\"Guide\",\"How\",\"How to Publish Nuget package\",\"Nuget\",\"NuGet Gallery\",\"Nuget package\",\"Package\",\"package to NuGet Gallery\",\"Process\",\"Publish\",\"Publish command\",\"publish the package on the NuGet Gallery\",\"Steps\",\"Tutorial\"],\"articleSection\":[\"Package Management\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-publish-a-nuget-package-in-nuget-gallery\\\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-publish-a-nuget-package-in-nuget-gallery\\\/\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-publish-a-nuget-package-in-nuget-gallery\\\/\",\"name\":\"How to Publish a Nuget package in NuGet Gallery? - scmGalaxy\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-publish-a-nuget-package-in-nuget-gallery\\\/#primaryimage\"},\"image\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-publish-a-nuget-package-in-nuget-gallery\\\/#primaryimage\"},\"thumbnailUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2015\\\/11\\\/how-to-publish-a-nuget-pack.png\",\"datePublished\":\"2015-11-21T11:41:01+00:00\",\"dateModified\":\"2021-02-27T09:50:22+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-publish-a-nuget-package-in-nuget-gallery\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-publish-a-nuget-package-in-nuget-gallery\\\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-publish-a-nuget-package-in-nuget-gallery\\\/#primaryimage\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2015\\\/11\\\/how-to-publish-a-nuget-pack.png\",\"contentUrl\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/wp-content\\\/uploads\\\/2015\\\/11\\\/how-to-publish-a-nuget-pack.png\",\"width\":600,\"height\":400,\"caption\":\"publish-a-nuget-package-in-nuget-gallery\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/how-to-publish-a-nuget-package-in-nuget-gallery\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"How to Publish a Nuget package in NuGet Gallery?\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#website\",\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/\",\"name\":\"scmGalaxy\",\"description\":\"A Platform for Software Engineers\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/#\\\/schema\\\/person\\\/fc12ad190f540e79460243c81148d102\",\"name\":\"scmgalaxy K\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g\",\"caption\":\"scmgalaxy K\"},\"sameAs\":[\"http:\\\/\\\/www.DevOpsSchool.com\"],\"url\":\"https:\\\/\\\/www.scmgalaxy.com\\\/tutorials\\\/author\\\/scmgalaxy\\\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"How to Publish a Nuget package in NuGet Gallery? - scmGalaxy","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/","og_locale":"en_US","og_type":"article","og_title":"How to Publish a Nuget package in NuGet Gallery? - scmGalaxy","og_description":"How to Publish a Nuget package in NuGet Gallery? Step 1 &#8211; Create an account at NuGet.org Head over to [&hellip;]","og_url":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/","og_site_name":"scmGalaxy","article_published_time":"2015-11-21T11:41:01+00:00","article_modified_time":"2021-02-27T09:50:22+00:00","og_image":[{"width":600,"height":400,"url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/11\/how-to-publish-a-nuget-pack.png","type":"image\/png"}],"author":"scmgalaxy K","twitter_card":"summary_large_image","twitter_misc":{"Written by":"scmgalaxy K"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/#article","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/"},"author":{"name":"scmgalaxy K","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"headline":"How to Publish a Nuget package in NuGet Gallery?","datePublished":"2015-11-21T11:41:01+00:00","dateModified":"2021-02-27T09:50:22+00:00","mainEntityOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/"},"wordCount":99,"commentCount":1,"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/11\/how-to-publish-a-nuget-pack.png","keywords":["Gallery","Guide","How","How to Publish Nuget package","Nuget","NuGet Gallery","Nuget package","Package","package to NuGet Gallery","Process","Publish","Publish command","publish the package on the NuGet Gallery","Steps","Tutorial"],"articleSection":["Package Management"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/","url":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/","name":"How to Publish a Nuget package in NuGet Gallery? - scmGalaxy","isPartOf":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website"},"primaryImageOfPage":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/#primaryimage"},"image":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/#primaryimage"},"thumbnailUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/11\/how-to-publish-a-nuget-pack.png","datePublished":"2015-11-21T11:41:01+00:00","dateModified":"2021-02-27T09:50:22+00:00","author":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102"},"breadcrumb":{"@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/#primaryimage","url":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/11\/how-to-publish-a-nuget-pack.png","contentUrl":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-content\/uploads\/2015\/11\/how-to-publish-a-nuget-pack.png","width":600,"height":400,"caption":"publish-a-nuget-package-in-nuget-gallery"},{"@type":"BreadcrumbList","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/how-to-publish-a-nuget-package-in-nuget-gallery\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.scmgalaxy.com\/tutorials\/"},{"@type":"ListItem","position":2,"name":"How to Publish a Nuget package in NuGet Gallery?"}]},{"@type":"WebSite","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#website","url":"https:\/\/www.scmgalaxy.com\/tutorials\/","name":"scmGalaxy","description":"A Platform for Software Engineers","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.scmgalaxy.com\/tutorials\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/www.scmgalaxy.com\/tutorials\/#\/schema\/person\/fc12ad190f540e79460243c81148d102","name":"scmgalaxy K","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/4b902ea8c77ee0a326c112f29d0edf51b7c3e1cd05c4fb92a810177e9c3f12a9?s=96&d=mm&r=g","caption":"scmgalaxy K"},"sameAs":["http:\/\/www.DevOpsSchool.com"],"url":"https:\/\/www.scmgalaxy.com\/tutorials\/author\/scmgalaxy\/"}]}},"_links":{"self":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/458","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/users\/4"}],"replies":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/comments?post=458"}],"version-history":[{"count":3,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/458\/revisions"}],"predecessor-version":[{"id":3301,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/posts\/458\/revisions\/3301"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media\/3150"}],"wp:attachment":[{"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/media?parent=458"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/categories?post=458"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.scmgalaxy.com\/tutorials\/wp-json\/wp\/v2\/tags?post=458"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}