Aiven Client is a command line tool for fully managed services. To use Aiven Client you need to first create an authentication token and then configure it to connect to your Managed Service for TimescaleDB using the command line.
To connect to Managed Service for TimecaleDB using Aiven Client you need to create an authentication token.
- Log in to your Managed Service for TimescaleDB portal.
- Click
User Information
in the top right corner. - In the
User Profile
page, navigate to theAuthentication
tab. - Click
Generate Token
. - In the
Generate access token
dialog, type a descriptive name for the token and leave the rest of the fields blank. - Copy the generated authentication token and save it.
Aiven Client is provided as a Python package, so you can install
it on a Linux, MacOS, or Windows system using pip
, if you have already installed Python.
Use this command:
pip install aiven-client
For more information about installing the Aiven Client, see the Aiven documentation.
To access Managed Service for TimescaleDB with the Aiven Client, you need an authentication token. Aiven Client uses this authentication token to access your services on Managed Service for TimescaleDB.
Change to the install directory that contains the configuration files:
cd ~/.config/aiven/Open the
aiven-credentials.json
using any editor and update these lines with your Managed Service for TimescaleDBUser email
, and theauthentication token
that you generated :{"auth_token": "ABC1+123...TOKEN==","user_email": "[email protected]"}Save the
aiven-credentials.json
file.To verify that you can access your services on Managed Service for TimescaleDB, type:
avn project listThis command shows a list of all your projects:
PROJECT_NAME DEFAULT_CLOUD CREDIT_CARD============= ======================= ===================project-xxxx timescale-aws-us-east-1 xxxx-xxxx-xxxx-xxxxproject-yyyy timescale-aws-us-east-1 xxxx-xxxx-xxxx-xxxxproject-zzzz timescale-aws-us-east-1 xxxx-xxxx-xxxx-xxxx
Found an issue on this page?
Report an issue!Keywords