@akashic-devkit/cli
v1.0.5
Published
Akashic DevKit CLI
Readme
@akashic-devkit/cli
The CLI tool for Akashic DevKit. It allows users to easily add components and hooks from your registry to their projects.
Installation
# Using pnpm
pnpm dlx @akashic-devkit/cli
# Using npx
npx @akashic-devkit/cli
# Global install
pnpm add -g @akashic-devkit/cliNote: The command name (
akashic) depends on how you configure thebinfield inpackage.json.
Usage
Initialize
Initialize the configuration file (akashic.json) in your project.
akashic initAdd Component/Hook
Add a component or hook to your project.
akashic add <name>Example:
akashic add button
akashic add use-toastList Available Items
List all available components and hooks in the registry.
akashic list
# or
akashic lsShow Info
Display CLI information.
akashic infoConfiguration (akashic.json)
{
"aliases": {
"components": "@/components",
"hooks": "@/hooks"
},
}- aliases: Where to place installed components/hooks.
