1. Deployment and Configuration
  2. CLI commands and usage

With any of the CLI commands, you can use the --help flag and get instructions and available options:

edr --help

CLI commands

Read from the test results table and send new alerts to Slack:

edr monitor

Read from the test results table and generate the Elementary UI:

edr report

Read from the test results table and generate the Elementary UI and send it to external platforms such as Slack, S3, GCS:

edr send-report

CLI Options

You can define options either via the CLI or using environment variables in the following format: EDR_<COMMAND>_<OPTION>=<VALUE>.

export EDR_REPORT_FILE_PATH="my_report.html"
edr report
# Equivalent to: edr report --file-path "my_report.html"

Here is a list of all the available options:

  • dbt project path: The path of the directory in which your dbt_project.yml file is located. Default is the working directory.
--project-dir <PATH>
  • Profile directory path: The path of the directory in which your profiles.yml file is located. Default is HOME_DIR/.dbt.
  • This option must be configured together with profile name.
-p, --profiles-dir <PATH>
  • Configuration directory path: The path of the directory in which your config.yml file is located. Default is HOME_DIR/.edr.
-c, --config-dir <PATH>
  • Profile target: Choose a specific target in case you have multiple targets for Elementary.
-t, --profile-target <target_name>
  • Profile target of your dbt project: Choose a specific target in case you have multiple targets for your dbt project.
--project-profile-target <target_name>
  • Select: Filter the alerts / report using a selector.

    • See all of the alerts supported selector methods here.
    • See all of the report supported selector methods here.
--select <selector_method>:<value>
  • Slack webhook URL: Pass the webhook URL of your Slack channel to edr as a parameter.
-s, --slack-webhook <slack_webhook_url>
  • Slack token: Pass the Slack token and the Slack channel to edr as parameters.
-st, --slack-token <slack_token>
-ch, --slack-channel-name <slack_channel_name_to_send_the_file_to>
  • Full refresh dbt package models: Force running a full refresh of all incremental models in the edr dbt package.
 -f, --full-refresh-dbt-package BOOLEAN
  • Days back: Set a limit to how far back Elementary should collect dbt and Elementary results while generating alerts/report.
-d, --days-back INTEGER
  • Report file path: The local file path where Elementary’s report will be saved.
--file-path TEXT
  • Report remote file name: The report’s file name, this is how it will be called on Slack, S3, GCS when using send-report.
--file-name TEXT
  • S3 endpoint url: The endpoint of the S3 bucket when using send-report with any S3 compatible cloud storage service.
--s3-endpoint-url TEXT
  • Timezone: The timezone that will be used upon calculating the alerts’ time field.
    A list of timezones can be found here under TZ database name.
-tz, --timezone TEXT
  • dbt Quoting: Optionally control the quoting setting of the internal dbt package of the elementary CLI. You should use this setting if you are overriding dbt’s default quoting in your main dbt package.
-q, --dbt-quoting [all|none|combination of any of: database,schema,identifier]

# Examples:
# * --dbt-quoting all
# * --dbt-quoting none
# * --dbt-quoting identifier
# * --dbt-quoting schema,identifier
  • Disable samples: Disable sampling of data in the report and alerts. Useful if your data is sensitive or contains PII.
--disable-samples BOOLEAN
  • Project name: You can optionally pass a custom project name that will be shown in the report. The default value is the name of your dbt project.
--project-name TEXT
  • Environment: This flag indicates if you are running Elementary in a production or development environment and will be reflected accordingly in the report.
--env [dev|prod]