Skip to main content

Usage

ocx update [components...] [options]

Description

Update installed components from their registries to the latest version. You can update specific components, all components, or all components from a particular registry.

Arguments

ArgumentRequiredDescription
components...NoSpecific components to update (omit to use --all or --registry)

Flags

FlagShorthandDefaultDescription
--allfalseUpdate all installed components
--registry <name>Update all components from a specific registry
--dry-runfalsePreview changes without applying
--cwd <path>Current directoryWorking directory
--quiet-qfalseSuppress output
--verbose-vfalseVerbose output
--jsonfalseOutput as JSON

Mutual Exclusivity

These flag combinations are not allowed:
  • --all with component names
  • --registry with component names
  • --all with --registry

Examples

Update a Specific Component

ocx update shadcn/button

Update All Components

ocx update --all

Update All Components from a Registry

ocx update --registry shadcn

Preview Updates

ocx update --all --dry-run

See Also