Skip to content
Browse documentationKnowledge

Knowledge commands

Signatures, flags and examples for recala knowledge.

On this page

Use these commands

The sources Recala writes from. Upload PDF, DOCX, Markdown, text or CSV files, up to 50 MB per file.

Examples assume you have signed in and selected the intended organization. Set shell variables such as ARTICLE_ID to ids from the corresponding list command. Set PUBLICATION_TIME to a future local time in YYYY-MM-DDTHH:MM format.

Badges describe the command’s strongest effect; a preview or read-only option may do less. Guarded writes can require confirmation even without --yes. “Needs a person” covers identity, consent and credentials.

recala knowledge add

Upload a file as the company's own material.

writes Acts on an organization
recala knowledge add FILE [OPTIONS]
Signature

Replace uppercase arguments with your own values. Replace [OPTIONS] with the flags you need, or omit it.

FlagRequiredDescription
--jsonNoPrint one JSON document (errors as JSON on stderr).
--orgNoCompany name, slug or id (else RECALA_ORG, else recala company use).
--dry-runNoCheck everything and say what would change, without changing it.

Examples

Add a document the client sent: PDF, DOCX, Markdown, text or CSV, 50 MB at most.

recala knowledge add ./product-sheet.pdf

Exit codes 0 OK 1 ERROR 2 USAGE 3 NOT_AUTHENTICATED 4 FORBIDDEN 5 NOT_FOUND 6 CONFLICT 7 INVALID 8 RATE_LIMITED 9 UNAVAILABLE 10 CONFIRMATION_REQUIRED 11 PAYMENT_REQUIRED

API commands share the CLI’s HTTP error mapping. Read human and JSON output rules.

recala knowledge add-url

Add one or more pages as sources.

writes Acts on an organization
recala knowledge add-url URLS [OPTIONS]
Signature

Replace uppercase arguments with your own values. Replace [OPTIONS] with the flags you need, or omit it.

FlagRequiredDescription
--jsonNoPrint one JSON document (errors as JSON on stderr).
--orgNoCompany name, slug or id (else RECALA_ORG, else recala company use).
--dry-runNoCheck everything and say what would change, without changing it.

Examples

Add the company's own pages as sources.

recala knowledge add-url https://example.com/ https://example.com/about

Exit codes 0 OK 1 ERROR 2 USAGE 3 NOT_AUTHENTICATED 4 FORBIDDEN 5 NOT_FOUND 6 CONFLICT 7 INVALID 8 RATE_LIMITED 9 UNAVAILABLE 10 CONFIRMATION_REQUIRED 11 PAYMENT_REQUIRED

API commands share the CLI’s HTTP error mapping. Read human and JSON output rules.

recala knowledge admit

Admit a ready source for use in articles.

writes Acts on an organization
recala knowledge admit SOURCE_ID [OPTIONS]
Signature

Replace uppercase arguments with your own values. Replace [OPTIONS] with the flags you need, or omit it.

FlagRequiredDescription
--jsonNoPrint one JSON document (errors as JSON on stderr).
--orgNoCompany name, slug or id (else RECALA_ORG, else recala company use).
--asNoWhat kind of material it is.
--dry-runNoCheck the source can be admitted without admitting it.

Examples

Set the named shell variables to your own values before running.

recala knowledge admit "$SOURCE_ID"

Exit codes 0 OK 1 ERROR 2 USAGE 3 NOT_AUTHENTICATED 4 FORBIDDEN 5 NOT_FOUND 6 CONFLICT 7 INVALID 8 RATE_LIMITED 9 UNAVAILABLE 10 CONFIRMATION_REQUIRED 11 PAYMENT_REQUIRED

API commands share the CLI’s HTTP error mapping. Read human and JSON output rules.

recala knowledge ideas

The article ideas and questions Recala found in a source, numbered.

writes Acts on an organization
recala knowledge ideas SOURCE_ID [OPTIONS]
Signature

Replace uppercase arguments with your own values. Replace [OPTIONS] with the flags you need, or omit it.

FlagRequiredDescription
--jsonNoPrint one JSON document (errors as JSON on stderr).
--orgNoCompany name, slug or id (else RECALA_ORG, else recala company use).
--addNoSend idea or question number N to the topic queue (what the portal's Add to topics does).
--dry-runNoCheck everything and say what would change, without changing it.

Examples

Set the named shell variables to your own values before running.

recala knowledge ideas "$SOURCE_ID"

Exit codes 0 OK 1 ERROR 2 USAGE 3 NOT_AUTHENTICATED 4 FORBIDDEN 5 NOT_FOUND 6 CONFLICT 7 INVALID 8 RATE_LIMITED 9 UNAVAILABLE 10 CONFIRMATION_REQUIRED 11 PAYMENT_REQUIRED

API commands share the CLI’s HTTP error mapping. Read human and JSON output rules.

recala knowledge list

Every source, its state and its admission.

read Acts on an organization
recala knowledge list [OPTIONS]
Signature

Replace [OPTIONS] with the flags you need, or omit it.

FlagRequiredDescription
--jsonNoPrint one JSON document (errors as JSON on stderr).
--orgNoCompany name, slug or id (else RECALA_ORG, else recala company use).

Examples

Wait until every source is processed.

recala knowledge list

Exit codes 0 OK 1 ERROR 2 USAGE 3 NOT_AUTHENTICATED 4 FORBIDDEN 5 NOT_FOUND 6 CONFLICT 7 INVALID 8 RATE_LIMITED 9 UNAVAILABLE 11 PAYMENT_REQUIRED

API commands share the CLI’s HTTP error mapping. Read human and JSON output rules.

recala knowledge remove

Remove a source and everything derived from it.

writes Acts on an organization Supports --yes
recala knowledge remove DOCUMENT_ID [OPTIONS]
Signature

Replace uppercase arguments with your own values. Replace [OPTIONS] with the flags you need, or omit it.

FlagRequiredDescription
--jsonNoPrint one JSON document (errors as JSON on stderr).
--orgNoCompany name, slug or id (else RECALA_ORG, else recala company use).
--yesNoConfirm the deletion (or the link you kill) without a prompt.
--dry-runNoCheck everything and say what would change, without changing it.

Examples

Set the named shell variables to your own values before running.

recala knowledge remove "$DOCUMENT_ID"

Exit codes 0 OK 1 ERROR 2 USAGE 3 NOT_AUTHENTICATED 4 FORBIDDEN 5 NOT_FOUND 6 CONFLICT 7 INVALID 8 RATE_LIMITED 9 UNAVAILABLE 10 CONFIRMATION_REQUIRED 11 PAYMENT_REQUIRED

API commands share the CLI’s HTTP error mapping. Read human and JSON output rules.

recala knowledge show

What Recala learned from a source.

read Acts on an organization
recala knowledge show SOURCE_ID [OPTIONS]
Signature

Replace uppercase arguments with your own values. Replace [OPTIONS] with the flags you need, or omit it.

FlagRequiredDescription
--jsonNoPrint one JSON document (errors as JSON on stderr).
--orgNoCompany name, slug or id (else RECALA_ORG, else recala company use).

Examples

Set the named shell variables to your own values before running.

recala knowledge show "$SOURCE_ID"

Exit codes 0 OK 1 ERROR 2 USAGE 3 NOT_AUTHENTICATED 4 FORBIDDEN 5 NOT_FOUND 6 CONFLICT 7 INVALID 8 RATE_LIMITED 9 UNAVAILABLE 11 PAYMENT_REQUIRED

API commands share the CLI’s HTTP error mapping. Read human and JSON output rules.

CLI reference
Search documentation