Skip to main content
A category groups articles in your knowledge base and can nest inside another category. For fields and response details, see the API reference. Samples on this page show the --json envelope, which stays stable across terminals; the default pretty output picks columns to fit your terminal width. See Output formats.

List categories

This command lists the category tree with article counts. Use this when you want a category ID to filter articles by, or to check where a new article should go before creating it.
Sample output (--json)
subcategories nests the full child categories, and ancestors lists the parents up to the root. articles_count covers the category itself; total_articles_count includes its subcategories.
Pass an id from this list to neetokb articles list --category-id. To place a new article, neetokb articles create --category takes category names, not these IDs.