CLI Reference
Complete reference for every command in the ronakcn_cli tool.
Global usage
ronakcn <command> [arguments] [options]
Global options:
--version Print the CLI version
--help, -h Show help informationAll commands accept --help as a trailing flag for inline help.
initronakcn init [options]Initialises a new RonakCN project in the current directory. Creates a `ronakcn.json` config file and an output directory. Safe to run inside an existing Flutter project.
Options
--dir <path>Output directory for components (default: lib/components)
--preset <name>Theme preset to start with (default: default)
--yes, -yAccept all prompts without interaction
Example
Initialise with a custom output directory and the "ocean" theme preset.
ronakcn init --dir lib/ui --preset oceanaddronakcn add <component> [components...] [options]Copies one or more components into your project. The CLI resolves inter-component dependencies automatically and only installs pub packages that are not already present in pubspec.yaml.
Options
--overwrite, -oOverwrite existing files without prompting
--dry-runPreview what would be added without writing any files
Example
Add three components in a single command.
ronakcn add button text-field badgeremoveronakcn remove <component> [components...]Removes one or more components from your project. Deletes the component source files and cleans up the manifest entry. Does not remove pub packages because they may be used elsewhere.
Options
--yes, -ySkip the confirmation prompt
Example
Remove the badge component.
ronakcn remove badgeupdateronakcn update [component] [options]Updates installed components to the latest version from the registry. When no component name is given, all installed components are updated. Your local customisations are preserved with a diff prompt if conflicts arise.
Options
--all, -aUpdate every installed component (default when no name given)
--overwriteOverwrite local changes without prompting
Example
Update only the button component.
ronakcn update buttonlistronakcn list [options]Displays all available components in the RonakCN registry. Components already installed in the current project are marked. Use --installed to show only installed components.
Options
--installed, -iShow only installed components
--category <name>Filter by category (input, display, feedback…)
--jsonOutput as JSON for scripting
Example
List all available input components.
ronakcn list --category inputhelpronakcn help [command]Prints usage information for the CLI or for a specific command. You can also pass --help to any command to see its options inline.
Example
Show detailed help for the add command.
ronakcn help add