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
title: Command line interface in Azure Data Studio
3
+
description: Learn more about the command line interface within Azure Data Studio and how to use it.
4
+
author: erinstellato-ms
5
+
ms.author: erinstellato
6
+
ms.reviewer: maghan, randolphwest
7
+
ms.date: 08/21/2023
8
+
ms.service: azure-data-studio
9
+
ms.topic: conceptual
10
+
---
11
+
# The Azure Data Studio command line interface
12
+
13
+
Azure Data Studio includes a built-in command line interface that lets you control how you launch the application. You can open files, install extensions, change the display language, and output diagnostics through command line options (switches).
14
+
15
+
:::image type="content" source="media/command-line/cli-introduction.png" alt-text="Screenshot of command line output for Azure Data Studio.":::
16
+
17
+
For examples of how to run command line tools inside Azure Data Studio, see [Integrated terminal](integrated-terminal.md).
18
+
19
+
## Command line help
20
+
21
+
To view an overview of the Azure Data Studio command line interface, open a terminal within Azure Data Studio (**View > Terminal**) or a command prompt and type `azuredatastudio --help`. The output contains the version, usage example, and list of command line options, as shown in the truncated example:
22
+
23
+
```bash
24
+
C:\>azuredatastudio --help
25
+
Azure Data Studio 1.45.1
26
+
27
+
Usage: azuredatastudio.exe [options][paths...]
28
+
29
+
To read output from another program, append '-' (e.g. 'echo Hello World | azuredatastudio.exe -')
30
+
31
+
Options
32
+
33
+
<vscode options>
34
+
35
+
-h --help Print usage.
36
+
--aad Use Azure Active Directory authentication, this option is
37
+
deprecated - use 'authenticationType' instead.
38
+
-A --applicationName Supports providing applicationName
39
+
that will be used for connection profile app name.
40
+
-T --authenticationType Provide authentication mode to be
41
+
used. Accepted values: AzureMFA, SqlLogin, Integrated, etc.
42
+
-c --command <command-name> Name of command to run, accepted
43
+
values: connect, openConnectionDialog
44
+
-Z --connectionProperties Supports providing advanced connection properties that
45
+
providers support. Value must be a json object containing
46
+
key-value pairs in format: '{"key1":"value1"}'
47
+
-D --database <database> Name of database
48
+
-E --integrated Use Integrated authentication,
49
+
this option is deprecated - use 'authenticationType' instead.
50
+
-P --provider Connection provider to use, e.g. MSSQL, PGSQL, etc.
51
+
-S --server <server> Name of target server or host name.
52
+
--showDashboard Whether or not to show dashboard on connection, false by default.
53
+
-U --user <user-name> User name/email address
54
+
```
55
+
56
+
## Launch from the command line
57
+
58
+
You can launch Azure Data Studio from the command line to quickly open a file, folder, or project. Typically, you open Azure Data Studio within the context of a folder. From an open terminal or command prompt, navigate to your project folder and type `azuredatastudio`.
59
+
60
+
If you have the Azure Data Studio Insiders build installed and want to open it from a command line, use `azuredatastudio-insiders`.
61
+
62
+
## Launch with Query Editor
63
+
64
+
Sometimes you may want to open a script in the Query Editor when opening Azure Data Studio. You can launch Azure Data Studio with an existing script by providing the path of the file:
65
+
66
+
```bash
67
+
azuredatastudio .\samplescript.sql
68
+
```
69
+
70
+
## Launch using URI
71
+
72
+
You can launch Azure Data Studio from browser using URL format to quickly establish connection on launch, or open a connection dialog, optionally opening a script in the Query Editor. The supported format for launching with URI is:
The following commands are supported when launching Azure Data Studio from a command line:
81
+
82
+
-`connect`: Connects to the target server using the provided options
83
+
-`openConnectionDialog`: Opens the connection dialog using the provided options
84
+
85
+
### Supported options
86
+
87
+
The following options can be provided in the URL:
88
+
89
+
-`provider`: Connection provider to use, for example, MSSQL, PGSQL, and so on.
90
+
-`server`: Name of target server or host name
91
+
-`database`: Name of database
92
+
-`user`: Name of user
93
+
-`authenticationType`: Authentication mode to be used, accepted values: `AzureMFA`, `SqlLogin`, `Integrated`, and so on.
94
+
-`applicationName`: Provide an application name that is used in the connection profile
95
+
-`connectionProperties`: Advanced connection properties that a provider supports. Value must be a json object containing key-value pairs in format: `{"key1":"value1"}`.
Copy file name to clipboardExpand all lines: docs/azure-data-studio/preview-features.md
+34-40Lines changed: 34 additions & 40 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,13 +3,11 @@ title: Preview features in Azure Data Studio
3
3
description: Learn more about Azure Data Studio preview features and how to enable and use them.
4
4
author: erinstellato-ms
5
5
ms.author: erinstellato
6
-
ms.reviewer: maghan
7
-
ms.date: 10/14/2020
6
+
ms.reviewer: maghan, randolphwest
7
+
ms.date: 08/21/2023
8
8
ms.service: azure-data-studio
9
9
ms.topic: conceptual
10
-
ms.custom: updatefrequency5
11
10
---
12
-
13
11
# Preview features in Azure Data Studio
14
12
15
13
In Azure Data Studio, new features and improvements are often first released as preview features before they're made generally available (GA). The amount of time a feature remains in preview can vary based on user feedback, quality checks, and long-term road maps. By enabling preview features, you get full access to Azure Data Studio features and the chance to provide early feedback.
@@ -18,59 +16,55 @@ In Azure Data Studio, new features and improvements are often first released as
18
16
19
17
### On first launch
20
18
21
-
If you're a new user, you can opt into preview features when you launch Azure Data Studio for the first time. On startup, a toast notification will appear in the bottom-right corner of the screen that gives you the option to enable or disable preview features. Select **Yes (recommended)** to enable preview features.
19
+
If you're a new user, you can opt into preview features when you launch Azure Data Studio for the first time. On startup, a toast notification appears in the bottom-right corner of the screen that gives you the option to enable or disable preview features. Select **Yes (recommended)** to enable preview features.
22
20
23
-

