Socket
Book a DemoInstallSign in
Socket

@kalxjs/cli

Package Overview
Dependencies
Maintainers
1
Versions
58
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@kalxjs/cli

Command Line Interface for KalxJs framework

beta
Source
npmnpm
Version
2.0.15
Version published
Maintainers
1
Created
Source

kalxjs CLI

Modern CLI tooling for kalxjs development workflow.

Installation

# Using npm
npm install -g @kalxjs/cli

# Using yarn
yarn global add @kalxjs/cli

# Using pnpm
pnpm add -g @kalxjs/cli

Quick Start

# Create a new project with interactive prompts
kalxjs create my-app

✔ Select a template
  › TypeScript + Vite
  › JavaScript + Vite
  › TypeScript + Webpack
  › Pure JavaScript

✔ Add features
  ☑ Router
  ☑ State Management
  ☑ Testing
  ☑ ESLint + Prettier
  ☑ Tailwind CSS
  ☑ PWA Support

Commands

Project Scaffolding

# Create component with TypeScript and tests
kalxjs generate component MyComponent --typescript --test

# Create view/page component
kalxjs generate view Dashboard --layout default

# Generate API service
kalxjs generate service UserAPI --rest

# Create store module
kalxjs generate store user --typescript

Development Workflow

# Start dev server with HMR
kalxjs dev --port 3000 --open

# Run unit tests
kalxjs test unit

# Run E2E tests
kalxjs test e2e

# Type check
kalxjs type-check

Build & Deploy

# Production build
kalxjs build --modern --analyze

# Deploy to various platforms
kalxjs deploy --platform vercel
kalxjs deploy --platform netlify
kalxjs deploy --platform azure

Container Support

# Generate Docker configuration
kalxjs docker init

# Build container
kalxjs docker build

# Run containerized app
kalxjs docker run

Configuration

Create kalxjs.config.ts in project root:

import { defineConfig } from '@kalxjs/cli'

export default defineConfig({
  plugins: ['@kalxjs/pwa'],
  build: {
    target: 'esnext',
    minify: 'esbuild'
  },
  test: {
    coverage: true
  }
})

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

License

This project is licensed under the MIT License.

FAQs

Package last updated on 17 May 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts