Advanced Installation
We recommend the standard installation for most users. If you are a developer, or need more control over the installation, there are several alternative methods for installing the Crystal DBA CLI tool.
The instructions below are for the individual deployment model. If you are interested in the team deployment model, which enables monitoring, alerting, and historical analysis, please contact us.
Using pre-built binaries (Linux only)
If you do not have a Python environment, you can use the pre-built binaries, which come packaged with a Python interpreter.
-
Visit the Crystal DBA releases page on GitHub to download the latest release of the Crystal DBA CLI tool for your operating system and architecture. It will be named following the pattern
crystaldba-cli-<version>-<os>-<arch>.tar.gz
. -
Extract the zip file:
tar -xf crystaldba-cli-<version>-<os>-<arch>.tar.gz
- Run the
crystaldba
command with your database connection string:
cd crystaldba-cli-<version>-<os>-<arch>
./crystaldba postgresql://<username>:<password>@<host>:<port>/<database>
Install the Python packages manually
-
Visit the Crystal DBA releases page on GitHub and download the latest version of the .whl file, i.e.,
crystaldba-<version>-py3-none-any.whl
. -
Install the whl file using pipx (or pip):
pipx install crystaldba-<version>-py3-none-any.whl
- Run the
crystaldba
command with your database connection string:
crystaldba postgresql://<username>:<password>@<host>:<port>/<database>
Using source (all platforms)
- Gather the pre-requisites:
- You must have Python 3.10 or later installed.
- You must have Poetry installed.
-
Visit the Crystal DBA releases page on GitHub to download the source code bundle for the latest release. Extract the .zip or .tar.gz file. Alternatively, use
git clone
to clone the repository. -
Navigate to the directory where you extracted the source code bundle and into the
agent
directory. -
Run the Crystal DBA CLI and its dependencies:
poetry install
- Run the
crystaldba
command with your database connection string:
crystaldba postgresql://<username>:<password>@<host>:<port>/<database>