How to install EdgeSQL Shell

EdgeSQL Shell is a command-line interface (CLI) tool for interacting with Azion Edge SQL, allowing users to manage databases, execute SQL commands, and perform various database operations.

This guide will show you how to install EdgeSQL Shell and start taking advantage of its features to easily manage your databases.

Requirements

In order to install EdgeSQL Shell you must have the following dependencies installed:

You’ll also need an Azion personal token.

Installing EdgeSQL Shell

  1. Clone the EdgeSQL Shell git repository:
Terminal window
git clone https://github.com/aziontech/edgesql-shell.git
  1. Enter the directory:
Terminal window
cd edgesql-shell
  1. Install the Python dependencies:
Terminal window
python -m venv env
source env/bin/activate
brew install postgresql
pip install -r requirements.txt
  1. Install the required system dependencies:
Terminal window
pip install mysql-connector-python
pip install psycopg2
  1. Set your personal token as an environment variable:
Terminal window
export AZION_TOKEN="<your_auth_token_here>"
  1. Execute the following command to run the EdgeSQL Shell:
Terminal window
python edgesql-shell.py

Now you can use the EdgeSQL Shell commands, set environment variables and run SQL queries directly in the terminal.

Go to EdgeSQL Shell commands reference

Contributors