Skip to main content

Knowledge

Read and write generated knowledge files for a product from the terminal. Pass --scope <org-slug>/<product-slug> to select the product. tpc kb is an alias for tpc knowledge. This first slice covers files only: list, get, and put. Proposals, retrieval, ingest, and graph commands are not available yet.
Knowledge commands require OAuth login (tpc auth login). API keys are rejected with an “OAuth login required” error.

List files

Text output is an indented Unix-style tree. JSON output is the API’s flat file list.
Filter to a subtree. The prefix becomes the tree root:
Scriptable JSON stays flat (no nested tree):
--format csv is not supported.

Get a file

Text mode prints the file content. JSON mode prints the API payload.

Write a file

put creates the file, or replaces it when it already exists. Use either --content or --content-file.
Text output prints the resulting path, commit, and repository message.

JSON output

Every command supports --format json for scripting. List JSON is a flat list of files and paths, not a tree.