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.
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
Exit codes
See also
- Add knowledge — resources,
ragand when to useDatainstead - Knowledge and features
lua features— turnragon or off

