Getting Started with TerraBog
Set up your workspace, connect your first data source, and run your first analytics query — in under 10 minutes.
Looking for a faster path? Use the TerraBog UI to connect sources and run queries without writing any code. This guide covers the SDK approach for programmatic access.
Prerequisites
Before you begin, make sure you have the following:
- A TerraBog account — Free trial or paid plan — sign up at terrabog.com
- Node.js 18+ or Python 3.8+ — Required for the SDK. Check your version with node -v
- An API key — Found in Settings → Developer → API Keys after signing in
- A data source — Any PostgreSQL, Snowflake, BigQuery, Salesforce, or CSV source
Step-by-step Setup
Install the SDK
Add the TerraBog SDK to your project using your preferred package manager:
Initialize Your Client
Import and configure the client with your API key. We recommend storing credentials in environment variables — never commit API keys to version control.
Your TERRABOG_API_KEY is a secret credential. Store it in a .env file and add that file to .gitignore. Never expose it in client-side code.
Connect a Data Source
Use the sources.connect() method to link your first database or service. TerraBog supports 200+ data sources — see the full list in .
Run Your First Query
Once your data source is connected, run a SQL query to pull data into TerraBog. Results are returned as typed rows and automatically cached for subsequent requests.
Explore the Dashboard
Your query results are now available in the TerraBog Dashboard. Navigate to Analytics → Query Results to see your data visualized, or connect additional sources to enrich your analysis.
Results from SDK queries automatically sync to your dashboard within 30 seconds. Use the refresh: true option to force an immediate sync.
What's Next