AxionJS CLI
Use the AxionJS CLI to initialize, add components, and manage hooks in your project.
AxionJS CLI
The AxionJS CLI helps you quickly scaffold, configure, and extend your project with components, hooks, and utilities.
init
Initialize configuration and dependencies for your project.
This command will:
- Install required dependencies
- Add utility functions
- Configure CSS variables for themeing
- Set up import aliases and project structure
- Create a components.json file
CLI Experience
The init command provides a beautiful, interactive setup experience:
Options
add
Add components, blocks, charts and hooks to your project.
Add a Component
The following command provides a list of all available ui components:
Interactive Component Selection
When you run the add command without specifying a component, you’ll get an interactive selection menu:
Options
Add a Hook
Although you can add hooks directly using the add command but if you want to see a list of available hooks you can use its subcommand “hook” as:
This will give u the list of all available hooks
Here is how the Hooks are added as a subcommand of add
:
Options
Troubleshooting
- If you see errors about missing files or invalid JSON, ensure your project directory is set up correctly and all required files exist.
- For network or registry errors, check your internet connection and proxy settings.
More
For more details, visit the GitHub repository or open an issue for support.