21
+
:::image type="content" source="media/getting-started/preview-toast-notification.png" alt-text="Screenshot of preview toast notification on first launch.":::
24
22
25
23
### In Settings
26
24
27
-
You can enable or disable preview features anytime in your Settings.
25
+
You can enable or disable preview features at any time in Settings.
28
26
29
-
1. Select the **Gear** icon in the bottom-left corner and then select **Settings** from the context menu. The Settings tab will open.
27
+
1. Select the **Gear** icon in the bottom-left corner and then select **Settings** from the context menu.
30
28
31
-

29
+
:::image type="content" source="media/settings/open-settings-menu.png" alt-text="Screenshot of gear icon to access Settings in ADS.":::
32
30
33
-
2. Type "enable preview features" in the search bar.
31
+
1. Once the Settings tab is open, type "enable preview features" in the search bar.
34
32
35
-
3. To enable preview features, check the checkbox for **Enable unreleased preview features** under **Workbench: Enable Preview Features**. To disable preview features, clear the checkbox.
33
+
1. To enable preview features, check the checkbox for **Enable unreleased preview features** under **Workbench: Enable Preview Features**. To disable preview features, clear the checkbox.
36
34
37
-

35
+
:::image type="content" source="media/settings/preview-features-settings.png" alt-text="Screenshot of enabling preview features setting in ADS.":::
38
36
39
37
## List of preview features in Azure Data Studio
40
38
41
39
### General features in preview
42
40
43
-
* Azure portal integration
44
-
* Backup / Restore
45
-
* Deployments
46
-
* SQL Edge
47
-
* Feature tour
48
-
49
-
### Notebook features in preview
50
-
51
-
* Dotnet interactive support
41
+
- Backup / Restore
42
+
- Create Database
43
+
- Delete Database
44
+
- User Management
52
45
53
46
### First-party extensions in preview
54
47
55
-
* Azure Monitor Logs
56
-
* Azure SQL Edge Deployment
57
-
* Central Management Servers
58
-
* Cosmos
59
-
* Database Administration Tool Extensions for Windows
60
-
* Database Migration Assessment for Oracle
61
-
* Kusto
62
-
* Managed Instance Dashboard
63
-
* Oracle
64
-
* MySQL
65
-
* PostgreSQL
66
-
* SandDance for Azure Data Studio
67
-
* Server Reports
68
-
* SQL Assessment
69
-
* SQL Database Projects
70
-
* SQL Server Agent
71
-
* SQL Server Profiler
72
-
* whoisactive
48
+
- Azure Cosmos DB API for MongoDB
49
+
- Azure Cosmos DB Migration for MongoDB
50
+
- Azure Monitor Logs
51
+
- Azure PostgreSQL migration
52
+
- Central Management Servers
53
+
- Data Migration for Oracle
54
+
- Database Administration Tool Extensions for Windows
55
+
- Database Migration Assessment for Oracle
56
+
- Database Schema Conversion Toolkit
57
+
- Kusto
58
+
- SQL Managed Instance Dashboard
59
+
- Oracle
60
+
- PostgreSQL
61
+
- SandDance for Azure Data Studio
62
+
- Server Reports
63
+
- SQL Assessment
64
+
- SQL Server Agent
65
+
- SQL Server Profiler
66
+
- whoisactive
73
67
74
68
## Next steps
75
69
76
-
*[Azure Data Studio](what-is-azure-data-studio.md)
70
+
-[Azure Data Studio](what-is-azure-data-studio.md)
0 commit comments