How to install SQL Database Shell
Learn how to install SQL Database Shell to interact with your SQL Database database.
SQL Database Shell is a command-line interface (CLI) tool for interacting with Azion SQL Database, allowing users to manage databases, execute SQL commands, and perform various database operations.
This guide will show you how to install SQL Database Shell and start taking advantage of its features to easily manage your databases.
Requirements
In order to install SQL Database Shell you must have the following dependencies installed:
- Python 3.x
- Psycopg2
- MySQL Connector/Python
You’ll also need an Azion personal token.
Installing SQL Database Shell
- Clone the SQL Database Shell git repository:
- Enter the directory:
- Install the Python dependencies:
- Install the required system dependencies:
- Set your personal token as an environment variable:
- Execute the following command to run the SQL Database Shell:
Now you can use the SQL Database Shell commands, set environment variables and run SQL queries directly in the terminal.
Go to SQL Database Shell commands reference