> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.ada.cx/llms.txt.

# knowledge

Read and change the [Knowledge](/docs/knowledge) of your AI Agent: articles, availability rules, website imports, and other Knowledge sources. The alias is `kb`.

## Commands

| Command                         | What it does                                                             |
| ------------------------------- | ------------------------------------------------------------------------ |
| `knowledge list`                | Lists articles, one page at a time.                                      |
| `knowledge get <id>`            | Shows one article.                                                       |
| `knowledge create`              | Creates an article from text or from a file.                             |
| `knowledge update <id>`         | Changes the title or body of an article, or turns the article on or off. |
| `knowledge delete <id>`         | Deletes an article.                                                      |
| `knowledge set-rules`           | Sets availability rules on one or more articles.                         |
| `knowledge scrape`              | Imports web pages as articles, with an optional crawl and sync schedule. |
| `knowledge sources list`        | Lists Knowledge sources, with their rules and sync schedule.             |
| `knowledge sources create`      | Creates a Knowledge API source.                                          |
| `knowledge sources update <id>` | Changes the name, sync schedule, rules, or excluded paths of a source.   |
| `knowledge sources sync <id>`   | Crawls a website import again now.                                       |

## Examples

Create an article from a Markdown file:

```bash
adacli acme knowledge create --title "Shipping FAQ" --file shipping.md
```

Turn off an article:

```bash
adacli acme knowledge update art-abc123 --disable
```

Show two articles only to end users whose language is French. `v()` takes a variable ID from `adacli acme variables list`, not a variable name:

```bash
adacli acme knowledge set-rules --articles art-abc123 art-def456 \
  --rules 'all(equals(v("60a1b2c3d4e5f60718293a4b"), "fr"))'
```

Import a help center, follow its links, and sync it every weekday at 7:00 and 19:00 Toronto time:

```bash
adacli acme knowledge scrape --name "Help Center" --urls https://example.com/help --crawl \
  --sync-at 7,19 --sync-days mon,tue,wed,thu,fri --timezone America/Toronto
```

Leave the blog out of a website import, then crawl it again:

```bash
adacli acme knowledge sources update <source-id> --exclude-paths /blog
adacli acme knowledge sources sync <source-id>
```

## Details

* `create` and `update` check the article before they send it. The title must have 1 to 255 characters. The body must not be empty and must be 100 KiB or less. If a check fails, adacli sends nothing.
* `scrape` accepts about 10 URLs in one request. For a larger import, run `scrape` more than once, with a different `--name` each time. `scrape` returns no source ID. To find it, run `knowledge sources list`.
* A rule set on a source applies to the articles that the source adds after the change. Existing articles keep their rules.
* `sources sync` works only on a website import. An App connection syncs on its own schedule.

For every option of a command, run it with `--help`, for example `adacli acme knowledge scrape --help`.

## Related commands

* [`variables`](/adacli/commands/variables): get the variable IDs for availability rules.
* [`glossary`](/adacli/commands/glossary): set how the AI Agent uses and translates terms.
* [`snapshot`](/adacli/commands/snapshot): export all Knowledge with the rest of the configuration.

---

Have any questions? Contact your Ada team, or email us at [](mailto:help@ada.cx?subject=Help%20Docs%20inquiry).