Skip to main content

Holistics CLI

Introduction​

The Holistics CLI tool provides a powerful tooling to interact with Holistics services. This tool allows developers and analysts to integrate Holistics capabilities directly into their analytics development pipeline.

With the Holistics CLI, you can:

  • Sync local AML code with the Holistics cloud in continuous bidirectional sync
  • Compile AML files into JSON objects
  • Validate AML repositories for errors
  • Integrate and upload dbt models

The CLI tool is a self-contained binary that does not require installing any additional dependencies.

Installation​

For macOS and Linux​

Run the following command to install the Holistics CLI:

curl -fsSL https://holistics.io/cli/install | bash
Shell Support

The installation script supports bash, zsh, and fish. If you are using other shells, please update PATH to include ~/.holistics/bin.

MacOS 12x (Monterey)

The CLI is not compatible with MacOS 12.x (Monterey), which reached end of life on September 16, 2024. There are 2 solutions:

For Windows​

At the moment, we do not have an installation script for Windows. Please manually download the latest release, then add it to your Path in the Environment Variables.

Authentication​

The CLI opens your browser to complete login — no API key needed.

App domain

holistics auth apac

API key​

Find your API key under profile menu > User settings in Holistics.

Holistics profile menu with the User settings option highlighted
holistics auth secure <api_key>

A successful auth prints:

Logging into https://<secure/us/eu>.holistics.io
Authentication successful. Info:
- ID: 12345
- Server URL: https://<secure/us/eu>.holistics.io

The CLI saves your credentials in ~/.holistics.yml and reuses them for subsequent commands.

caution

For backwards compatibility, the CLI still allows the use of the environment variable HOLISTICS_HOST to specify the server location. HOLISTICS_HOST will take precedence over the saved address.

However, this is deprecated and will be removed in the future.

Either of the following ways will still work:

HOLISTICS_HOST=eu.holistics.io holistics auth <api-key>
export HOLISTICS_HOST=eu.holistics.io
holistics auth <api-key>

Quick Start​

Upload a dbt model​

To upload a dbt model, you need to have a manifest JSON file.

For example, to upload manifest.json to data source demodb, run the following command:

holistics dbt upload --file-path manifest.json --data-source demodb

Compile AML files​

Note:

In order to compile AML files, the current working directory must be the root directory of a valid AML repository.

To compile AML models, run the following command:

holistics aml compile **/*.model.aml

Modules Overview​

The Holistics CLI is organized into several modules, each with its own set of commands and options.

ModuleDescription
sync-codeContinuous bidirectional sync between local AML files and the Holistics cloud dev branch
amlAML-related commands
dbtdbt-related commands

Open Markdown
Let us know what you think about this document :)