GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - team-plain/cli: CLI for managing Knowledge Sources via the Plain API.

BranchesTags
Open more actions menu

Latest commit

 

History

69 Commits
69 Commits

Folders and files

NameName
Last commit message
Last commit date
.changeset
.changeset
 
 
.github
.github
 
 
.greptile
.greptile
 
 
src
src
 
 
test
test
 
 
.gitattributes
.gitattributes
 
 
.gitignore
.gitignore
 
 
.nvmrc
.nvmrc
 
 
.size-limit.json
.size-limit.json
 
 
CHANGELOG.md
CHANGELOG.md
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
biome.json
biome.json
 
 
logo.png
logo.png
 
 
package.json
package.json
 
 
pnpm-lock.yaml
pnpm-lock.yaml
 
 
pnpm-workspace.yaml
pnpm-workspace.yaml
 
 
tsconfig.json
tsconfig.json
 
 
tsdown.config.ts
tsdown.config.ts
 
 

Repository files navigation

Plain

@team-plain/cli

CLI for interacting with the Plain API.

Specifically for indexing content as Knowledge Sources in your Plain workspaces, to be used by Plain Agents.

  • Installation
  • Authentication
  • Commands
    • Knowledge Sources
    • index-url
    • index-sitemap
  • Running in CI

Installation

Requires Node.js 22.12 or later.

npm install -g @team-plain/cli
plain --help

Authentication

To authenticate with your Plain workspace, the CLI uses a Plain API Key, read from the PLAIN_API_KEY environment variable.

export PLAIN_API_KEY=plainApiKey_xxx

Commands

Knowledge Sources

Commands for indexing content as Knowledge Sources in your Plain workspace, so that Plain Agents, such as Ari, can use it to answer customer questions and as context.

Each command fetches and indexes the content of the provided URL or sitemap. Running a command again for a URL or sitemap that's already a knowledge source reindexes it.

index-url

Index a single page by URL.

Required permissions: knowledgeSource:create

PLAIN_API_KEY=plainApiKey_xxx plain index-url <url>

Options:

  • -l, --labelTypeIds <labelTypeIds...>: Array of label type IDs to associate with the indexed url

index-sitemap

Index all the urls in a given sitemap you provide.

Required permissions: knowledgeSource:create

PLAIN_API_KEY=plainApiKey_xxx plain index-sitemap <sitemap url>

Options:

  • -l, --labelTypeIds <labelTypeIds...>: Array of label type IDs to associate with the indexed urls from the sitemap

Running in CI

Use the CLI in your CI pipeline to index your content as Knowledge Sources, for example when you publish new documentation to a Mintlify site.

- uses: actions/setup-node@v7
  with:
    node-version: 24

- name: Index docs
  run: npx --yes @team-plain/cli@1 index-sitemap https://docs.example.com/sitemap.xml
  env:
    PLAIN_API_KEY: ${{ secrets.PLAIN_API_KEY }}

Code review

Greptile auto-approves a PR it scores 5/5 and rates Low risk. Anything under .greptile/ always needs a human, and so does a release: the Version Packages PR is opened by a bot, and Greptile does not review bot PRs.

About

CLI for managing Knowledge Sources via the Plain API.

plain.com/docs/product/agents/knowledge-sources

Resources

Readme
MIT license
Activity
Custom properties

Stars

2 stars

Watchers

0 watching

Forks

1 fork
Report repository

Releases

Used by

Contributors

Languages

You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.