Docs
/
/

Sources

Commands for managing sources in the Knock CLI.

#

Source commands enable you to view the sources in your Knock account from the CLI.

knock source list [flags]

#

Display all sources for an environment. Use an --environment flag to specify the target environment; if omitted, the Knock CLI uses the account's default environment.

Flags

--environmentstring

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

--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 source get <source_key> [flags]

#

Display a single source from an environment, using its source key.

Use an --environment flag to specify the target environment; if omitted, the Knock CLI uses the account's default environment.

Flags

--environmentstring

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

--jsonstring

Format output as json.

New chat