Skip to content

Repository files navigation

databox-cli

Command-line interface for the Databox API. Manage data sources, datasets and the data in them, custom metrics, databoards, users, your organization and its accounts, connections and billing — from the terminal, from scripts, or through an AI agent. Running it from a script or an agent? Read Scripts and AI Agents first.

Version 1.0 targets the Databox V2 API. Upgrading from 0.x? The 1.0.0 migration guide lists every renamed command and flag.

Installation

npm install -g databox-cli
databox --version

This installs the databox command. Requires Node.js 18 or later.

How It Fits Together

A data source holds datasets. You push rows into a dataset, then build custom metrics on it.

  • Data source and dataset IDs are numbers. See Finding IDs.
  • Metric IDs are strings such as 67890|custom_query_100. The | is special in the shell, so always quote them: --metric-id "67890|custom_query_100".
  • Timestamps differ per command:
Where Format Example
Datetime values in ingested records ISO 8601 "2026-01-15", "2026-01-15T10:30:00Z"
metric drilldown --start-timestamp / --end-timestamp Unix seconds 1767225600 (2026-01-01 00:00 UTC). Convert with date -u -d 2026-01-01 +%s (Linux) or date -u -j -f '%F %T' '2026-01-01 00:00:00' +%s (macOS)
activity-log list --date-from / --date-to Date, YYYY-MM-DD 2026-01-31. A bare date means the start of that day (UTC), so --date-to 2026-01-31 leaves out most of the 31st; pass --date-to 2026-02-01 to include it

Finding IDs

Most commands take the ID of a data source, a dataset or a metric. Every one of them is shown by a list command, and returned as id by the command that creates it.

ID What it is Where to find it
Data source ID A number, e.g. 12345. The container your datasets live in. databox data-source list; id from data-source create. In the Databox app, open the data source in Data Manager: the number in the page URL, app.databox.com/data-manager/connected/12345/datasets/view, is its ID.
Dataset ID A number, e.g. 67890. Each dataset has its own ID, separate from its data source's. databox dataset list --search "Orders", or databox data-source datasets 12345 for one data source's datasets; id from dataset create. In the Databox app, open the dataset in Data Manager and read the number from the URL, as above.
Metric ID A string: <data source ID>|<metric key>, e.g. 12345|custom_query_100. databox metric list --search revenue; id from metric create. Quote it in the shell.
Ingestion ID A UUID. One ingest request, not a dataset. Returned as ingestionId by dataset ingest; databox dataset ingestions DATASETID lists them.
Account ID A number. An account your organization manages, for --account-id. databox account list.

Data source and dataset IDs share one ID space, so a number names exactly one of them: pass a dataset ID to dataset commands and a data source ID to data-source commands. The dataset GUIDs that 0.x used (a1b2c3d4-e5f6-…) are not accepted; look the dataset up by name with databox dataset list --search.

Getting Started

A complete run, from an empty organization to a metric's rows. It uses jq to capture each new ID; without jq, copy the ID from the command's table output.

# 1. Authenticate, and check the key works (scripts: export DATABOX_API_KEY instead)
databox auth login
databox auth validate

# 2. Create a data source, then a dataset in it
SOURCE=$(databox data-source create --name "My App" --json | jq -r .id)
DATASET=$(databox dataset create --name "Orders" --data-source-id "$SOURCE" \
  --primary-key order_id \
  --schema '[{"id":"order_id","dataType":"string"},{"id":"date","dataType":"datetime"},{"id":"country","dataType":"string"},{"id":"amount","dataType":"number"}]' \
  --json | jq -r .id)

# 3. Push rows: a bare JSON array of objects keyed by column id (not {"records": [...]};
#    the CLI adds that wrapper). Inline with --records, from a file with --file, or piped on stdin.
INGESTION=$(databox dataset ingest "$DATASET" \
  --records '[{"order_id":"A-1","date":"2026-01-15","country":"US","amount":42}]' \
  --json | jq -r .ingestionId)

# 4. Ingestion is asynchronous. Poll until the status is success, or failed, in which case
#    its errors name each rejected record (purged means the data was purged meanwhile);
#    give up after 2 minutes. A poll that fails
#    (a network blip) just polls again. Then read the rows.
for attempt in $(seq 1 60); do
  STATUS=$(databox dataset ingestion "$DATASET" "$INGESTION" --json | jq -r .status)
  case "$STATUS" in success|failed|purged) break ;; esac
  sleep 2
done
databox dataset ingestion "$DATASET" "$INGESTION"
databox dataset data "$DATASET"

# 5. Build a custom metric on the dataset. Column references are {"id","displayName"},
#    with the id taken from "dataset schema".
METRIC=$(databox metric create --name "Revenue" --dataset-id "$DATASET" \
  --measure '{"id":"amount","displayName":"Amount"}' \
  --date '{"id":"date","displayName":"Date"}' \
  --dimension '{"id":"country","displayName":"Country"}' \
  --json | jq -r .id)

# 6. Read the rows behind the metric for January 2026, broken down by country
databox metric drilldown --metric-id "$METRIC" --source-id "$DATASET" \
  --start-timestamp 1767225600 --end-timestamp 1769904000 --dimension-id country

Authentication

Getting an API Key

The CLI authenticates with your personal API key, a string starting with pak_. To create it, in the Databox app open Account Management → Security (the page is titled Password & Security) and, under API key, click Create.

Prerequisites:

  • You are an admin. Only admin users can create a key.
  • Your plan includes API access. If the API key section does not appear on the Security page, your plan does not include it, or you are not an admin.

What to know about the key:

  • One key per user. It never expires. To rotate it, delete it on the same page and create a new one.
  • It acts as you. Every command runs with your user's role and permissions, in your organization and in any account you can reach with --account-id. See Permissions.
  • It can be limited to IP addresses. Under Manage allowed IPs, choose Selected IPs only to accept requests from listed IPv4/IPv6 addresses only. A request from anywhere else is rejected as unauthenticated (exit 1), so add the IP of every machine or CI runner that uses the CLI.
  • Treat it like a password. Anyone holding it can act as you until you delete it.

Using the Key

All commands except auth login need the key. There are four ways to supply it:

How Use it for
databox auth login Interactive use. Prompts for the key without echoing it, which keeps it out of your shell history.
pass show databox | databox auth login Storing a key read from stdin, e.g. from a password manager or < keyfile.
databox auth login --api-key YOUR_API_KEY Storing a key without a prompt.
DATABOX_API_KEY=YOUR_API_KEY in the environment Scripts, CI and AI agents. Nothing is stored, and it takes precedence over the stored key.

auth login stores the key in ~/.config/databox-cli/config.json, readable only by you. It then checks the key, but saves it even if that check fails: it prints Warning: API key could not be validated. and still exits 0. Run databox auth validate to be sure; exit 0 means the key works.

Off a terminal (stdin piped or closed, as in scripts and agent shells), auth login without --api-key does not prompt: it reads the key from the first line of stdin. When nothing is piped, it exits 2 and saves nothing. auth login itself does not read DATABOX_API_KEY; set that variable instead of logging in. An open stdin that nobody writes to makes it wait, so in agent shells pass --api-key or use DATABOX_API_KEY.

Permissions

The API applies the Databox app's role rules. Your role (Admin, User, Editor or Viewer) is checked in the organization or account that owns the resource. A command your role does not allow fails with forbidden (HTTP 403, exit 1) and changes nothing. Retrying will not help: ask an admin, or the resource's creator, to run it.

Commands Who may run them
data-source and dataset commands that change nothing (list, get, permissions, metadata …), and dataset ingest Anyone with access to the data source or dataset
data-source create, data-source update, dataset update, data-source set-sync-frequency, dataset set-sync-frequency Admin, User or Editor. A Viewer can only read.
data-source delete, purge, set-timezone (with or without --purge-data), set-permissions, and dataset create, which adds a dataset to the data source An admin, or the user who created the data source (as User or Editor)
dataset delete, purge, set-timezone, set-permissions, set-metadata, set-column-metadata, update-modification, clear-modifications, duplicate, set-verification An admin, or the user who created the dataset (as User or Editor)
organization update, user list, user get, user delete, activity-log list, account create, account update, account delete Admin. Anyone can read their own record with profile info.
user update Anyone for their own record. Updating another user, or changing any role, takes an admin.
user invite Anyone. A non-admin can invite only with the user role.
connection update, connection set-permissions An admin, or the user who owns the connection
connection delete The user who owns the connection

Connections follow the app's sharing rules:

  • connection list shows an admin every connection, and anyone else the connections they own and those shared with them. With --account-id, an agency user sees the account's connections plus the agency's connections shared with its accounts.
  • connection get and connection permissions answer not_found (exit 1) for a connection you cannot see, as for one that does not exist.
  • A connection the agency shares with its accounts can be read from an account, but changed only in the agency.

--access-list on connection, data-source and dataset set-permissions takes only users of the organization, or users already on the list. Any other ID is refused with invalid_input (exit 1), naming the IDs, and nothing is changed. The list that permissions --json returns can always be sent back unchanged.

Global Flags

Every command except auth login accepts these:

