Skip to main content
lua resources reads and deletes the documents the agent’s Knowledge Search (rag) feature draws on. A deletion takes effect for every end user at once. Verified against lua-cli 3.33.0.

Synopsis

Description

A resource is a named text document that belongs to the agent. list, view and delete run without a prompt; --resource-name accepts the resource’s id exactly or its name case-insensitively. Creating and updating a resource needs an editor for the content, so those two live only in the menu the bare command opens (Create new resource, Update existing resource, both in $EDITOR) and in the admin dashboard. A non-interactive delete asks nothing. If the list cannot be fetched the command prints ⚠️ Error loading resources and continues with an empty list, so list then reports no resources.
lua resources delete --resource-name <name> removes the document permanently and without confirmation. Run lua resources view first if you are unsure which document the name matches.

Arguments

Actions

Options

Omitting it is ✖ usage: --resource-name is required for action "<action>" (exit 2) with the resource names as the hint; no match is ✖ not_found: Resource "<name>" not found (exit 3).

Examples

List the agent’s resources.
Output
Print one document and then remove it.
Open the menu to create or edit a document in your editor.

Exit codes

See also