Skip to main content
The commands below are available for interacting with HubDB using the HubSpot CLI. Use these commands to create, delete, fetch, and clear all rows of a HubDB table. The HubSpot account must have access to HubDB to use these commands.

Create HubDB table

Create a new HubDB table in the HubSpot account.
Flags

Fetch HubDB Table

Download a HubDB table’s data to your local machine.
Arguments When you fetch a HubDB the data is stored as tablename.hubdb.json. When you create a new table you must specify a source JSON file. Below is an example of a table in JSON format.

Clear rows in a HubDB table

Clear all of the rows in a HubDB table.
Arguments Flags

Delete HubDB table

Deletes the specified HubDB table from the account. You will be prompted to confirm the deletion before proceeding. You can use the --force flag to bypass this confirmation.
Arguments Flags
Last modified on March 29, 2026