N Northfield Docs

Quickstart

From zero to your first query. You need an account, a source and a workspace.

1. Install the CLI

curl -fsSL https://get.northfield.example/install.sh | sh
northfield --version

2. Authenticate

Create a token in the console and export it for the current shell:

export NORTHFIELD_TOKEN="nf_live_..."

3. Create a workspace

northfield workspace create --name analytics --region eu-central

4. Connect a source

A workspace can read from object storage, a Postgres replica or an HTTP feed:

northfield source add postgres \
  --workspace analytics \
  --dsn "postgres://reader@db.internal:5432/app"

5. Run a query

northfield query run --workspace analytics \
  "select count(*) from events where day > current_date - 7"
The first sync takes a few minutes depending on the size of the source. Follow progress with northfield jobs list.

Next steps

Read the API reference to automate the same flow, or check the changelog for behaviour changes between versions.