diff --git a/src/content/docs/en/pages/store-journey/sql/install-edgesql-shell.mdx b/src/content/docs/en/pages/store-journey/sql/install-edgesql-shell.mdx new file mode 100644 index 0000000000..a0bd816f20 --- /dev/null +++ b/src/content/docs/en/pages/store-journey/sql/install-edgesql-shell.mdx @@ -0,0 +1,72 @@ +--- +title: How to install EdgeSQL Shell +description: >- + Learn how to install EdgeSQL Shell to interact with your Edge SQL database. +permalink: /documentation/products/store/sql/install-edge-sql-shell/ +meta_tags: >- + Edge SQL, SQL, database, CRUD, API, shell, CLI +namespace: docs_store_journey_sql_install_edge_sql_shell +menu_namespace: storeMenu +--- + +import LinkButton from 'azion-webkit/linkbutton' + +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: + +- Python 3.x +- [Psycopg2](https://pypi.org/project/psycopg2/) +- [MySQL Connector/Python](https://pypi.org/project/mysql-connector-python/) + +You'll also need an Azion [personal token](/en/documentation/products/guides/personal-tokens/). + +## Installing EdgeSQL Shell + +1. Clone the EdgeSQL Shell git repository: + +```sh +git clone https://github.com/aziontech/edgesql-shell.git +``` + +2. Enter the directory: + +```sh +cd edgesql-shell +``` + +3. Install the Python dependencies: + +```sh +python -m venv env +source env/bin/activate +brew install postgresql +pip install -r requirements.txt +``` + +4. Install the required system dependencies: + +```sh +pip install mysql-connector-python +pip install psycopg2 +``` + +5. Set your **personal token** as an environment variable: + +```sh + export AZION_TOKEN="" +``` + +6. Execute the following command to run the EdgeSQL Shell: + +```sh +python edgesql-shell.py +``` + +Now you can use the EdgeSQL Shell commands, set environment variables and run SQL queries directly in the terminal. + + diff --git a/src/content/docs/pt-br/pages/store-jornada/sql/instalar-edge-sql-shell.mdx b/src/content/docs/pt-br/pages/store-jornada/sql/instalar-edge-sql-shell.mdx new file mode 100644 index 0000000000..1af13bfb15 --- /dev/null +++ b/src/content/docs/pt-br/pages/store-jornada/sql/instalar-edge-sql-shell.mdx @@ -0,0 +1,72 @@ +--- +title: Como instalar o EdgeSQL Shell +description: >- + Aprenda a instalar o EdgeSQL Shell para interagir com seu banco de dados Edge SQL. +permalink: /documentation/products/store/sql/install-edge-sql-shell/ +meta_tags: >- + Edge SQL, SQL, database, CRUD, API, shell, CLI +namespace: docs_store_journey_sql_install_edge_sql_shell +menu_namespace: storeMenu +--- + +import LinkButton from 'azion-webkit/linkbutton' + +O EdgeSQL Shell é uma ferramenta de interface de linha de comando (CLI) para interagir com o Azion Edge SQL, permitindo que os usuários gerenciem bancos de dados, executem comandos SQL e realizem várias operações de banco de dados. + +Este guia mostrará como instalar o EdgeSQL Shell e começar a aproveitar seus recursos para gerenciar seus bancos de dados com facilidade. + +## Requisitos + +Para instalar o EdgeSQL Shell, você deve ter as seguintes dependências instaladas: + +- Python 3.x +- [Psycopg2](https://pypi.org/project/psycopg2/) +- [MySQL Connector/Python](https://pypi.org/project/mysql-connector-python/) + +Você também precisará de um [token pessoal](/pt-br/documentacao/produtos/guias/personal-tokens/) da Azion. + +## Instalando o EdgeSQL Shell + +1. Clone o repositório git do EdgeSQL Shell: + +```sh +git clone https://github.com/aziontech/edgesql-shell.git +``` + +2. Entre no diretório: + +```sh +cd edgesql-shell +``` + +3. Instale as dependências do Python: + +```sh +python -m venv env +source env/bin/activate +brew install postgresql +pip install -r requirements.txt +``` + +4. Instale as dependências de sistema necessárias: + +```sh +pip install mysql-connector-python +pip install psycopg2 +``` + +5. Defina seu **personal token** como uma variável de ambiente: + +```sh + export AZION_TOKEN="" +``` + +6. Execute o seguinte comando para rodar o EdgeSQL Shell: + +```sh +python edgesql-shell.py +``` + +Agora você pode usar os comandos do EdgeSQL Shell, definir variáveis de ambiente e executar consultas SQL diretamente no terminal. + +