1dotnet nuget push command - .NET Codr.oeNtEnCTeLtIC(on1ru)eget push command - .NET Core CLI(1)
2
3
4

dotnet nuget push

NAME

7       dotnet nuget push - Pushes a package to the server and publishes it.
8

SYNOPSIS

10   .NET Core 2.1
11              dotnet nuget push [<ROOT>] [-d|--disable-buffering] [--force-english-output] [-k|--api-key] [-n|--no-symbols]
12                  [--no-service-endpoint] [-s|--source] [-sk|--symbol-api-key] [-ss|--symbol-source] [-t|--timeout]
13              dotnet nuget push [-h|--help]
14
15   .NET Core 2.0
16              dotnet nuget push [<ROOT>] [-d|--disable-buffering] [--force-english-output] [-k|--api-key] [-n|--no-symbols]
17                  [-s|--source] [-sk|--symbol-api-key] [-ss|--symbol-source] [-t|--timeout]
18              dotnet nuget push [-h|--help]
19
20   .NET Core 1.x
21              dotnet nuget push [<ROOT>] [-d|--disable-buffering] [--force-english-output] [-k|--api-key] [-n|--no-symbols]
22                  [-s|--source] [-sk|--symbol-api-key] [-ss|--symbol-source] [-t|--timeout]
23              dotnet nuget push [-h|--help]
24
25          *   *   *   *   *
26

DESCRIPTION

28       The  dotnet nuget push  command pushes a package to the server and pub‐
29       lishes it.  The push command uses server and credential  details  found
30       in  the  system's NuGet config file or chain of config files.  For more
31       information on config files, see Configuring NuGet  Behavior.   NuGet's
32       default configuration is obtained by loading %AppData%.config (Windows)
33       or $HOME/.local/share (Linux/macOS), then loading any  nuget.config  or
34       .nuget.config starting from the root of drive and ending in the current
35       directory.
36
37   Arguments
38       ROOT
39
40       Specifies the file path to the package to be pushed.
41

OPTIONS

43   .NET Core 2.1
44       -d|--disable-buffering
45
46       Disables buffering when pushing to an HTTP(S) server to  reduce  memory
47       usage.
48
49       --force-english-output
50
51       Forces  the  application  to run using an invariant, English-based cul‐
52       ture.
53
54       -h|--help
55
56       Prints out a short help for the command.
57
58       -k|--api-key <API_KEY>
59
60       The API key for the server.
61
62       -n|--no-symbols
63
64       Doesn't push symbols (even if present).
65
66       --no-service-endpoint
67
68       Doesn't append “api/v2/packages” to the source URL.
69
70       -s|--source <SOURCE>
71
72       Specifies the server URL.  This option is required unless  DefaultPush‐
73       Source config value is set in the NuGet config file.
74
75       -sk|--symbol-api-key <API_KEY>
76
77       The API key for the symbol server.
78
79       -ss|--symbol-source <SOURCE>
80
81       Specifies the symbol server URL.
82
83       -t|--timeout <TIMEOUT>
84
85       Specifies  the timeout for pushing to a server in seconds.  Defaults to
86       300 seconds (5 minutes).  Specifying 0 (zero seconds) applies  the  de‐
87       fault value.
88
89   .NET Core 2.0
90       -d|--disable-buffering
91
92       Disables  buffering  when pushing to an HTTP(S) server to reduce memory
93       usage.
94
95       --force-english-output
96
97       Forces the application to run using an  invariant,  English-based  cul‐
98       ture.
99
100       -h|--help
101
102       Prints out a short help for the command.
103
104       -k|--api-key <API_KEY>
105
106       The API key for the server.
107
108       -n|--no-symbols
109
110       Doesn't push symbols (even if present).
111
112       -s|--source <SOURCE>
113
114       Specifies  the server URL.  This option is required unless DefaultPush‐
115       Source config value is set in the NuGet config file.
116
117       -sk|--symbol-api-key <API_KEY>
118
119       The API key for the symbol server.
120
121       -ss|--symbol-source <SOURCE>
122
123       Specifies the symbol server URL.
124
125       -t|--timeout <TIMEOUT>
126
127       Specifies the timeout for pushing to a server in seconds.  Defaults  to
128       300  seconds  (5 minutes).  Specifying 0 (zero seconds) applies the de‐
129       fault value.
130
131   .NET Core 1.x
132       -d|--disable-buffering
133
134       Disables buffering when pushing to an HTTP(S) server to  reduce  memory
135       usage.
136
137       --force-english-output
138
139       Forces  the  application  to run using an invariant, English-based cul‐
140       ture.
141
142       -h|--help
143
144       Prints out a short help for the command.
145
146       -k|--api-key <API_KEY>
147
148       The API key for the server.
149
150       -n|--no-symbols
151
152       Doesn't push symbols (even if present).
153
154       -s|--source <SOURCE>
155
156       Specifies the server URL.  This option is required unless  DefaultPush‐
157       Source config value is set in the NuGet config file.
158
159       -sk|--symbol-api-key <API_KEY>
160
161       The API key for the symbol server.
162
163       -ss|--symbol-source <SOURCE>
164
165       Specifies the symbol server URL.
166
167       -t|--timeout <TIMEOUT>
168
169       Specifies  the timeout for pushing to a server in seconds.  Defaults to
170       300 seconds (5 minutes).  Specifying 0 (zero seconds) applies  the  de‐
171       fault value.
172
173          *   *   *   *   *
174

EXAMPLES

176       Pushes foo.nupkg to the default push source, specifying an API key:
177
178       dotnet nuget push foo.nupkg -k 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a
179
180       Push  foo.nupkg to the custom push source http://customsource, specify‐
181       ing an API key:
182
183       dotnet nuget push foo.nup‐
184       kg -k 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a -s http://customsource/
185
186       Pushes foo.nupkg to the default push source:
187
188       dotnet nuget push foo.nupkg
189
190       Pushes foo.symbols.nupkg to the default symbols source:
191
192       dotnet nuget push foo.symbols.nupkg
193
194       Pushes  foo.nupkg  to  the default push source, specifying a 360-second
195       timeout:
196
197       dotnet nuget push foo.nupkg --timeout 360
198
199       Pushes all .nupkg files in the current directory to  the  default  push
200       source:
201
202       dotnet nuget push *.nupkg
203
204       Pushes  all  .nupkg  files in the current directory to the default push
205       source, specifying a custom config file ./config/My.Config:
206
207       dotnet nuget push *.nupkg --config-file ./config/My.Config
208

AUTHORS

210       karann-msft.
211
212
213
214                                  dotnet nuget push command - .NET Core CLI(1)
Impressum