Skip to main content

culvii rename

Rename a resource.

Synopsis​

culvii rename <old-slug> <new-slug> --resource-type <type> [--env <env>] [--workspace-slug <slug>]

Description​

Renames a resource (currently only --resource-type agent is supported). This preserves the immutable UUID and all execution history, unlike changing the ID in code and deploying (which deletes and recreates).

Flags​

FlagRequiredDescription
--resource-type✓Type of resource (agent).
--env-Target environment (sandbox or prod). Defaults to active context.
--workspace-slug-Target workspace slug (overrides config).

Examples​

culvii rename old-agent new-agent --resource-type agent

Error behaviour​

ConditionMessageExit
Invalid resource type"Invalid resource type '<type>'. Must be: agent"1
Workspace not found"Workspace not found: <slug>"1
No workspace configured"No workspace configured. Run culvii dev first, or provide --workspace-slug <slug>."1