Docs
/
/

Warehouses

Commands for reading the warehouses connected to your account in the Knock CLI.

#

Warehouse commands enable you to read the warehouses connected to your account from the CLI. A warehouse is one database in your data warehouse that Knock reads from. Every environment shares it.

The CLI reads warehouses but doesn't create or change them. Add a warehouse and change its connection from the dashboard under Platform > Sources. To manage the syncs that read from a warehouse, use the warehouse sync commands.

knock warehouse list [flags]

#

Display all warehouses connected to your account, with their type and connection status.

Flags

--environmentstring

The environment to use. When omitted, the account's default environment is used. Every environment lists the same warehouses.

--limitnumber

The total number to fetch per page.

--afterstring

Fetches all entries after this cursor.

--beforestring

Fetches all entries before this cursor.

--jsonstring

Format output as json.

knock warehouse get <warehouse_key> [flags]

#

Display a single warehouse, including its connection settings and connection status. Passwords and keys are never returned.

Flags

--environmentstring

The environment to use. When omitted, the account's default environment is used.

--jsonstring

Format output as json.

New chat