0.2.2 • Published 5 months ago

@team-plain/cli v0.2.2

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

@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 help@plain.com.

Installation

npm install -g @team-plain/cli

This 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 --help

Authentication

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_xxx

Commands

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.
0.2.2

5 months ago

0.1.0

7 months ago

0.2.1

7 months ago

0.1.2

7 months ago

0.2.0

7 months ago

0.1.1

7 months ago

0.0.4

8 months ago

0.0.3

8 months ago

0.0.2

8 months ago

0.0.1

8 months ago