Flag Env var Description
--output table|json|csv — Output format. Default table.
--json — Shorthand for --output json. Cannot be combined with --output.
--verbose — Print each request and response (method, URL, status, duration, request ID) to stderr. The API key is never printed.
--no-color NO_COLOR Disable coloured output. A non-empty NO_COLOR does the same.
--api-key DATABOX_API_KEY Use this API key instead of the stored one.
--api-url DATABOX_API_URL Override the API base URL (default https://api.databox.com). auth login saves the URL it was given to the config file, and later commands keep using it.
--account-id DATABOX_ACCOUNT_ID Target an account in your organization (see Organizations and Accounts).
-h, --help — Show help for a command or topic.

--api-key, --api-url and --account-id do not appear in each command's --help, but work on every command that calls the API.

One exception: auth login takes only --api-key (and --api-url); --json and the other flags are rejected with exit 2.

List Flags

Commands that return a list page by page also take these. metric dimension-values, organization timezones, organization countries and databoard metrics return everything at once and take none of them.

Flag Description
--page Page number, starting at 0.
--page-size Items per page: at most 100, or 1000 on dataset data and metric drilldown.
--all Fetch every page and print them as one list. Cannot be combined with --page.
--search, --sort-by, --sort-order On the commands that support them; --help lists the accepted sort fields.

Without --page or --all, a list command returns only the first page: 25 items, or 200 rows for dataset data and metric drilldown. Table mode prints a Page 1 of N (T total items) footer. --output csv prints no total, and neither does --json, apart from the pagination object in dataset data and metric drilldown. Pass --all whenever you need every item.

Safe Retries with --idempotency-key

Commands that create something, or start work that should not happen twice, accept --idempotency-key <uuid>. The key is sent as the Idempotency-Key header: re-running the same command with the same key within 24 hours returns the first response instead of repeating the action. Only a successful response is kept, so a retry after an error runs the request again.

A key replays only for the same user, in the same account (--account-id), on the same command and resource, with the same input. Reusing it with different input (other records, another name) fails with idempotency_key_reused (HTTP 422, exit 1) and does nothing: send a new key for a new request. The same key from another user, or on another command, runs as a new request.

KEY=$(uuidgen)
databox dataset ingest 67890 --file orders.json --idempotency-key "$KEY"
# Timed out? Re-running with the same key cannot ingest the rows twice.
databox dataset ingest 67890 --file orders.json --idempotency-key "$KEY"

It is available on account create, data-source create, data-source purge, dataset create, dataset duplicate, dataset ingest, dataset purge, dataset update-modification, metric create and user invite. The value must be a UUID.

JSON Input

Several flags take JSON. Quote it in single quotes. Each command's --help has a full example.

Flag Shape and example
dataset create --schema Array of columns; dataType is string, number or datetime. Optional: without it, the first ingest defines the schema. '[{"id":"amount","dataType":"number"}]'
dataset ingest --records, --file, stdin A bare array of row objects, keyed by column id. '[{"order_id":"A-1","amount":42}]'
metric create / update --measure, --date, --dimension A column reference. '{"id":"amount","displayName":"Amount"}'
metric create / update --filters One group of conditions, lower-case logicalOperator, values as strings. '{"logicalOperator":"and","conditions":[{"field":"country","operator":"ANY_OF","values":["US"]}]}'
metric drilldown --filters A different shape: upper-case, nested groups, each condition with a type. Copy it from databoard metrics --json. '{"logicalOperator":"AND","groups":[{"logicalOperator":"AND","conditions":[{"type":"dimension","field":"country","operator":"ANY_OF","values":["US"]}]}]}'
dataset update-modification / preview-modification --data Any of filters, formulas, displayNames, dataTypes, order, visibility. update-modification replaces the whole definition, so start from dataset modifications ID --json. '{"formulas":{"totalWithTax":"$amount * 1.2"},"displayNames":{"amount":"Revenue"}}'
dataset set-column-metadata --columns Array of {id, description?, conceptType?, synonyms?}. '[{"id":"country","conceptType":"dimension","synonyms":["nation"]}]'
organization update --settings {dateFormat, numberFormat, firstDayOfWeek, calendar, fiscalYearStart}. '{"calendar":"customFiscal","fiscalYearStart":{"month":4,"day":1}}'
organization update --address / --metadata {street, zip, city, state, country} / {industry, businessType, companySize, annualRevenue}
profile update --metadata {department, title, role}, with values from profile metadata-options. '{"department":"engineering","role":"software_engineer"}'

Output Formats

Commands print a table by default. --output json (or --json) and --output csv are for scripts:

# JSON, filtered with jq (--all: see List Flags)
databox dataset list --all --json | jq '.[] | {id, name}'

# Every data source as CSV, across all pages
databox data-source list --all --output csv > data-sources.csv

# A dataset's rows as CSV
databox dataset data 67890 --all --output csv > orders.csv

What --json prints:

  • Lists print a JSON array of the items, each exactly as the API returned it. With --all, the array holds every page; without it, only the first (see List Flags).
  • Responses that carry more than a list print the whole response object: dataset schema ({items, primaryKey}), dataset data ({items, pagination, schema, lastUpdatedAt}), dataset preview-modification and metric drilldown ({items, schema, pagination}), dataset lineage and metric lineage ({parents, children}), metric dimension-values, dataset modifications, dataset modification-rules and databoard metrics. A command's --help says when --json returns the whole response. Under --all, dataset data and metric drilldown leave out pagination.
  • Single resources print the object the API returned.
  • metric create and metric update print the metric as metric get does, in every format.
  • set-timezone, set-sync-frequency and set-verification print a one-line confirmation in table mode, and the updated resource with --json or --output csv. Every other set-* command prints what the API returned in every format: the updated resource, or for dataset set-column-metadata the dataset's columns.
  • Deletes, purges and clears print a one-line confirmation in every format.

CSV uses the same columns as the table, with a header row even when there are no results. A single resource prints as field,value rows.

Stdout carries only the result. Pagination footers appear in table mode only, and --verbose traces, warnings and errors go to stderr, so piping stays clean.

Limits

Limit Value
Records per dataset ingest 500. The CLI refuses a larger batch before sending it (exit 2); split it.
Payload per dataset ingest 30 MB (30,000,000 bytes) of JSON, checked the same way.
Columns per dataset 100
Dataset size Set per dataset: maxSize in dataset get.
Rate limit, per API key 10 requests per second, 10,000 per hour, enforced by Databox's gateway. Over it you get HTTP 429 (exit 1), possibly with no error code: back off and retry, with --idempotency-key on writes.
Request timeout 30 seconds, or 5 minutes for dataset ingest (exit 2).

With a primary key (dataset create --primary-key), ingesting a row whose key already exists overwrites it. Without one, every ingest appends, so sending the same rows twice duplicates them.

Errors and Exit Codes

When the API rejects a request, the CLI prints the error code, the message, the field at fault (if any) and the request ID, on stderr:

 ›   Error: invalid_input
 ›     Invalid timezone value
 ›     Field: timezone
 ›     Request ID: 9ea537f4-27bc-4662-a4e2-48744ea9b7bd

Errors are always plain text on stderr, even with --json; on failure, stdout is empty. If you contact Databox support about a failed command, quote the Request ID: it identifies the exact request in Databox's logs. --verbose prints the request ID of successful requests too.

Exit code Meaning
0 Success. Answering anything but y or yes to a confirmation prompt, at a terminal or piped, also exits 0 after printing Aborted..
1 The API returned an error (4xx or 5xx, including the rate limit, and forbidden when your role does not allow the command; see Permissions). Also: no API key is configured, the stored config file is not valid JSON, the response was not JSON (usually a wrong --api-url), an update command was given no field to change, or dataset ingest was run at a terminal with no --records or --file.
2 The request was never sent, or never reached the API: an unknown flag, a value outside a flag's options, a malformed ID or JSON value, an ingest over the limits, or a network failure, timeout or redirect (the CLI does not follow a redirect: it would resend your API key). Also a command that would prompt when stdin is not a terminal and nothing is piped: a delete, purge or clear without --force, or auth login without --api-key (see Authentication).
130 A prompt (a confirmation, or the API key at auth login) was interrupted with Ctrl-C.

Scripts and AI Agents

  • Authenticate with DATABOX_API_KEY, not a bare auth login (see Authentication).
  • Use --json, and --all on lists (see List Flags).
  • Branch on the exit code, not the output: 0 ok, 1 API error, 2 bad input or network. Errors are plain text on stderr even with --json, and stdout is then empty.
  • Pass --force to account delete, connection delete, data-source delete, data-source purge, dataset delete, dataset purge, dataset clear-modifications, metric delete and user delete. Without it, off a terminal, they read y/yes from stdin, and exit 2 having done nothing when nothing is piped.
  • set-timezone --purge-data deletes data without asking, on both data-source and dataset.
  • Give dataset ingest its input explicitly with --records or --file. With neither, it reads stdin, and an open stdin that nobody writes to waits forever.
  • Ingestion is asynchronous: poll dataset ingestion DATASETID INGESTIONID until its status is success, failed or purged (see Getting Started).
  • Make retries safe with --idempotency-key "$(uuidgen)" on creates and ingests, reusing the key only to retry the same command with the same input.
  • Do not retry forbidden. It means the key's user lacks the role or the access for that command, and a not_found from connection get can mean the connection is not shared with them. See Permissions.
  • Report failures with the request ID from the error. --verbose adds a request ID for every request, on stderr.

Organizations and Accounts

Your organization is the top level: databox organization info, organization update and organization usage read and change it. An organization that manages several accounts (an agency) lists and manages them with the account commands, and --account-id scopes any command to one of them:

# List the accounts in your organization
databox account list --all

# List data sources in one account
databox data-source list --account-id 12345
  • account commands work only for an organization that manages accounts. Any other organization gets invalid_input on field organization from account list and account create. account get, update and delete answer not_found for any account your organization does not manage.
  • --account-id takes a numeric account ID. It matters on list and create commands, where it picks the account to list or create in. A command given a resource ID acts on that resource wherever it lives.
  • A DATABOX_ACCOUNT_ID in your environment applies to every command.
  • With --account-id, the organization commands answer for that account. databox profile info always shows your own organization, and your home account if you belong to one.

Agent Skills

This package includes skills that let AI agents (like Claude Code) use the CLI on your behalf.

Bundled Skills

Skill Description
databox-auth Authentication setup and API key validation
databox-organization Organization info, usage, settings, timezones
databox-data-sources Data source CRUD, timezone, sync frequency, permissions, purge
databox-datasets Dataset CRUD, schema, data ingestion, metadata, verification, modifications, lineage
databox-metrics Custom metric CRUD, dimension values, drilldown, lineage, usages, verification
databox-users User invites, roles, removal
databox-accounts Managing the accounts in your organization
databox-connections Connection management and permissions
databox-integrations Browse the integration catalog
databox-billing Plan details and invoices

Install Skills

Install all skills at once using npx skills:

npx skills add databox/databox-cli --skill '*'

Or install individual skills:

npx skills add databox/databox-cli --skill databox-auth
npx skills add databox/databox-cli --skill databox-organization
npx skills add databox/databox-cli --skill databox-data-sources
npx skills add databox/databox-cli --skill databox-datasets
npx skills add databox/databox-cli --skill databox-metrics
npx skills add databox/databox-cli --skill databox-users
npx skills add databox/databox-cli --skill databox-accounts
npx skills add databox/databox-cli --skill databox-connections
npx skills add databox/databox-cli --skill databox-integrations
npx skills add databox/databox-cli --skill databox-billing

Once installed, Claude Code can manage your Databox resources directly — your organization and its accounts, data sources, datasets, metrics, users, connections and billing.

Commands

analyze ask-genie is temporarily unavailable in 1.0: the Genie service now requires authentication the CLI cannot provide yet. It will return in a later release.

databox account create

Create an account in your organization

USAGE
  $ databox account create --name <value> [--no-color] [--output table|json|csv | --json] [--verbose]
    [--idempotency-key <value>] [--managed-by-id <value>] [--website-url <value>]

FLAGS
  --idempotency-key=<value>  A UUID sent as the Idempotency-Key header: re-running the same command with the same key
                             and input within 24 hours returns the first response instead of repeating the action. The
                             same key with different input fails with idempotency_key_reused and does nothing
  --json                     Output as JSON (shorthand for --output json)
  --managed-by-id=<value>    User ID of the account manager
  --name=<value>             (required) Name of the account
  --no-color                 Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>          [default: table] Output format
                             <options: table|json|csv>
  --verbose                  Print each request and response (method, URL, status, duration, request ID) to stderr
  --website-url=<value>      Website URL for the account

DESCRIPTION
  Create an account in your organization

EXAMPLES
  $ databox account create --name "Acme Inc"

  $ databox account create --name "Acme Inc" --managed-by-id 12345

  $ databox account create --name "Acme Inc" --json

See code: src/commands/account/create.ts

databox account delete ACCOUNTID

Delete an account from your organization

USAGE
  $ databox account delete ACCOUNTID [--no-color] [--output table|json|csv | --json] [--verbose] [--force]

ARGUMENTS
  ACCOUNTID  The account ID to delete

FLAGS
  --force            Skip confirmation prompt
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Delete an account from your organization

EXAMPLES
  $ databox account delete 12345

  $ databox account delete 12345 --force

See code: src/commands/account/delete.ts

databox account get ACCOUNTID

Get account details

USAGE
  $ databox account get ACCOUNTID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  ACCOUNTID  The account ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get account details

EXAMPLES
  $ databox account get 12345

  $ databox account get 12345 --json

See code: src/commands/account/get.ts

databox account list

List accounts in your organization

USAGE
  $ databox account list [--no-color] [--output table|json|csv | --json] [--verbose] [--all | --page <value>]
    [--page-size <value>] [--search <value>] [--sort-by <value>] [--sort-order asc|desc]

FLAGS
  --all                  Fetch every page (100 items per request unless --page-size is given) and print them as one list
  --json                 Output as JSON (shorthand for --output json)
  --no-color             Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>      [default: table] Output format
                         <options: table|json|csv>
  --page=<value>         Page number (0-indexed)
  --page-size=<value>    Number of items per page (max 100)
  --search=<value>       Search by name
  --sort-by=<value>      Field to sort by
  --sort-order=<option>  Sort direction
                         <options: asc|desc>
  --verbose              Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List accounts in your organization

  --sort-by takes name, website or managedBy. The CLI does not restrict it: the value is passed to the API as given.

EXAMPLES
  $ databox account list

  $ databox account list --sort-by name --sort-order asc

  $ databox account list --json

See code: src/commands/account/list.ts

databox account update ACCOUNTID

Update an account

USAGE
  $ databox account update ACCOUNTID [--no-color] [--output table|json|csv | --json] [--verbose] [--managed-by-id
    <value>] [--name <value>] [--website-url <value>]

ARGUMENTS
  ACCOUNTID  The account ID to update

FLAGS
  --json                   Output as JSON (shorthand for --output json)
  --managed-by-id=<value>  User ID of the account manager
  --name=<value>           New name for the account
  --no-color               Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>        [default: table] Output format
                           <options: table|json|csv>
  --verbose                Print each request and response (method, URL, status, duration, request ID) to stderr
  --website-url=<value>    New website URL

DESCRIPTION
  Update an account

EXAMPLES
  $ databox account update 12345 --name "New Name"

  $ databox account update 12345 --managed-by-id 67890

  $ databox account update 12345 --name "New Name" --json

See code: src/commands/account/update.ts

databox activity-log list

List activity log entries

USAGE
  $ databox activity-log list [--no-color] [--output table|json|csv | --json] [--verbose] [--all | --page <value>]
    [--page-size <value>] [--date-from <value>] [--date-to <value>] [--resource-type
    dataSource|dataset|metric|user|administration|billing|connection] [--search <value>] [--user-id <value>]

FLAGS
  --all                     Fetch every page (100 items per request unless --page-size is given) and print them as one
                            list
  --date-from=<value>       Only entries on or after this date (ISO 8601)
  --date-to=<value>         Only entries up to this date (ISO 8601). A bare date means the start of that day, UTC: to
                            include all of it, pass the next day
  --json                    Output as JSON (shorthand for --output json)
  --no-color                Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>         [default: table] Output format
                            <options: table|json|csv>
  --page=<value>            Page number (0-indexed)
  --page-size=<value>       Number of items per page (max 100)
  --resource-type=<option>  Filter by resource type
                            <options: dataSource|dataset|metric|user|administration|billing|connection>
  --search=<value>          Search the log text
  --user-id=<value>         Filter by the ID of the user who acted
  --verbose                 Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List activity log entries

EXAMPLES
  $ databox activity-log list

  $ databox activity-log list --resource-type dataSource

  $ databox activity-log list --user-id 123

  $ databox activity-log list --json

See code: src/commands/activity-log/list.ts

databox auth login

Authenticate with Databox by providing your API key

USAGE
  $ databox auth login [--api-key <value>]

FLAGS
  --api-key=<value>  API key. If omitted, you are prompted at a terminal; otherwise the first line of stdin is read

DESCRIPTION
  Authenticate with Databox by providing your API key

EXAMPLES
  $ databox auth login

  $ databox auth login --api-key YOUR_KEY

  pass show databox | databox auth login

See code: src/commands/auth/login.ts

databox auth validate

Validate the currently stored API key

USAGE
  $ databox auth validate [--no-color] [--output table|json|csv | --json] [--verbose]

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Validate the currently stored API key

EXAMPLES
  $ databox auth validate

  $ databox auth validate --json

See code: src/commands/auth/validate.ts

databox billing info

Show billing and plan details

USAGE
  $ databox billing info [--no-color] [--output table|json|csv | --json] [--verbose]

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Show billing and plan details

EXAMPLES
  $ databox billing info

  $ databox billing info --json

See code: src/commands/billing/info.ts

databox billing invoices

List invoices

USAGE
  $ databox billing invoices [--no-color] [--output table|json|csv | --json] [--verbose] [--all | --page <value>]
    [--page-size <value>]

FLAGS
  --all                Fetch every page (100 items per request unless --page-size is given) and print them as one list
  --json               Output as JSON (shorthand for --output json)
  --no-color           Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>    [default: table] Output format
                       <options: table|json|csv>
  --page=<value>       Page number (0-indexed)
  --page-size=<value>  Number of items per page (max 100)
  --verbose            Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List invoices

EXAMPLES
  $ databox billing invoices

  $ databox billing invoices --json

See code: src/commands/billing/invoices.ts

databox connection delete CONNECTIONID

Delete a connection

USAGE
  $ databox connection delete CONNECTIONID [--no-color] [--output table|json|csv | --json] [--verbose] [--force]

ARGUMENTS
  CONNECTIONID  The connection ID to delete

FLAGS
  --force            Skip confirmation prompt
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Delete a connection

EXAMPLES
  $ databox connection delete 12345

  $ databox connection delete 12345 --force

See code: src/commands/connection/delete.ts

databox connection get CONNECTIONID

Get connection details

USAGE
  $ databox connection get CONNECTIONID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  CONNECTIONID  The connection ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get connection details

  A connection you cannot see answers "not_found" (exit 1), as one that does not exist.

EXAMPLES
  $ databox connection get 12345

  $ databox connection get 12345 --json

See code: src/commands/connection/get.ts

databox connection list

List connections

USAGE
  $ databox connection list [--no-color] [--output table|json|csv | --json] [--verbose] [--all | --page <value>]
    [--page-size <value>] [--search <value>]

FLAGS
  --all                Fetch every page (100 items per request unless --page-size is given) and print them as one list
  --json               Output as JSON (shorthand for --output json)
  --no-color           Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>    [default: table] Output format
                       <options: table|json|csv>
  --page=<value>       Page number (0-indexed)
  --page-size=<value>  Number of items per page (max 100)
  --search=<value>     Search by connection name
  --verbose            Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List connections

  Admins see every connection; anyone else sees their own and those shared with them. With --account-id, an agency user
  sees the account's connections and the agency's connections shared with its accounts.

EXAMPLES
  $ databox connection list

  $ databox connection list --search google

  $ databox connection list --json

See code: src/commands/connection/list.ts

databox connection permissions CONNECTIONID

Show connection permissions

USAGE
  $ databox connection permissions CONNECTIONID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  CONNECTIONID  The connection ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Show connection permissions

  A connection you cannot see answers "not_found" (exit 1), as one that does not exist.

EXAMPLES
  $ databox connection permissions 12345

  $ databox connection permissions 12345 --json

See code: src/commands/connection/permissions.ts

databox connection set-permissions CONNECTIONID

Update connection permissions

USAGE
  $ databox connection set-permissions CONNECTIONID --access-level everyone|selectedUsers|private --shared-with-accounts
    [--no-color] [--output table|json|csv | --json] [--verbose] [--access-list <value>...]

ARGUMENTS
  CONNECTIONID  The connection ID

FLAGS
  --access-level=<option>      (required) Access level for the connection
                               <options: everyone|selectedUsers|private>
  --access-list=<value>...     User ID granted access, with --access-level selectedUsers (repeat for several). Each must
                               be a user of the organization (in a client account, also of its agency) or already on the
                               list; any other is rejected with invalid_input
  --json                       Output as JSON (shorthand for --output json)
  --no-color                   Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>            [default: table] Output format
                               <options: table|json|csv>
  --[no-]shared-with-accounts  (required) Share this connection with the accounts in your organization
                               (--no-shared-with-accounts to stop sharing)
  --verbose                    Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Update connection permissions

  --shared-with-accounts or --no-shared-with-accounts is required: the API replaces the sharing setting on every call,
  so leaving it out would silently un-share the connection.

EXAMPLES
  $ databox connection set-permissions 12345 --access-level everyone --shared-with-accounts

  $ databox connection set-permissions 12345 --access-level private --no-shared-with-accounts --json

  $ databox connection set-permissions 12345 --access-level selectedUsers --access-list 31 --no-shared-with-accounts

See code: src/commands/connection/set-permissions.ts

databox connection update CONNECTIONID

Update a connection

USAGE
  $ databox connection update CONNECTIONID [--no-color] [--output table|json|csv | --json] [--verbose] [--name <value>]

ARGUMENTS
  CONNECTIONID  The connection ID to update

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --name=<value>     New name for the connection
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Update a connection

EXAMPLES
  $ databox connection update 12345 --name "New Name"

  $ databox connection update 12345 --name "New Name" --json

See code: src/commands/connection/update.ts

databox data-source create

Create a new data source

USAGE
  $ databox data-source create --name <value> [--no-color] [--output table|json|csv | --json] [--verbose]
    [--idempotency-key <value>] [--integration-key <value>] [--timezone <value>]

FLAGS
  --idempotency-key=<value>  A UUID sent as the Idempotency-Key header: re-running the same command with the same key
                             and input within 24 hours returns the first response instead of repeating the action. The
                             same key with different input fails with idempotency_key_reused and does nothing
  --integration-key=<value>  Integration key for the data source (e.g., Datadoo)
  --json                     Output as JSON (shorthand for --output json)
  --name=<value>             (required) Name of the data source
  --no-color                 Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>          [default: table] Output format
                             <options: table|json|csv>
  --timezone=<value>         Timezone for the data source
  --verbose                  Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Create a new data source

  Requires the Admin, User or Editor role: a Viewer gets "forbidden" (exit 1).

EXAMPLES
  $ databox data-source create --name "My Data Source"

  $ databox data-source create --name "My Data Source" --timezone "US/Eastern"

  $ databox data-source create --name "My Data Source" --integration-key Datadoo

  $ databox data-source create --name "My Data Source" --json

See code: src/commands/data-source/create.ts

databox data-source datasets DATASOURCEID

List datasets for a data source

USAGE
  $ databox data-source datasets DATASOURCEID [--no-color] [--output table|json|csv | --json] [--verbose] [--all | --page
    <value>] [--page-size <value>] [--search <value>] [--sort-by name|createdAt|lastActivityAt] [--sort-order asc|desc]

ARGUMENTS
  DATASOURCEID  ID of the data source

FLAGS
  --all                  Fetch every page (100 items per request unless --page-size is given) and print them as one list
  --json                 Output as JSON (shorthand for --output json)
  --no-color             Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>      [default: table] Output format
                         <options: table|json|csv>
  --page=<value>         Page number (0-indexed)
  --page-size=<value>    Number of items per page (max 100)
  --search=<value>       Search by name
  --sort-by=<option>     Field to sort by
                         <options: name|createdAt|lastActivityAt>
  --sort-order=<option>  Sort direction
                         <options: asc|desc>
  --verbose              Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List datasets for a data source

EXAMPLES
  $ databox data-source datasets 12345

  $ databox data-source datasets 12345 --search "orders" --sort-by name

  $ databox data-source datasets 12345 --page 0 --page-size 10

  $ databox data-source datasets 12345 --json

See code: src/commands/data-source/datasets.ts

databox data-source delete DATASOURCEID

Delete a data source

USAGE
  $ databox data-source delete DATASOURCEID [--no-color] [--output table|json|csv | --json] [--verbose] [--force]

ARGUMENTS
  DATASOURCEID  ID of the data source to delete

FLAGS
  --force            Skip confirmation prompt
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Delete a data source

  Requires an admin or the data source's creator: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox data-source delete 12345

  $ databox data-source delete 12345 --force

See code: src/commands/data-source/delete.ts

databox data-source get DATASOURCEID

Get details of a data source

USAGE
  $ databox data-source get DATASOURCEID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASOURCEID  ID of the data source

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get details of a data source

EXAMPLES
  $ databox data-source get 12345

  $ databox data-source get 12345 --json

See code: src/commands/data-source/get.ts

databox data-source list

List all data sources

USAGE
  $ databox data-source list [--no-color] [--output table|json|csv | --json] [--verbose] [--connection-id <value>]
    [--all | --page <value>] [--page-size <value>] [--search <value>] [--sort-by name|createdAt|lastActivityAt]
    [--sort-order asc|desc]

FLAGS
  --all                    Fetch every page (100 items per request unless --page-size is given) and print them as one
                           list
  --connection-id=<value>  Filter by connection ID
  --json                   Output as JSON (shorthand for --output json)
  --no-color               Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>        [default: table] Output format
                           <options: table|json|csv>
  --page=<value>           Page number (0-indexed)
  --page-size=<value>      Number of items per page (max 100)
  --search=<value>         Search by name
  --sort-by=<option>       Field to sort by
                           <options: name|createdAt|lastActivityAt>
  --sort-order=<option>    Sort direction
                           <options: asc|desc>
  --verbose                Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List all data sources

EXAMPLES
  $ databox data-source list

  $ databox data-source list --search "Google"

  $ databox data-source list --sort-by lastActivityAt --sort-order desc

  $ databox data-source list --page 0 --page-size 10 --json

See code: src/commands/data-source/list.ts

databox data-source permissions DATASOURCEID

Show permissions for a data source

USAGE
  $ databox data-source permissions DATASOURCEID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASOURCEID  ID of the data source

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Show permissions for a data source

EXAMPLES
  $ databox data-source permissions 12345

  $ databox data-source permissions 12345 --json

See code: src/commands/data-source/permissions.ts

databox data-source purge DATASOURCEID

Purge all data from a data source

USAGE
  $ databox data-source purge DATASOURCEID [--no-color] [--output table|json|csv | --json] [--verbose] [--force]
    [--idempotency-key <value>]

ARGUMENTS
  DATASOURCEID  ID of the data source to purge

FLAGS
  --force                    Skip confirmation prompt
  --idempotency-key=<value>  A UUID sent as the Idempotency-Key header: re-running the same command with the same key
                             and input within 24 hours returns the first response instead of repeating the action. The
                             same key with different input fails with idempotency_key_reused and does nothing
  --json                     Output as JSON (shorthand for --output json)
  --no-color                 Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>          [default: table] Output format
                             <options: table|json|csv>
  --verbose                  Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Purge all data from a data source

  Requires an admin or the data source's creator: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox data-source purge 12345

  $ databox data-source purge 12345 --force

See code: src/commands/data-source/purge.ts

databox data-source set-permissions DATASOURCEID

Set permissions for a data source

USAGE
  $ databox data-source set-permissions DATASOURCEID --access-level everyone|selectedUsers|private [--no-color] [--output
    table|json|csv | --json] [--verbose] [--access-list <value>...]

ARGUMENTS
  DATASOURCEID  ID of the data source

FLAGS
  --access-level=<option>   (required) Access level
                            <options: everyone|selectedUsers|private>
  --access-list=<value>...  User ID granted access, with --access-level selectedUsers (repeat for several). Each must be
                            a user of the organization or already on the list; any other is rejected with invalid_input
  --json                    Output as JSON (shorthand for --output json)
  --no-color                Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>         [default: table] Output format
                            <options: table|json|csv>
  --verbose                 Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Set permissions for a data source

  everyone grants every user in the organization; selectedUsers grants only the users in --access-list; private grants
  no one explicitly. Admins and the organization owner always keep access.

  Requires an admin or the data source's creator: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox data-source set-permissions 12345 --access-level everyone

  $ databox data-source set-permissions 12345 --access-level selectedUsers --access-list 31 --access-list 42

  $ databox data-source set-permissions 12345 --access-level private

See code: src/commands/data-source/set-permissions.ts

databox data-source set-sync-frequency DATASOURCEID

Set the sync frequency for a data source

USAGE
  $ databox data-source set-sync-frequency DATASOURCEID --interval 1|15|60|240|360|480|1440 [--no-color] [--output table|json|csv |
    --json] [--verbose]

ARGUMENTS
  DATASOURCEID  ID of the data source

FLAGS
  --interval=<option>  (required) Sync interval in minutes
                       <options: 1|15|60|240|360|480|1440>
  --json               Output as JSON (shorthand for --output json)
  --no-color           Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>    [default: table] Output format
                       <options: table|json|csv>
  --verbose            Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Set the sync frequency for a data source

  Prints a confirmation; --json or --output csv prints the updated data source instead. Run "data-source
  sync-frequency-options" to see which intervals your plan includes.

  Requires the Admin, User or Editor role: a Viewer gets "forbidden" (exit 1).

EXAMPLES
  $ databox data-source set-sync-frequency 12345 --interval 60

  $ databox data-source set-sync-frequency 12345 --interval 1440 --json

See code: src/commands/data-source/set-sync-frequency.ts

databox data-source set-timezone DATASOURCEID

Set the timezone for a data source

USAGE
  $ databox data-source set-timezone DATASOURCEID --timezone <value> [--no-color] [--output table|json|csv | --json]
    [--verbose] [--apply-to-datasets] [--purge-data]

ARGUMENTS
  DATASOURCEID  ID of the data source

FLAGS
  --apply-to-datasets  Apply the timezone to the datasets too
  --json               Output as JSON (shorthand for --output json)
  --no-color           Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>    [default: table] Output format
                       <options: table|json|csv>
  --purge-data         Purge existing data when changing the timezone
  --timezone=<value>   (required) Timezone value
  --verbose            Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Set the timezone for a data source

  Prints a confirmation; --json or --output csv prints the updated data source instead.

  Requires an admin or the data source's creator: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox data-source set-timezone 12345 --timezone "US/Eastern"

  $ databox data-source set-timezone 12345 --timezone "Europe/London" --apply-to-datasets --json

See code: src/commands/data-source/set-timezone.ts

databox data-source sync-frequency-options DATASOURCEID

List the sync frequencies a data source can be set to, and which your plan includes

USAGE
  $ databox data-source sync-frequency-options DATASOURCEID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASOURCEID  ID of the data source

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List the sync frequencies a data source can be set to, and which your plan includes

EXAMPLES
  $ databox data-source sync-frequency-options 12345

  $ databox data-source sync-frequency-options 12345 --json

See code: src/commands/data-source/sync-frequency-options.ts

databox data-source update DATASOURCEID

Update a data source

USAGE
  $ databox data-source update DATASOURCEID --name <value> [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASOURCEID  ID of the data source to update

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --name=<value>     (required) New name for the data source
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Update a data source

  Requires the Admin, User or Editor role: a Viewer gets "forbidden" (exit 1).

EXAMPLES
  $ databox data-source update 12345 --name "New Name"

  $ databox data-source update 12345 --name "New Name" --json

See code: src/commands/data-source/update.ts

databox databoard list

List databoards

USAGE
  $ databox databoard list [--no-color] [--output table|json|csv | --json] [--verbose] [--all | --page <value>]
    [--page-size <value>] [--search <value>]

FLAGS
  --all                Fetch every page (100 items per request unless --page-size is given) and print them as one list
  --json               Output as JSON (shorthand for --output json)
  --no-color           Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>    [default: table] Output format
                       <options: table|json|csv>
  --page=<value>       Page number (0-indexed)
  --page-size=<value>  Number of items per page (max 100)
  --search=<value>     Search by databoard name
  --verbose            Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List databoards

EXAMPLES
  $ databox databoard list

  $ databox databoard list --search marketing

  $ databox databoard list --json

See code: src/commands/databoard/list.ts

databox databoard metrics DATABOARDID

Get the metrics on a databoard

USAGE
  $ databox databoard metrics DATABOARDID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATABOARDID  The databoard ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get the metrics on a databoard

  One row per metric on each datablock; a datablock without metrics gets one row of its own. --json returns the whole
  response, including each metric's applied filters, which "metric drilldown --filters" accepts as they are.

EXAMPLES
  $ databox databoard metrics 12345

  $ databox databoard metrics 12345 --json

See code: src/commands/databoard/metrics.ts

databox dataset clear-modifications DATASETID

Clear all modifications from a dataset

USAGE
  $ databox dataset clear-modifications DATASETID [--no-color] [--output table|json|csv | --json] [--verbose] [--force]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --force            Skip confirmation prompt
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Clear all modifications from a dataset

  Requires an admin or the dataset's creator: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox dataset clear-modifications 12345

  $ databox dataset clear-modifications 12345 --force

See code: src/commands/dataset/clear-modifications.ts

databox dataset column-metadata DATASETID

Get column metadata for a dataset

USAGE
  $ databox dataset column-metadata DATASETID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get column metadata for a dataset

EXAMPLES
  $ databox dataset column-metadata 12345

  $ databox dataset column-metadata 12345 --json

See code: src/commands/dataset/column-metadata.ts

databox dataset create

Create a new dataset

USAGE
  $ databox dataset create --data-source-id <value> --name <value> [--no-color] [--output table|json|csv | --json]
    [--verbose] [--idempotency-key <value>] [--primary-key <value>...] [--schema <value>]

FLAGS
  --data-source-id=<value>   (required) ID of the data source to associate with
  --idempotency-key=<value>  A UUID sent as the Idempotency-Key header: re-running the same command with the same key
                             and input within 24 hours returns the first response instead of repeating the action. The
                             same key with different input fails with idempotency_key_reused and does nothing
  --json                     Output as JSON (shorthand for --output json)
  --name=<value>             (required) Name of the dataset
  --no-color                 Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>          [default: table] Output format
                             <options: table|json|csv>
  --primary-key=<value>...   Primary key column ids
  --schema=<value>           JSON array of schema columns, each {id, dataType} with dataType one of string, number,
                             datetime
  --verbose                  Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Create a new dataset

  Requires an admin or the data source's creator: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox dataset create --name "My Dataset" --data-source-id 123

  $ databox dataset create --name "My Dataset" --data-source-id 123 --primary-key date --primary-key campaign

  $ databox dataset create --name "My Dataset" --data-source-id 123 --schema '[{"id":"date","dataType":"datetime"},{"id":"value","dataType":"number"}]'

  $ databox dataset create --name "My Dataset" --data-source-id 123 --json

See code: src/commands/dataset/create.ts

databox dataset data DATASETID

Get data from a dataset

USAGE
  $ databox dataset data DATASETID [--no-color] [--output table|json|csv | --json] [--verbose] [--all | --page
    <value>] [--page-size <value>] [--sort-by <value>] [--sort-order asc|desc]

ARGUMENTS
  DATASETID  The dataset ID to get data from

FLAGS
  --all                  Fetch every page (100 items per request unless --page-size is given) and print them as one list
  --json                 Output as JSON (shorthand for --output json)
  --no-color             Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>      [default: table] Output format
                         <options: table|json|csv>
  --page=<value>         Page number (0-indexed)
  --page-size=<value>    Number of items per page (max 1000)
  --sort-by=<value>      Field to sort by
  --sort-order=<option>  Sort direction
                         <options: asc|desc>
  --verbose              Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get data from a dataset

  Columns follow the dataset schema: in its order, headed by display name, without the columns a modification hid.
  --json returns the whole response: the rows under "items", with "schema" and "lastUpdatedAt".

EXAMPLES
  $ databox dataset data 12345

  $ databox dataset data 12345 --page 0 --page-size 10

  $ databox dataset data 12345 --sort-by amount --sort-order desc

  $ databox dataset data 12345 --output csv > rows.csv

  $ databox dataset data 12345 --json

See code: src/commands/dataset/data.ts

databox dataset delete DATASETID

Delete a dataset

USAGE
  $ databox dataset delete DATASETID [--no-color] [--output table|json|csv | --json] [--verbose] [--force]

ARGUMENTS
  DATASETID  The dataset ID to delete

FLAGS
  --force            Skip confirmation prompt
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Delete a dataset

  Requires an admin or the dataset's creator: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox dataset delete 12345

  $ databox dataset delete 12345 --force

See code: src/commands/dataset/delete.ts

databox dataset duplicate DATASETID

Duplicate a dataset (not supported for datasets created through the API)

USAGE
  $ databox dataset duplicate DATASETID [--no-color] [--output table|json|csv | --json] [--verbose] [--idempotency-key
    <value>] [--name <value>]

ARGUMENTS
  DATASETID  The dataset ID to duplicate

FLAGS
  --idempotency-key=<value>  A UUID sent as the Idempotency-Key header: re-running the same command with the same key
                             and input within 24 hours returns the first response instead of repeating the action. The
                             same key with different input fails with idempotency_key_reused and does nothing
  --json                     Output as JSON (shorthand for --output json)
  --name=<value>             Name for the duplicate (defaults to a server-generated name)
  --no-color                 Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>          [default: table] Output format
                             <options: table|json|csv>
  --verbose                  Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Duplicate a dataset (not supported for datasets created through the API)

  Requires an admin or the dataset's creator: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox dataset duplicate 12345

  $ databox dataset duplicate 12345 --json

See code: src/commands/dataset/duplicate.ts

databox dataset get DATASETID

Get details of a specific dataset

USAGE
  $ databox dataset get DATASETID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASETID  The dataset ID to retrieve

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get details of a specific dataset

EXAMPLES
  $ databox dataset get 12345

  $ databox dataset get 12345 --json

See code: src/commands/dataset/get.ts

databox dataset ingest DATASETID

Ingest data into a dataset

USAGE
  $ databox dataset ingest DATASETID [--no-color] [--output table|json|csv | --json] [--verbose] [--file <value> |
    --records <value>] [--idempotency-key <value>]

ARGUMENTS
  DATASETID  The dataset ID to ingest data into

FLAGS
  --file=<value>             Path to a JSON file holding an array of records (at least one record)
  --idempotency-key=<value>  A UUID sent as the Idempotency-Key header: re-running the same command with the same key
                             and input within 24 hours returns the first response instead of repeating the action. The
                             same key with different input fails with idempotency_key_reused and does nothing
  --json                     Output as JSON (shorthand for --output json)
  --no-color                 Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>          [default: table] Output format
                             <options: table|json|csv>
  --records=<value>          Inline JSON array of records (at least one record)
  --verbose                  Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Ingest data into a dataset

EXAMPLES
  $ databox dataset ingest 12345 --records '[{"date":"2024-01-01","value":42}]'

  $ databox dataset ingest 12345 --file ./data.json

  cat data.json | databox dataset ingest 12345

  $ databox dataset ingest 12345 --records '[{"date":"2024-01-01","value":42}]' --json

See code: src/commands/dataset/ingest.ts

databox dataset ingestion DATASETID INGESTIONID

Get details of a specific ingestion

USAGE
  $ databox dataset ingestion DATASETID INGESTIONID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASETID    The dataset ID
  INGESTIONID  The ingestion ID to retrieve

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get details of a specific ingestion

EXAMPLES
  $ databox dataset ingestion 12345 3c63e510-276f-4541-9c66-8c00161fda82

  $ databox dataset ingestion 12345 3c63e510-276f-4541-9c66-8c00161fda82 --json

See code: src/commands/dataset/ingestion.ts

databox dataset ingestion-statistics DATASETID

Get ingestion statistics for a dataset

USAGE
  $ databox dataset ingestion-statistics DATASETID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get ingestion statistics for a dataset

EXAMPLES
  $ databox dataset ingestion-statistics 12345

  $ databox dataset ingestion-statistics 12345 --json

See code: src/commands/dataset/ingestion-statistics.ts

databox dataset ingestions DATASETID

List ingestions for a dataset

USAGE
  $ databox dataset ingestions DATASETID [--no-color] [--output table|json|csv | --json] [--verbose] [--all | --page
    <value>] [--page-size <value>]

ARGUMENTS
  DATASETID  The dataset ID to list ingestions for

FLAGS
  --all                Fetch every page (100 items per request unless --page-size is given) and print them as one list
  --json               Output as JSON (shorthand for --output json)
  --no-color           Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>    [default: table] Output format
                       <options: table|json|csv>
  --page=<value>       Page number (0-indexed)
  --page-size=<value>  Number of items per page (max 100)
  --verbose            Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List ingestions for a dataset

EXAMPLES
  $ databox dataset ingestions 12345

  $ databox dataset ingestions 12345 --page 0 --page-size 20

  $ databox dataset ingestions 12345 --json

See code: src/commands/dataset/ingestions.ts

databox dataset lineage DATASETID

Show dataset lineage (parents and children)

USAGE
  $ databox dataset lineage DATASETID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Show dataset lineage (parents and children)

  Parents are the data sources and datasets this dataset is built from; children are the datasets and metrics built from
  it. Type is dataSource, dataset, mergedDataset, basicMetric or customMetric. A metric's ID is its key, so IDs are
  strings.

EXAMPLES
  $ databox dataset lineage 12345

  $ databox dataset lineage 12345 --json

See code: src/commands/dataset/lineage.ts

databox dataset list

List datasets

USAGE
  $ databox dataset list [--no-color] [--output table|json|csv | --json] [--verbose] [--data-source-id <value>]
    [--all | --page <value>] [--page-size <value>] [--search <value>] [--sort-by name|createdAt|lastActivityAt]
    [--sort-order asc|desc]

FLAGS
  --all                     Fetch every page (100 items per request unless --page-size is given) and print them as one
                            list
  --data-source-id=<value>  Filter by data source ID
  --json                    Output as JSON (shorthand for --output json)
  --no-color                Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>         [default: table] Output format
                            <options: table|json|csv>
  --page=<value>            Page number (0-indexed)
  --page-size=<value>       Number of items per page (max 100)
  --search=<value>          Search by name
  --sort-by=<option>        Field to sort by
                            <options: name|createdAt|lastActivityAt>
  --sort-order=<option>     Sort direction
                            <options: asc|desc>
  --verbose                 Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List datasets

EXAMPLES
  $ databox dataset list

  $ databox dataset list --search "revenue"

  $ databox dataset list --sort-by lastActivityAt --sort-order desc

  $ databox dataset list --page 0 --page-size 10

  $ databox dataset list --json

See code: src/commands/dataset/list.ts

databox dataset metadata DATASETID

Get metadata for a dataset

USAGE
  $ databox dataset metadata DATASETID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get metadata for a dataset

EXAMPLES
  $ databox dataset metadata 12345

  $ databox dataset metadata 12345 --json

See code: src/commands/dataset/metadata.ts

databox dataset modification-functions

List the functions available to modification formulas

USAGE
  $ databox dataset modification-functions [--no-color] [--output table|json|csv | --json] [--verbose]

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List the functions available to modification formulas

  --json also includes each function's parameters and an example.

EXAMPLES
  $ databox dataset modification-functions

  $ databox dataset modification-functions --json

See code: src/commands/dataset/modification-functions.ts

databox dataset modification-rules

List the filter operators and type conversions modifications accept

USAGE
  $ databox dataset modification-rules [--no-color] [--output table|json|csv | --json] [--verbose]

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List the filter operators and type conversions modifications accept

  Filter operators are what "filters" conditions take as "type", per column type. Type conversions are what "dataTypes"
  accepts as "outputLogicalType" (and "inputFormat"), per current column type, followed by the output formats and
  scales.

EXAMPLES
  $ databox dataset modification-rules

  $ databox dataset modification-rules --json

See code: src/commands/dataset/modification-rules.ts

databox dataset modifications DATASETID

Show a dataset's modification definition

USAGE
  $ databox dataset modifications DATASETID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Show a dataset's modification definition

  The table has one row per column, in the dataset's column order. --json returns the definition as the API does:
  {filters, formulas, displayNames, dataTypes, order, visibility}, the input "dataset update-modification" takes.

EXAMPLES
  $ databox dataset modifications 12345

  $ databox dataset modifications 12345 --json

See code: src/commands/dataset/modifications.ts

databox dataset permissions DATASETID

Get permissions for a dataset

USAGE
  $ databox dataset permissions DATASETID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get permissions for a dataset

EXAMPLES
  $ databox dataset permissions 12345

  $ databox dataset permissions 12345 --json

See code: src/commands/dataset/permissions.ts

databox dataset preview-modification DATASETID

Preview a dataset modification without saving it

USAGE
  $ databox dataset preview-modification DATASETID --data <value> [--no-color] [--output table|json|csv | --json] [--verbose]
    [--sort-by <value>] [--sort-order asc|desc]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --data=<value>         (required) JSON modification definition to preview: filters, formulas, displayNames, dataTypes,
                         order, visibility
  --json                 Output as JSON (shorthand for --output json)
  --no-color             Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>      [default: table] Output format
                         <options: table|json|csv>
  --sort-by=<value>      Field to sort by
  --sort-order=<option>  Sort direction
                         <options: asc|desc>
  --verbose              Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Preview a dataset modification without saving it

  --data takes the same definition as "dataset update-modification". The preview is a sample, not a paged read: it shows
  up to 200 rows and how many matched in all. Use "dataset data" to page through a dataset. --json returns the whole
  response: {items, pagination: {totalItems}, schema}.

EXAMPLES
  $ databox dataset preview-modification 12345 --data '{"filters":{"amount":{"logicalOperator":"AND","conditions":[{"type":"greater_than","value":100}]}}}'

  $ databox dataset preview-modification 12345 --data '{"formulas":{"totalWithTax":"$amount * 1.2"}}' --sort-by totalWithTax --sort-order desc

  $ databox dataset preview-modification 12345 --data '{"displayNames":{"amount":"Revenue"}}' --json

See code: src/commands/dataset/preview-modification.ts

databox dataset purge DATASETID

Purge all data from a dataset

USAGE
  $ databox dataset purge DATASETID [--no-color] [--output table|json|csv | --json] [--verbose] [--force]
    [--idempotency-key <value>]

ARGUMENTS
  DATASETID  The dataset ID to purge data from

FLAGS
  --force                    Skip confirmation prompt
  --idempotency-key=<value>  A UUID sent as the Idempotency-Key header: re-running the same command with the same key
                             and input within 24 hours returns the first response instead of repeating the action. The
                             same key with different input fails with idempotency_key_reused and does nothing
  --json                     Output as JSON (shorthand for --output json)
  --no-color                 Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>          [default: table] Output format
                             <options: table|json|csv>
  --verbose                  Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Purge all data from a dataset

  Requires an admin or the dataset's creator: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox dataset purge 12345

  $ databox dataset purge 12345 --force

See code: src/commands/dataset/purge.ts

databox dataset schema DATASETID

Get the schema of a dataset

USAGE
  $ databox dataset schema DATASETID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get the schema of a dataset

  The table is followed by the primary key: "n/a" for a dataset that cannot have one, "none" for an ingestion dataset
  created without one. --json returns the whole response, {items, primaryKey}.

EXAMPLES
  $ databox dataset schema 12345

  $ databox dataset schema 12345 --json

See code: src/commands/dataset/schema.ts

databox dataset set-column-metadata DATASETID

Update column metadata for a dataset

USAGE
  $ databox dataset set-column-metadata DATASETID --columns <value> [--no-color] [--output table|json|csv | --json]
  [--verbose]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --columns=<value>  (required) JSON array of at least one column metadata update ({id, description?, conceptType?,
                     synonyms?})
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Update column metadata for a dataset

  --columns takes at least one column. Each column is {id, description?, conceptType?, synonyms?}. conceptType is
  measure, dimension or timeDimension; synonyms is an array of alternative names. Display names are not set here: rename
  a column through "dataset update-modification" (displayNames). Prints the dataset's column metadata after the update.

  Requires an admin or the dataset's creator: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox dataset set-column-metadata 12345 --columns '[{"id":"revenue","description":"Order value in USD","conceptType":"measure"}]'

  $ databox dataset set-column-metadata 12345 --columns '[{"id":"country","conceptType":"dimension","synonyms":["nation","market"]}]' --json

See code: src/commands/dataset/set-column-metadata.ts

databox dataset set-metadata DATASETID

Update metadata for a dataset

USAGE
  $ databox dataset set-metadata DATASETID [--no-color] [--output table|json|csv | --json] [--verbose]
    [--default-time-dimension <value>] [--description <value>] [--synonyms <value>]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --default-time-dimension=<value>  ID of a datetime column to use as the default time dimension
  --description=<value>             Dataset description
  --json                            Output as JSON (shorthand for --output json)
  --no-color                        Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>                 [default: table] Output format
                                    <options: table|json|csv>
  --synonyms=<value>                JSON array of synonyms
  --verbose                         Print each request and response (method, URL, status, duration, request ID) to
                                    stderr

DESCRIPTION
  Update metadata for a dataset

  Requires an admin or the dataset's creator: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox dataset set-metadata 12345 --description "Revenue tracking"

  $ databox dataset set-metadata 12345 --synonyms '["finance","quarterly"]'

  $ databox dataset set-metadata 12345 --default-time-dimension order_date

See code: src/commands/dataset/set-metadata.ts

databox dataset set-permissions DATASETID

Set permissions for a dataset

USAGE
  $ databox dataset set-permissions DATASETID --access-level everyone|selectedUsers|private [--no-color] [--output
    table|json|csv | --json] [--verbose] [--access-list <value>...]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --access-level=<option>   (required) Access level
                            <options: everyone|selectedUsers|private>
  --access-list=<value>...  User ID granted access, with --access-level selectedUsers (repeat for several). Each must be
                            a user of the organization or already on the list; any other is rejected with invalid_input
  --json                    Output as JSON (shorthand for --output json)
  --no-color                Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>         [default: table] Output format
                            <options: table|json|csv>
  --verbose                 Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Set permissions for a dataset

  everyone grants every user in the organization; selectedUsers grants only the users in --access-list; private grants
  no one explicitly. Admins and the organization owner always keep access.

  Requires an admin or the dataset's creator: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox dataset set-permissions 12345 --access-level everyone

  $ databox dataset set-permissions 12345 --access-level selectedUsers --access-list 31 --access-list 42

  $ databox dataset set-permissions 12345 --access-level private

See code: src/commands/dataset/set-permissions.ts

databox dataset set-sync-frequency DATASETID

Set the sync frequency for a dataset

USAGE
  $ databox dataset set-sync-frequency DATASETID --interval 1|15|60|240|360|480|1440 [--no-color] [--output table|json|csv |
    --json] [--verbose]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --interval=<option>  (required) Sync interval in minutes
                       <options: 1|15|60|240|360|480|1440>
  --json               Output as JSON (shorthand for --output json)
  --no-color           Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>    [default: table] Output format
                       <options: table|json|csv>
  --verbose            Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Set the sync frequency for a dataset

  Prints a confirmation; --json or --output csv prints the updated dataset instead. Run "dataset sync-frequency-options"
  to see which intervals your plan includes.

  Requires the Admin, User or Editor role: a Viewer gets "forbidden" (exit 1).

EXAMPLES
  $ databox dataset set-sync-frequency 12345 --interval 60

  $ databox dataset set-sync-frequency 12345 --interval 1440 --json

See code: src/commands/dataset/set-sync-frequency.ts

databox dataset set-timezone DATASETID

Set the timezone for a dataset

USAGE
  $ databox dataset set-timezone DATASETID --timezone <value> [--no-color] [--output table|json|csv | --json] [--verbose]
    [--purge-data]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --json              Output as JSON (shorthand for --output json)
  --no-color          Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>   [default: table] Output format
                      <options: table|json|csv>
  --purge-data        Purge existing data when changing the timezone
  --timezone=<value>  (required) Timezone to set
  --verbose           Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Set the timezone for a dataset

  Prints a confirmation; --json or --output csv prints the updated dataset instead.

  Requires an admin or the dataset's creator: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox dataset set-timezone 12345 --timezone "US/Eastern"

  $ databox dataset set-timezone 12345 --timezone "Europe/London" --json

See code: src/commands/dataset/set-timezone.ts

databox dataset set-verification DATASETID

Set verification status for a dataset

USAGE
  $ databox dataset set-verification DATASETID --status verified|unverified [--no-color] [--output table|json|csv | --json]
    [--verbose]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --status=<option>  (required) Verification status
                     <options: verified|unverified>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Set verification status for a dataset

  Prints a confirmation; --json or --output csv prints the resulting verification (isVerified, verifiedAt, verifiedBy)
  instead.

  Requires an admin or the dataset's creator: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox dataset set-verification 12345 --status verified

  $ databox dataset set-verification 12345 --status unverified --json

See code: src/commands/dataset/set-verification.ts

databox dataset sync-frequency-options DATASETID

List the sync frequencies a dataset can be set to, and which your plan includes

USAGE
  $ databox dataset sync-frequency-options DATASETID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List the sync frequencies a dataset can be set to, and which your plan includes

EXAMPLES
  $ databox dataset sync-frequency-options 12345

  $ databox dataset sync-frequency-options 12345 --json

See code: src/commands/dataset/sync-frequency-options.ts

databox dataset sync-history DATASETID

Show sync history for a dataset

USAGE
  $ databox dataset sync-history DATASETID [--no-color] [--output table|json|csv | --json] [--verbose] [--all | --page
    <value>] [--page-size <value>]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --all                Fetch every page (100 items per request unless --page-size is given) and print them as one list
  --json               Output as JSON (shorthand for --output json)
  --no-color           Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>    [default: table] Output format
                       <options: table|json|csv>
  --page=<value>       Page number (0-indexed)
  --page-size=<value>  Number of items per page (max 100)
  --verbose            Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Show sync history for a dataset

EXAMPLES
  $ databox dataset sync-history 12345

  $ databox dataset sync-history 12345 --page 0 --page-size 10

  $ databox dataset sync-history 12345 --json

See code: src/commands/dataset/sync-history.ts

databox dataset sync-statistics DATASETID

Show sync history statistics for a dataset

USAGE
  $ databox dataset sync-statistics DATASETID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Show sync history statistics for a dataset

EXAMPLES
  $ databox dataset sync-statistics 12345

  $ databox dataset sync-statistics 12345 --json

See code: src/commands/dataset/sync-statistics.ts

databox dataset update DATASETID

Update a dataset

USAGE
  $ databox dataset update DATASETID [--no-color] [--output table|json|csv | --json] [--verbose] [--name <value>]

ARGUMENTS
  DATASETID  The dataset ID to update

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --name=<value>     New name for the dataset
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Update a dataset

  Requires the Admin, User or Editor role: a Viewer gets "forbidden" (exit 1).

EXAMPLES
  $ databox dataset update 12345 --name "New Name"

  $ databox dataset update 12345 --name "New Name" --json

See code: src/commands/dataset/update.ts

databox dataset update-modification DATASETID

Create or replace a dataset's modification

USAGE
  $ databox dataset update-modification DATASETID --data <value> [--no-color] [--output table|json|csv | --json] [--verbose]
    [--idempotency-key <value>]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --data=<value>             (required) JSON modification definition: filters, formulas, displayNames, dataTypes, order,
                             visibility
  --idempotency-key=<value>  A UUID sent as the Idempotency-Key header: re-running the same command with the same key
                             and input within 24 hours returns the first response instead of repeating the action. The
                             same key with different input fails with idempotency_key_reused and does nothing
  --json                     Output as JSON (shorthand for --output json)
  --no-color                 Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>          [default: table] Output format
                             <options: table|json|csv>
  --verbose                  Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Create or replace a dataset's modification

  This replaces the whole definition: a field left out of --data is cleared, not kept. To change part of it, start from
  "dataset modifications <id> --json" and send it back edited.

  --data takes any of these keys:
  - filters: per column, {"logicalOperator": "AND", "conditions": [{"type": "greater_than", "value": 100}]}
  - formulas: computed columns, {"<col>": "$amount * 1.2"}
  - displayNames: column renames, {"<col>": "Revenue"}
  - dataTypes: per column, {"outputLogicalType": "currency", "inputFormat": ..., "outputFormat": {"type": ..., "scale":
  ...}}, the last two optional
  - order: column IDs in display order
  - visibility: {"<col>": false} hides a column

  Prints the saved definition, one row per column as "dataset modifications" does.

  "dataset modification-rules" lists the filter operators and type conversions each column type accepts; "dataset
  modification-functions" lists the formula functions.

  Requires an admin or the dataset's creator: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox dataset update-modification 12345 --data '{"filters":{"amount":{"logicalOperator":"AND","conditions":[{"type":"greater_than","value":100}]}}}'

  $ databox dataset update-modification 12345 --data '{"formulas":{"totalWithTax":"$amount * 1.2"},"displayNames":{"amount":"Revenue"}}'

  $ databox dataset update-modification 12345 --data '{"dataTypes":{"amount":{"outputLogicalType":"currency"}},"visibility":{"orderId":false}}' --json

See code: src/commands/dataset/update-modification.ts

databox dataset verification DATASETID

Get verification status for a dataset

USAGE
  $ databox dataset verification DATASETID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  DATASETID  The dataset ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get verification status for a dataset

EXAMPLES
  $ databox dataset verification 12345

  $ databox dataset verification 12345 --json

See code: src/commands/dataset/verification.ts

databox help [COMMAND]

Display help for databox.

USAGE
  $ databox help [COMMAND...] [-n]

ARGUMENTS
  [COMMAND...]  Command to show help for.

FLAGS
  -n, --nested-commands  Include all nested commands in the output.

DESCRIPTION
  Display help for databox.

See code: @oclif/plugin-help

databox integration get INTEGRATIONID

Get integration details

USAGE
  $ databox integration get INTEGRATIONID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  INTEGRATIONID  The integration ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get integration details

EXAMPLES
  $ databox integration get 101

  $ databox integration get 101 --json

See code: src/commands/integration/get.ts

databox integration list

List available integrations

USAGE
  $ databox integration list [--no-color] [--output table|json|csv | --json] [--verbose] [--all | --page <value>]
    [--page-size <value>] [--search <value>] [--sort-by name] [--sort-order asc|desc]

FLAGS
  --all                  Fetch every page (100 items per request unless --page-size is given) and print them as one list
  --json                 Output as JSON (shorthand for --output json)
  --no-color             Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>      [default: table] Output format
                         <options: table|json|csv>
  --page=<value>         Page number (0-indexed)
  --page-size=<value>    Number of items per page (max 100)
  --search=<value>       Search by integration name
  --sort-by=<option>     Field to sort by
                         <options: name>
  --sort-order=<option>  Sort direction
                         <options: asc|desc>
  --verbose              Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List available integrations

EXAMPLES
  $ databox integration list

  $ databox integration list --search google

  $ databox integration list --json

See code: src/commands/integration/list.ts

databox metric create

Create a custom metric on a dataset

USAGE
  $ databox metric create --dataset-id <value> --date <value> --measure <value> --name <value> [--no-color]
    [--output table|json|csv | --json] [--verbose] [--aggregation-function sum|avg|min|max|count] [--dimension
    <value>...] [--filters <value>] [--idempotency-key <value>]

FLAGS
  --aggregation-function=<option>  [default: sum] Aggregation applied to the measure
                                   <options: sum|avg|min|max|count>
  --dataset-id=<value>             (required) Dataset ID to create the metric on (a dataset, not a data source)
  --date=<value>                   (required) Date column reference as JSON ({"id":"amount","displayName":"Amount"})
  --dimension=<value>...           Dimension column reference as JSON ({"id":"amount","displayName":"Amount"}); repeat
                                   for several
  --filters=<value>                Filters as JSON: {logicalOperator: and|or, conditions: [{field, operator, values}]},
                                   e.g. {"logicalOperator":"and","conditions":[{"field":"country","operator":"ANY_OF","v
                                   alues":["US","UK"]}]}
  --idempotency-key=<value>        A UUID sent as the Idempotency-Key header: re-running the same command with the same
                                   key and input within 24 hours returns the first response instead of repeating the
                                   action. The same key with different input fails with idempotency_key_reused and does
                                   nothing
  --json                           Output as JSON (shorthand for --output json)
  --measure=<value>                (required) Measure column reference as JSON ({"id":"amount","displayName":"Amount"})
  --name=<value>                   (required) Name of the metric
  --no-color                       Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>                [default: table] Output format
                                   <options: table|json|csv>
  --verbose                        Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Create a custom metric on a dataset

  Column references are {"id","displayName"}, with the id taken from "dataset schema". --filters is one group of
  conditions with a shared logicalOperator (and or or). Prints the new metric as "metric get" does.

EXAMPLES
  $ databox metric create --name "Revenue" --dataset-id 123 --measure '{"id":"amount","displayName":"Amount"}' --date '{"id":"created_at","displayName":"Created At"}'

  $ databox metric create --name "Revenue by country" --dataset-id 123 --measure '{"id":"amount","displayName":"Amount"}' --date '{"id":"created_at","displayName":"Created At"}' --aggregation-function avg --dimension '{"id":"country","displayName":"Country"}'

  $ databox metric create --name "US revenue" --dataset-id 123 --measure '{"id":"amount","displayName":"Amount"}' --date '{"id":"created_at","displayName":"Created At"}' --filters '{"logicalOperator":"and","conditions":[{"field":"country","operator":"ANY_OF","values":["US","UK"]}]}' --json

See code: src/commands/metric/create.ts

databox metric delete METRICID

Delete a metric

USAGE
  $ databox metric delete METRICID [--no-color] [--output table|json|csv | --json] [--verbose] [--force]

ARGUMENTS
  METRICID  The metric ID to delete

FLAGS
  --force            Skip confirmation prompt
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Delete a metric

EXAMPLES
  $ databox metric delete "500|custom_query_100"

  $ databox metric delete "500|custom_query_100" --force

See code: src/commands/metric/delete.ts

databox metric dimension-values

Get the values of a metric's dimension

USAGE
  $ databox metric dimension-values --dimension-id <value> --metric-id <value> --source-id <value> [--no-color] [--output
    table|json|csv | --json] [--verbose]

FLAGS
  --dimension-id=<value>  (required) Dimension id to list the values of
  --json                  Output as JSON (shorthand for --output json)
  --metric-id=<value>     (required) Metric ID
  --no-color              Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>       [default: table] Output format
                          <options: table|json|csv>
  --source-id=<value>     (required) The data source or dataset the metric belongs to (the sourceId shown by "metric
                          list")
  --verbose               Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get the values of a metric's dimension

  --dimension-id is a dimension id from "metric get" or "metric list". It takes one: the API accepts a list but only
  honours the first entry. An unknown dimension is rejected with the metric's available dimensions.

EXAMPLES
  $ databox metric dimension-values --metric-id "500|custom_query_100" --source-id 500 --dimension-id country

  $ databox metric dimension-values --metric-id "GoogleAnalytics4@sessions" --source-id 42 --dimension-id country --json

See code: src/commands/metric/dimension-values.ts

databox metric drilldown

Get the rows behind a metric's value

USAGE
  $ databox metric drilldown --end-timestamp <value> --metric-id <value> --start-timestamp <value> [--no-color]
    [--output table|json|csv | --json] [--verbose] [--dimension-id <value>...] [--filters <value>] [--all | --page
    <value>] [--page-size <value>] [--sort-by <value>] [--sort-order asc|desc] [--source-id <value>]

FLAGS
  --all                      Fetch every page (100 items per request unless --page-size is given) and print them as one
                             list
  --dimension-id=<value>...  Dimension id the metric is broken down by (repeat for several)
  --end-timestamp=<value>    (required) End of the period (Unix timestamp, seconds)
  --filters=<value>          Filters as JSON: {logicalOperator, groups: [{logicalOperator, conditions: [{type, field,
                             operator, values}]}]}, e.g. {"logicalOperator":"AND","groups":[{"logicalOperator":"AND","co
                             nditions":[{"type":"dimension","field":"country","operator":"ANY_OF","values":["US"]}]}]}
  --json                     Output as JSON (shorthand for --output json)
  --metric-id=<value>        (required) Metric ID
  --no-color                 Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>          [default: table] Output format
                             <options: table|json|csv>
  --page=<value>             Page number (0-indexed)
  --page-size=<value>        Number of items per page (max 1000)
  --sort-by=<value>          Field to sort by
  --sort-order=<option>      Sort direction
                             <options: asc|desc>
  --source-id=<value>        The dataset the metric is built on. Defaults to the part of --metric-id before "|"; if
                             given, it must match it
  --start-timestamp=<value>  (required) Start of the period (Unix timestamp, seconds)
  --verbose                  Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get the rows behind a metric's value

  Only dataset-based custom metrics support drilldown; check "Drilldown" in "metric list" or "metric get". The dataset
  is taken from the metric ID (the part before "|"), so --source-id is only needed to state it explicitly. To reproduce
  what a databoard shows, pass the same --dimension-id and --filters its datablock uses ("databoard metrics" reports
  both); without them you get every row in the period. Columns follow the response schema, headed by display name;
  --sort-by takes a column id. --json returns the whole response: the rows under "items", with "schema" and
  "pagination".

EXAMPLES
  $ databox metric drilldown --metric-id "500|custom_query_100" --start-timestamp 1704067200 --end-timestamp 1706745600

  $ databox metric drilldown --metric-id "500|custom_query_100" --start-timestamp 1704067200 --end-timestamp 1706745600 --dimension-id country --sort-by amount --sort-order desc

  $ databox metric drilldown --metric-id "500|custom_query_100" --start-timestamp 1704067200 --end-timestamp 1706745600 --filters '{"logicalOperator":"AND","groups":[{"logicalOperator":"AND","conditions":[{"type":"dimension","field":"country","operator":"ANY_OF","values":["US"]}]}]}' --json

See code: src/commands/metric/drilldown.ts

databox metric get METRICID

Get metric details

USAGE
  $ databox metric get METRICID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  METRICID  The metric ID (e.g., "500|custom_query_100")

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get metric details

  Type is event, general, current, or unknown when the metric's definition could not be read. Measure, date, aggregation
  and filters describe a custom-query metric's definition and are empty for integration and push metrics.

EXAMPLES
  $ databox metric get "500|custom_query_100"

  $ databox metric get "GoogleAnalytics4@sessions" --json

See code: src/commands/metric/get.ts

databox metric lineage METRICID

Show metric lineage (parents and children)

USAGE
  $ databox metric lineage METRICID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  METRICID  The metric ID (e.g., "500|custom_query_100")

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Show metric lineage (parents and children)

  Parents are what the metric is built from: the metrics a calculated metric reads, otherwise its dataset or data
  source. Children are the calculated metrics that read it; use "metric usages" for databoards and the like. Type is
  dataSource, dataset, mergedDataset, basicMetric or customMetric, the same as "dataset lineage". A metric that is not
  built on a dataset has no lineage and returns 404.

EXAMPLES
  $ databox metric lineage "500|custom_query_100"

  $ databox metric lineage "500|script_7" --json

See code: src/commands/metric/lineage.ts

databox metric list

List metrics

USAGE
  $ databox metric list [--no-color] [--output table|json|csv | --json] [--verbose] [--source-id <value>] [--all
    | --page <value>] [--page-size <value>] [--search <value>]

FLAGS
  --all                Fetch every page (100 items per request unless --page-size is given) and print them as one list
  --json               Output as JSON (shorthand for --output json)
  --no-color           Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>    [default: table] Output format
                       <options: table|json|csv>
  --page=<value>       Page number (0-indexed)
  --page-size=<value>  Number of items per page (max 100)
  --search=<value>     Search by metric name or ID
  --source-id=<value>  Filter by source ID (data source or dataset)
  --verbose            Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List metrics

EXAMPLES
  $ databox metric list

  $ databox metric list --source-id 42

  $ databox metric list --search revenue

  $ databox metric list --json

See code: src/commands/metric/list.ts

databox metric set-verification METRICID

Set metric verification status

USAGE
  $ databox metric set-verification METRICID --status verified|unverified [--no-color] [--output table|json|csv | --json]
    [--verbose]

ARGUMENTS
  METRICID  The metric ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --status=<option>  (required) Verification status
                     <options: verified|unverified>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Set metric verification status

  The metric ID must carry its source ("500|custom_query_100"): an integration key without "|", such as
  "GoogleAnalytics4@sessions", is rejected with a 400. Prints a confirmation; --json or --output csv prints the
  resulting verification (isVerified, verifiedAt, verifiedBy) instead.

EXAMPLES
  $ databox metric set-verification "500|custom_query_100" --status verified

  $ databox metric set-verification "500|custom_query_100" --status unverified --json

See code: src/commands/metric/set-verification.ts

databox metric update METRICID

Update a custom metric

USAGE
  $ databox metric update METRICID [--no-color] [--output table|json|csv | --json] [--verbose]
    [--aggregation-function sum|avg|min|max|count] [--clear-dimensions | --dimension <value>...] [--date <value>]
    [--filters <value>] [--measure <value>] [--name <value>]

ARGUMENTS
  METRICID  The metric ID to update

FLAGS
  --aggregation-function=<option>  New aggregation applied to the measure
                                   <options: sum|avg|min|max|count>
  --clear-dimensions               Remove every dimension (sends "dimensions": [])
  --date=<value>                   New date column reference as JSON ({"id":"amount","displayName":"Amount"})
  --dimension=<value>...           Dimension column reference as JSON ({"id":"amount","displayName":"Amount"}); repeat
                                   for several. Replaces the current dimensions
  --filters=<value>                Filters as JSON: {logicalOperator: and|or, conditions: [{field, operator, values}]}.
                                   Omit conditions to keep them; [] clears them
  --json                           Output as JSON (shorthand for --output json)
  --measure=<value>                New measure column reference as JSON ({"id":"amount","displayName":"Amount"})
  --name=<value>                   New name for the metric
  --no-color                       Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>                [default: table] Output format
                                   <options: table|json|csv>
  --verbose                        Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Update a custom metric

  Only dataset-based custom metrics can be updated. Fields you omit keep their current values. --dimension replaces the
  whole dimension list, and --clear-dimensions removes it. In --filters, omitting "conditions" keeps the stored ones, so
  "logicalOperator" can be changed on its own; "conditions": [] clears them. Prints the updated metric as "metric get"
  does.

EXAMPLES
  $ databox metric update "500|custom_query_100" --name "New Name"

  $ databox metric update "500|custom_query_100" --measure '{"id":"amount","displayName":"Amount"}' --aggregation-function avg

  $ databox metric update "500|custom_query_100" --filters '{"logicalOperator":"and","conditions":[{"field":"country","operator":"ANY_OF","values":["US","UK"]}]}'

  $ databox metric update "500|custom_query_100" --filters '{"logicalOperator":"or"}'

  $ databox metric update "500|custom_query_100" --clear-dimensions

  $ databox metric update "500|custom_query_100" --filters '{"conditions":[]}' --json

See code: src/commands/metric/update.ts

databox metric usages METRICID

Get where a metric is used

USAGE
  $ databox metric usages METRICID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  METRICID  The metric ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get where a metric is used

  Type is board, alert, goal, report, forecast, scorecard or calculatedMetric. Only dataset-based custom metrics (IDs
  like "500|custom_query_100") are looked up: for any other metric the list is always empty, as it is for a metric whose
  query has since been deleted.

EXAMPLES
  $ databox metric usages "500|custom_query_100"

  $ databox metric usages "500|custom_query_100" --json

See code: src/commands/metric/usages.ts

databox metric verification METRICID

Get metric verification status

USAGE
  $ databox metric verification METRICID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  METRICID  The metric ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get metric verification status

  The metric ID must carry its source ("500|custom_query_100"): an integration key without "|", such as
  "GoogleAnalytics4@sessions", is rejected with a 400.

EXAMPLES
  $ databox metric verification "500|custom_query_100"

  $ databox metric verification "500|custom_query_100" --json

See code: src/commands/metric/verification.ts

databox organization countries

List available countries

USAGE
  $ databox organization countries [--no-color] [--output table|json|csv | --json] [--verbose]

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List available countries

EXAMPLES
  $ databox organization countries

  $ databox organization countries --json

See code: src/commands/organization/countries.ts

databox organization info

Show your organization details

USAGE
  $ databox organization info [--no-color] [--output table|json|csv | --json] [--verbose]

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Show your organization details

EXAMPLES
  $ databox organization info

  $ databox organization info --json

See code: src/commands/organization/info.ts

databox organization metadata-options

List available metadata options for organization settings

USAGE
  $ databox organization metadata-options [--no-color] [--output table|json|csv | --json] [--verbose]

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List available metadata options for organization settings

EXAMPLES
  $ databox organization metadata-options

  $ databox organization metadata-options --json

See code: src/commands/organization/metadata-options.ts

databox organization timezones

List all supported timezones

USAGE
  $ databox organization timezones [--no-color] [--output table|json|csv | --json] [--verbose]

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List all supported timezones

EXAMPLES
  $ databox organization timezones

  $ databox organization timezones --json

See code: src/commands/organization/timezones.ts

databox organization update

Update organization details

USAGE
  $ databox organization update [--no-color] [--output table|json|csv | --json] [--verbose] [--address <value>]
    [--billing-name <value>] [--company-name <value>] [--metadata <value>] [--name <value>] [--settings <value>]
    [--tax-number <value>] [--website-url <value>]

FLAGS
  --address=<value>       JSON object: {street, zip, city, state, country}. Omitted fields keep their value; "" clears
                          one
  --billing-name=<value>  Billing name
  --company-name=<value>  Company name
  --json                  Output as JSON (shorthand for --output json)
  --metadata=<value>      JSON object: {industry, businessType, companySize, annualRevenue}
  --name=<value>          Organization name
  --no-color              Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>       [default: table] Output format
                          <options: table|json|csv>
  --settings=<value>      JSON object: {dateFormat, numberFormat, firstDayOfWeek, calendar, fiscalYearStart: {month,
                          day}}
  --tax-number=<value>    Tax number
  --verbose               Print each request and response (method, URL, status, duration, request ID) to stderr
  --website-url=<value>   Website URL

DESCRIPTION
  Update organization details

  --settings takes {dateFormat, numberFormat, firstDayOfWeek, calendar, fiscalYearStart}:
  - numberFormat: groupingCommaDecimalDot (1,234.5), groupingDotDecimalComma (1.234,5), groupingSpaceDecimalComma (1
  234,5) or groupingSpaceDecimalDot (1 234.5). An unrecognised value is rejected.
  - firstDayOfWeek: sunday, monday, tuesday, wednesday, thursday, friday or saturday. An unrecognised value is rejected.
  - calendar: gregorian, customFiscal or weekAlignedFiscal.
  - fiscalYearStart: {month, day}, for a fiscal calendar only; switching to gregorian clears it.

  Requires the Admin role: anyone else gets "forbidden" (exit 1).

EXAMPLES
  $ databox organization update --name "My Company"

  $ databox organization update --company-name "Acme Inc" --json

  $ databox organization update --settings '{"calendar":"customFiscal","fiscalYearStart":{"month":4,"day":1}}'

See code: src/commands/organization/update.ts

databox organization usage

Show organization usage statistics

USAGE
  $ databox organization usage [--no-color] [--output table|json|csv | --json] [--verbose]

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Show organization usage statistics

EXAMPLES
  $ databox organization usage

  $ databox organization usage --json

See code: src/commands/organization/usage.ts

databox profile info

Show your profile

USAGE
  $ databox profile info [--no-color] [--output table|json|csv | --json] [--verbose]

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Show your profile

EXAMPLES
  $ databox profile info

  $ databox profile info --json

See code: src/commands/profile/info.ts

databox profile metadata-options

List available departments and roles for profile metadata

USAGE
  $ databox profile metadata-options [--no-color] [--output table|json|csv | --json] [--verbose]

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List available departments and roles for profile metadata

EXAMPLES
  $ databox profile metadata-options

  $ databox profile metadata-options --json

See code: src/commands/profile/metadata-options.ts

databox profile update

Update your profile

USAGE
  $ databox profile update [--no-color] [--output table|json|csv | --json] [--verbose] [--metadata <value>] [--name
    <value>] [--timezone <value>]

FLAGS
  --json              Output as JSON (shorthand for --output json)
  --metadata=<value>  JSON object: {department, title, role}; "" clears a field
  --name=<value>      New display name
  --no-color          Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>   [default: table] Output format
                      <options: table|json|csv>
  --timezone=<value>  New timezone
  --verbose           Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Update your profile

  --metadata takes {department, title, role}. department and role must be values from "profile metadata-options", and a
  role must belong to the department; title is free text. A field left out keeps its value, and "" clears it. Clearing
  department requires clearing role in the same call: {"department":"","role":""}.

EXAMPLES
  $ databox profile update --name "New Name"

  $ databox profile update --timezone "US/Eastern"

  $ databox profile update --name "New Name" --timezone "UTC" --json

  $ databox profile update --metadata '{"department":"engineering","role":"software_engineer"}'

  $ databox profile update --metadata '{"department":"","role":""}'

See code: src/commands/profile/update.ts

databox user delete USERID

Remove a user from the organization

USAGE
  $ databox user delete USERID [--no-color] [--output table|json|csv | --json] [--verbose] [--force]

ARGUMENTS
  USERID  The user ID to remove

FLAGS
  --force            Skip confirmation prompt
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Remove a user from the organization

EXAMPLES
  $ databox user delete 12345

  $ databox user delete 12345 --force

See code: src/commands/user/delete.ts

databox user get USERID

Get user details

USAGE
  $ databox user get USERID [--no-color] [--output table|json|csv | --json] [--verbose]

ARGUMENTS
  USERID  The user ID

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Get user details

  Requires the Admin role: anyone else gets "forbidden" (exit 1). Read your own record with "profile info".

EXAMPLES
  $ databox user get 12345

  $ databox user get 12345 --json

See code: src/commands/user/get.ts

databox user invite

Invite a user to the organization

USAGE
  $ databox user invite --email <value> --role admin|user|editor|viewer [--no-color] [--output table|json|csv |
    --json] [--verbose] [--idempotency-key <value>] [--name <value>]

FLAGS
  --email=<value>            (required) Email address of the user to invite
  --idempotency-key=<value>  A UUID sent as the Idempotency-Key header: re-running the same command with the same key
                             and input within 24 hours returns the first response instead of repeating the action. The
                             same key with different input fails with idempotency_key_reused and does nothing
  --json                     Output as JSON (shorthand for --output json)
  --name=<value>             Display name for the new user
  --no-color                 Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>          [default: table] Output format
                             <options: table|json|csv>
  --role=<option>            (required) Role for the new user
                             <options: admin|user|editor|viewer>
  --verbose                  Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Invite a user to the organization

  An email already in the organization, invited or active, is refused with duplicate_record; change that user with "user
  update" instead.

EXAMPLES
  $ databox user invite --email user@example.com --role user

  $ databox user invite --email admin@example.com --role admin --json

See code: src/commands/user/invite.ts

databox user list

List users in the organization

USAGE
  $ databox user list [--no-color] [--output table|json|csv | --json] [--verbose] [--all | --page <value>]
    [--page-size <value>] [--role admin|user|editor|viewer] [--search <value>] [--sort-by <value>] [--sort-order
    asc|desc]

FLAGS
  --all                  Fetch every page (100 items per request unless --page-size is given) and print them as one list
  --json                 Output as JSON (shorthand for --output json)
  --no-color             Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>      [default: table] Output format
                         <options: table|json|csv>
  --page=<value>         Page number (0-indexed)
  --page-size=<value>    Number of items per page (max 100)
  --role=<option>        Filter by role
                         <options: admin|user|editor|viewer>
  --search=<value>       Search by name or email
  --sort-by=<value>      Field to sort by
  --sort-order=<option>  Sort direction
                         <options: asc|desc>
  --verbose              Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  List users in the organization

  --sort-by takes name, createdAt, lastSeenAt or role. The CLI does not restrict it: the value is passed to the API as
  given.

  Requires the Admin role: anyone else gets "forbidden" (exit 1). Read your own record with "profile info".

EXAMPLES
  $ databox user list

  $ databox user list --role editor

  $ databox user list --json

See code: src/commands/user/list.ts

databox user update USERID

Update a user's name or role

USAGE
  $ databox user update USERID [--no-color] [--output table|json|csv | --json] [--verbose] [--name <value>]
    [--role admin|user|editor|viewer]

ARGUMENTS
  USERID  The user ID to update

FLAGS
  --json             Output as JSON (shorthand for --output json)
  --name=<value>     New display name for the user
  --no-color         Disable coloured output (a non-empty NO_COLOR environment variable does the same)
  --output=<option>  [default: table] Output format
                     <options: table|json|csv>
  --role=<option>    New role for the user
                     <options: admin|user|editor|viewer>
  --verbose          Print each request and response (method, URL, status, duration, request ID) to stderr

DESCRIPTION
  Update a user's name or role

EXAMPLES
  $ databox user update 12345 --role admin

  $ databox user update 12345 --role viewer --json

  $ databox user update 12345 --name "Jane Doe"

See code: src/commands/user/update.ts

About

CLI for the Databox public API

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages