1dotnet nuget push command(1) .NET Core dotnet nuget push command(1)
2
3
4
7 dotnet nuget push - Pushes a package to the server and publishes it.
8
10 .NET Core 2.x
11 dotnet nuget push [<ROOT>] [-d|--disable-buffering] [--force-english-output] [--interactive] [-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 1.x
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 * * * * *
21
23 The dotnet nuget push command pushes a package to the server and pub‐
24 lishes it. The push command uses server and credential details found
25 in the system’s NuGet config file or chain of config files. For more
26 information on config files, see Configuring NuGet Behavior. NuGet’s
27 default configuration is obtained by loading %AppData%.config (Windows)
28 or $HOME/.local/share (Linux/macOS), then loading any nuget.config or
29 .nuget.config starting from the root of drive and ending in the current
30 directory.
31
32 Arguments
33 · ROOT
34
35 Specifies the file path to the package to be pushed.
36
38 .NET Core 2.x
39 · -d|--disable-buffering
40
41 Disables buffering when pushing to an HTTP(S) server to reduce memory
42 usage.
43
44 · --force-english-output
45
46 Forces the application to run using an invariant, English-based cul‐
47 ture.
48
49 · -h|--help
50
51 Prints out a short help for the command.
52
53 · --interactive
54
55 Allows the command to block and requires manual action for operations
56 like authentication. Option available since .NET Core 2.2 SDK.
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/package” to the source URL. Option available
69 since .NET Core 2.1 SDK.
70
71 · -s|--source <SOURCE>
72
73 Specifies the server URL. This option is required unless Default‐
74 PushSource config value is set in the NuGet config file.
75
76 · -sk|--symbol-api-key <API_KEY>
77
78 The API key for the symbol server.
79
80 · -ss|--symbol-source <SOURCE>
81
82 Specifies the symbol server URL.
83
84 · -t|--timeout <TIMEOUT>
85
86 Specifies the timeout for pushing to a server in seconds. Defaults
87 to 300 seconds (5 minutes). Specifying 0 (zero seconds) applies the
88 default value.
89
90 .NET Core 1.x
91 · -d|--disable-buffering
92
93 Disables buffering when pushing to an HTTP(S) server to reduce memory
94 usage.
95
96 · --force-english-output
97
98 Forces the application to run using an invariant, English-based cul‐
99 ture.
100
101 · -h|--help
102
103 Prints out a short help for the command.
104
105 · -k|--api-key <API_KEY>
106
107 The API key for the server.
108
109 · -n|--no-symbols
110
111 Doesn’t push symbols (even if present).
112
113 · -s|--source <SOURCE>
114
115 Specifies the server URL. This option is required unless Default‐
116 PushSource config value is set in the NuGet config file.
117
118 · -sk|--symbol-api-key <API_KEY>
119
120 The API key for the symbol server.
121
122 · -ss|--symbol-source <SOURCE>
123
124 Specifies the symbol server URL.
125
126 · -t|--timeout <TIMEOUT>
127
128 Specifies the timeout for pushing to a server in seconds. Defaults
129 to 300 seconds (5 minutes). Specifying 0 (zero seconds) applies the
130 default value.
131
132 * * * * *
133
135 · Pushes foo.nupkg to the default push source, specifying an API key:
136
137 dotnet nuget push foo.nupkg -k 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a
138
139 · Push foo.nupkg to the custom push source https://customsource, speci‐
140 fying an API key:
141
142 dotnet nuget push foo.nupkg -k 4003d786-cc37-4004-bfdf-c4f3e8ef9b3a -s https://customsource/
143
144 · Pushes foo.nupkg to the default push source:
145
146 dotnet nuget push foo.nupkg
147
148 · Pushes foo.symbols.nupkg to the default symbols source:
149
150 dotnet nuget push foo.symbols.nupkg
151
152 · Pushes foo.nupkg to the default push source, specifying a 360-second
153 timeout:
154
155 dotnet nuget push foo.nupkg --timeout 360
156
157 · Pushes all .nupkg files in the current directory to the default push
158 source:
159
160 dotnet nuget push *.nupkg
161
163 karann-msft.
164
165
166
167 dotnet nuget push command(1)