Install and Configure
Last updated
Was this helpful?
Last updated
Was this helpful?
Before you can define, test, or verify Git-managed data contracts, you need to install the Soda CLI and configure your environment.
This setup gives you full control over your contracts, letting you version them in Git, execute them locally or remotely, and integrate them into your CI/CD pipelines.
Install the Soda Library using pip
:
If you want to interact with Soda Cloud to publish contracts and view verification results, or to use Soda Agent, you’ll need to connect the CLI to your Soda Cloud account.
Don’t have an account? to get started.
This generates a basic Soda Cloud configuration file.
Open sc.yml
and fill in your API key and organization details.
Learn more about how to generate keys: Generate API keys
This ensures the CLI can authenticate and communicate with Soda Cloud.
To verify a contract, Soda needs to know how to connect to your data source. You have two options:
If you prefer to define your own connection locally (or aren’t using a Soda Agent), you can create a data source config file for Soda Core.
Install the required package for your data source. For example, for PostgreSQL:
See the Data source reference for Soda Core for supported packages and configurations.
Open sc.yml
and provide the necessary credentials
For example with PostgreSQL:
Refer to the Data source reference for Soda Core for the configurations of each data source type.
If your data source is already connected to Soda Cloud using a Soda Agent (hosted or self-hosted), you can reuse that connection without managing credentials or configs locally.
You just need to ensure you have set up the connection with Soda Cloud.
Choose the method that best fits your setup:
Use Soda Agent for a centralized, cloud-managed connection, or local configuration if you want full control within your environment.