Pular para o conteúdo
ReferênciaCLI

jiraya knowledge

Referência do comando jiraya knowledge da CLI do Jiraya: subcomandos, uso, flags e exemplos, gerados a partir da ajuda.

Work with the knowledge base

Work with the knowledge base.

The knowledge base is only reachable from a web session or from inside a running task (JIRA-567 / JIRA-723): a `jir_` PAT used outside a task is refused with 403. Run these commands from within a task, or sign in on the web.

Subcomandos

ComandoDescrição
jiraya knowledge activityList recent knowledge base activity (including deletions)
jiraya knowledge createCreate a knowledge document
jiraya knowledge deleteDelete a knowledge document
jiraya knowledge getGet a knowledge document, or one of its past revisions
jiraya knowledge historyList the versions of a knowledge document, newest first
jiraya knowledge listList knowledge documents
jiraya knowledge moveMove a knowledge document under a new parent, or to the root
jiraya knowledge restoreRestore a past revision of a knowledge document as a new revision
jiraya knowledge searchSearch knowledge documents (text, semantic or hybrid)
jiraya knowledge updateUpdate a knowledge document

jiraya knowledge activity

List recent knowledge base activity (including deletions)

Uso

jiraya knowledge activity [flags]

Flags

FlagDescriçãoPadrão
--action stringOnly this action: created, updated, renamed, moved, retagged, restored or deleted
--actor-type stringOnly events by this actor type: member or agent
--allFollow next_cursor until the last page
--cursor stringResume from the next_cursor of a previous page
--document stringOnly events of this document slug
--limit intMax events per page (1-100)50
--output stringOutput format: table or jsontable

jiraya knowledge create

Create a knowledge document

Uso

jiraya knowledge create [flags]

Flags

FlagDescriçãoPadrão
--allow-external-fileAllow --content-file to read a path outside the current working directory.
--content stringDocument content (decodes \n, \r, \t, \\; pipe via --content-stdin for multi-line bodies or to preserve literal backslashes)
--content-file stringRead document content from a UTF-8 file (preserves multi-line content verbatim). The path must be inside the current working directory unless --allow-external-file is set.
--content-stdinRead document content from stdin (preserves multi-line content verbatim)
--output stringOutput format: table or jsonjson
--parent stringParent document slug (root document if omitted)
--tag stringArrayTag (repeatable)
--template stringStart from a template (decision or investigation); applied only when no content is given
--title stringDocument title (required)
--type stringDocument type: memory, decision, investigation or convention

jiraya knowledge delete

Delete a knowledge document

Uso

jiraya knowledge delete <slug> [flags]

Flags

FlagDescriçãoPadrão
--output stringOutput format: table or jsonjson

jiraya knowledge get

Get a knowledge document, or one of its past revisions

Uso

jiraya knowledge get <slug> [flags]

Aliases: show

Flags

FlagDescriçãoPadrão
--output stringOutput format: table or jsonjson
--revision intShow this past revision instead of the current document

jiraya knowledge history

List the versions of a knowledge document, newest first

Uso

jiraya knowledge history <slug> [flags]

Flags

FlagDescriçãoPadrão
--allFollow next_before until the oldest version
--before intOnly versions older than this revision (the next_before of a previous page)
--limit intMax versions per page (1-100)50
--output stringOutput format: table or jsontable

jiraya knowledge list

List knowledge documents

Uso

jiraya knowledge list [flags]

Flags

FlagDescriçãoPadrão
--allFollow next_cursor until the last page
--author-type stringOnly documents created by this author type: member or agent
--cursor stringResume the listing from the next_cursor of a previous page
--limit intMax documents per page (1-100)50
--mode stringSearch mode with --query: text, semantic or hybrid (default hybrid)
--offset intPagination offset (prefer --cursor; ignored when --query is set)
--output stringOutput format: table or jsontable
--parent stringOnly direct children of this document slug
--query knowledge search <query>Search query; same as knowledge search <query>
--rootOnly root documents (no parent)
--tag stringArrayOnly documents with this tag (repeatable; all tags must match)
--type stringOnly documents of this type: memory, decision, investigation or convention

jiraya knowledge move

Move a knowledge document under a new parent, or to the root

Uso

jiraya knowledge move <slug> [flags]

Flags

FlagDescriçãoPadrão
--expected-revision intRevision you last read; the move fails if the document changed since
--output stringOutput format: table or jsonjson
--parent stringNew parent document slug
--rootMove the document to the root (clear its parent)

jiraya knowledge restore

Restore a past revision of a knowledge document as a new revision

Uso

jiraya knowledge restore <slug> [flags]

Flags

FlagDescriçãoPadrão
--expected-revision intCurrent revision you are replacing (default: the revision read just before restoring)
--output stringOutput format: table or jsonjson
--revision intRevision to restore (required)

Search knowledge documents (text, semantic or hybrid)

Uso

jiraya knowledge search <query> [flags]

Flags

FlagDescriçãoPadrão
--author-type stringOnly documents created by this author type: member or agent
--limit intMax results (1-100)50
--mode stringSearch mode: text, semantic or hybrid (default hybrid; falls back to text without embeddings)
--output stringOutput format: table or jsontable
--parent stringOnly direct children of this document slug
--rootOnly root documents (no parent)
--tag stringArrayOnly documents with this tag (repeatable; all tags must match)
--type stringOnly documents of this type: memory, decision, investigation or convention

jiraya knowledge update

Update a knowledge document

Uso

jiraya knowledge update <slug> [flags]

Flags

FlagDescriçãoPadrão
--allow-external-fileAllow --content-file to read a path outside the current working directory.
--clear-tagsRemove every tag
--content stringNew content (decodes \n, \r, \t, \\; pipe via --content-stdin for multi-line bodies or to preserve literal backslashes)
--content-file stringRead new content from a UTF-8 file (preserves multi-line content verbatim). The path must be inside the current working directory unless --allow-external-file is set.
--content-stdinRead new content from stdin (preserves multi-line content verbatim)
--expected-revision intRevision you last read; the update fails if the document changed since (default: the revision read just before writing)
--output stringOutput format: table or jsonjson
--tag stringArrayTag (repeatable)
--title stringNew title
--type stringDocument type: memory, decision, investigation or convention

Atualizado em

Nesta página