@kernl-sdk/cli
v0.4.0
Published
CLI for managing kernl applications
Maintainers
Readme
@kernl-sdk/cli
CLI for scaffolding and managing kernl applications.
Installation
npm install -g @kernl-sdk/cli
# or
pnpm add -g @kernl-sdk/cliUsage
Create a new kernl application
kernl init my-app
cd my-app
pnpm devThis will:
- Create a new directory with your project name
- Scaffold a basic kernl application structure
- Set up an example agent (Jarvis) with a math toolkit
- Install dependencies
- Initialize a git repository
Options
kernl init <project-name> [options]
Options:
-p, --package-manager <manager> Package manager to use (pnpm, npm, yarn)
--skip-install Skip dependency installation
--skip-git Skip git initialization
-h, --help Display help for commandProject Structure
The CLI creates the following structure:
my-app/
├── src/
│ ├── agents/
│ │ └── jarvis.ts # Example agent
│ ├── toolkits/
│ │ └── math.ts # Example toolkit with math tools
│ ├── lib/
│ │ └── env.ts # Utilities
│ └── index.ts # Application entry point
├── package.json
├── tsconfig.json
└── .gitignoreWhat's Included
- Example Agent: A pre-configured agent with access to a math toolkit
- Math Toolkit: Basic math operations (add, subtract, multiply, divide) as tools
- TypeScript Configuration: Pre-configured with path aliases (
@/*) - Development Scripts:
pnpm devandpnpm startready to go
Requirements
- Node.js 18+
- A package manager (pnpm, npm, or yarn)
License
MIT
