# pal cli knowledge

Source: https://pal.konvert7.com/docs/cli/knowledge

Query and manage the knowledge store

```bash title="Usage"
pal cli knowledge <command>
```

Domains: People, Companies, Ideas, Research Relation types: supports, contradicts, extends, part-of, instance-of, caused-by, preceded-by, related

## pal cli knowledge search [#pal-cli-knowledge-search]

Substring search across title, tags, body

```bash title="Usage"
pal cli knowledge search <query>
```

## pal cli knowledge graph [#pal-cli-knowledge-graph]

BFS traversal from a slug (default 2 hops)

```bash title="Usage"
pal cli knowledge graph <slug> [options]
```

| Option | What it does |
| --- | --- |
| `--hops <n>` | Hops to follow (default 2) |

## pal cli knowledge stats [#pal-cli-knowledge-stats]

Counts, hubs, isolated nodes

```bash title="Usage"
pal cli knowledge stats
```

## pal cli knowledge hubs [#pal-cli-knowledge-hubs]

Top 10 most-connected entities

```bash title="Usage"
pal cli knowledge hubs
```

## pal cli knowledge find [#pal-cli-knowledge-find]

Entities tagged with `<tag>`

```bash title="Usage"
pal cli knowledge find <tag>
```

## pal cli knowledge show [#pal-cli-knowledge-show]

Print one entity (frontmatter + body)

```bash title="Usage"
pal cli knowledge show <slug>
```

## pal cli knowledge add [#pal-cli-knowledge-add]

Create an entity (interactive unless flags are given)

```bash title="Usage"
pal cli knowledge add <domain> <name> [options]
```

| Option | What it does |
| --- | --- |
| `--tags <a,b>` | Comma-separated tags |
| `--related <slug:type>` | Typed relation (repeatable) (repeatable) |
| `--quality <0-10>` | Default 5 |
| `--status <seedling\|budding\|evergreen>` | Default seedling |
| `--type <subtype>` | Free-form sub-type |
| `--body <text>` | Markdown body |

Domains: People, Companies, Ideas, Research Relation types: supports, contradicts, extends, part-of, instance-of, caused-by, preceded-by, related

## pal cli knowledge ls [#pal-cli-knowledge-ls]

List entities, optionally by one domain

```bash title="Usage"
pal cli knowledge ls [domain]
```

Domains: People, Companies, Ideas, Research Relation types: supports, contradicts, extends, part-of, instance-of, caused-by, preceded-by, related

## pal cli knowledge ingest [#pal-cli-knowledge-ingest]

Upsert people and companies from JSON on stdin (or --file)

```bash title="Usage"
pal cli knowledge ingest [options]
```

| Option | What it does |
| --- | --- |
| `--source <id>, -s <id>` | Provenance tag (default "manual") |
| `--file <path>, -f <path>` | Read the JSON from a file instead of stdin |

## pal cli knowledge research [#pal-cli-knowledge-research]

Research a company (or --person) on the web: links, registry, news

```bash title="Usage"
pal cli knowledge research <name> [options]
```

| Option | What it does |
| --- | --- |
| `--person` | Research a person, not a company |
| `--organization <name>` | Where the person works, to tell namesakes apart |
| `--context <text>` | What you know about them, to tell namesakes apart |
| `--queue` | Also queue the profile for `pal cli knowledge review` |
| `--json` | Print the profile as JSON |

## pal cli knowledge review [#pal-cli-knowledge-review]

People and companies the background extractor would not guess

```bash title="Usage"
pal cli knowledge review <command>
```

### pal cli knowledge review list [#pal-cli-knowledge-review-list]

Show what waits for an answer

```bash title="Usage"
pal cli knowledge review list
```

### pal cli knowledge review accept [#pal-cli-knowledge-review-accept]

Write an item, to an existing entry (--as) or a new one

```bash title="Usage"
pal cli knowledge review accept <id> [options]
```

| Option | What it does |
| --- | --- |
| `--as <slug>` | Existing entry to update |
| `--name <name>` | Name for a new entry (default: as extracted) |

### pal cli knowledge review reject [#pal-cli-knowledge-review-reject]

Drop an item without writing it

```bash title="Usage"
pal cli knowledge review reject <id>
```