agillo-cli v1.2.6
๐ Agillo CLI Documentation
๐ Introduction This CLI tool helps you manage and install React and React Native components from a registry. It allows you to list available components and add them to your project interactively.
๐ฆ Installation
npx agillo-cli
๐ Listing available components
To see all available components, run:
agillo-cli list
This will display categories like React , React Native and shadcn . You can navigate through categories and select a component to add.
๐ฆ Adding a component
To add a specific component, use:
agillo-cli add component-name For example:
agillo-cli add button
If you donโt specify a component, youโll get an interactive menu to choose from. ๐ Project Structure When a component is added, it will be copied to:
/components โโโ button.tsx โโโ some-other-component.tsx
If the component has dependencies, they will be added automatically.
If a file already exists, youโll be prompted to overwrite, keep both, or skip.
Overwrite โ Replace the existing file.
Keep both โ Rename the new file and keep both versions.
Skip โ Do not copy this file.
๐ Updating Imports When components are copied, their imports will be updated automatically. For example, if your code has:
import { Button } from "@/shadcn/ui/button"; It will be updated to:
import { Button } from "./shadcn-button"; This ensures the component works in its new location.
โ ๏ธ Error Handling If the component is not found, youโll see:
๐จ Error: Component "xyz" not found in registry!
If a dependency is missing, youโll see a warning but the installation will continue.
4 months ago
4 months ago
4 months ago
5 months ago
5 months ago
4 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
5 months ago
6 months ago
6 months ago
6 months ago
6 months ago