You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For details about the latest release, see the [release notes](release-notes-sqlpackage.md). To download additional languages, see the [Available Languages](#available-languages) section.
25
+
For details about the latest release, see the [release notes](release-notes-sqlpackage.md).
31
26
32
27
> [!NOTE]
33
28
> SqlPackage version numbering has been adjusted to better reflect the DacFx build number it is associated with. Previously, SqlPackage had a distinct version number (19) and build number (160.x). Beginning with version 161, the version number of SqlPackage will match the DacFx version number it is associated with (eg 161.6370.0).
34
29
35
-
## DacFx
30
+
## Installation, cross-platform
36
31
37
-
SqlPackage is a command-line interface for the DacFx framework, exposing some of the public DacFx APIs. DacServices ([Microsoft.SqlServer.Dac](/dotnet/api/microsoft.sqlserver.dac.dacservices)) is a related mechanism for integrating database deployment into your application pipeline. The DacServices API is available in a package through NuGet, [Microsoft.SqlServer.DacFx](https://www.NuGet.org/packages/Microsoft.SqlServer.DacFx). The current DacFx version is 161.6370.0.
32
+
Installing SqlPackage as a [dotnet tool](/dotnet/core/tools/global-tools) requires the [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet/6.0) v6.0 or later to be installed on your machine. Installing SqlPackage as a global tool will make it available on your path as `SqlPackage` and is the recommended way to install SqlPackage for Windows, macOS, and Linux.
38
33
39
-
Installing the NuGet package via the .NET CLI is accomplished with this command:
34
+
To install SqlPackage as a global .NET tool, run the following command:
40
35
41
-
```cmd
42
-
dotnet add package Microsoft.SqlServer.DacFx
36
+
```bash
37
+
dotnet tool install -g Microsoft.SqlPackage
43
38
```
44
39
45
-
> [!NOTE]
46
-
> Additional NuGet packages were published under the DacFx name, "Microsoft.SqlServer.DacFx.x64" and "Microsoft.SqlServer.DacFx.x86". Support for both platforms is covered under the "Microsoft.SqlServer.DacFx" package. New references should be made to this package, not the x64 or x86 variants.
40
+
To update SqlPackage to the latest version, run the following command:
47
41
48
-
## Automated environments
42
+
```bash
43
+
dotnet tool update -g Microsoft.SqlPackage
44
+
```
49
45
50
-
Evergreen links are available for downloading the latest Sqlpackage versions:
51
-
- Linux ([https://aka.ms/sqlpackage-linux](https://aka.ms/sqlpackage-linux))
SqlPackage is a command-line interface for the DacFx framework, exposing some of the public DacFx APIs. DacServices ([Microsoft.SqlServer.Dac](/dotnet/api/microsoft.sqlserver.dac.dacservices)) is a related mechanism for integrating database deployment into your application pipeline. The DacServices API is available in a package through NuGet, [Microsoft.SqlServer.DacFx](https://www.NuGet.org/packages/Microsoft.SqlServer.DacFx). The current DacFx version is 161.6370.0.
167
+
168
+
Adding the NuGet package to a .NET project is accomplished via the .NET CLI with this command:
169
+
170
+
```cmd
171
+
dotnet add package Microsoft.SqlServer.DacFx
172
+
```
173
+
174
+
> [!NOTE]
175
+
> Additional NuGet packages were published under the DacFx name, "Microsoft.SqlServer.DacFx.x64" and "Microsoft.SqlServer.DacFx.x86". Support for both platforms is covered under the "Microsoft.SqlServer.DacFx" package. New references should be made to this package, not the x64 or x86 variants.
176
+
177
+
150
178
## Supported Operating Systems
151
179
152
180
SqlPackage runs on Windows, macOS, and Linux and is built using .NET 6. The [.NET 6 OS requirements](https://github.com/dotnet/core/blob/main/release-notes/6.0/supported-os.md) are minimum requirements for SqlPackage, which has additional requirements due to its dependencies.
0 commit comments