@team-plain/cli
v0.4.0
Published
CLI for interacting with the Plain API
Maintainers
Keywords
Readme
@team-plain/cli
This CLI is used to interact with the Plain.com API.
If you run into any issues please open an issue or get in touch with us at [email protected].
Installation
npm install -g @team-plain/cliThis installs the package globally and makes the plain command available in your path.
The cli has a help command that can be used to get more information about the available commands:
plain --helpAuthentication
To authenticate with your Plain workspace, the CLI uses a Plain API Key. The key is read from the environment varialble PLAIN_API_KEY
See below for permissions required for each command.
export PLAIN_API_KEY=plainApiKey_xxxCommands
Index Documents
These commands are used for indexing documents for use with Smart AI Responses. The contents of provided urls are scraped and indexed using Open AI.
index-url
Index a single document by URL.
Required permissions: indexedDocument:create
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: indexedDocument:create
plain index-sitemap <sitemap url>`Options:
-l, --labelTypeIds <labelTypeIds...>: Array of label type IDs to associate with the indexed url from the sitemap.
