0.0.143 โ€ข Published 4 months ago

@akanjs/cli v0.0.143

Weekly downloads
-
License
-
Repository
github
Last release
4 months ago

โšก AkanJS CLI

The official command-line interface for the AkanJS ecosystem, providing powerful development tools for creating, managing, and deploying modern web applications with ease.

๐Ÿš€ Get Started

Prerequisites

  • Node.js >=23.x
  • pnpm >=10.x
  • docker
  • (temporary) access permission to akan-team github organization

How to create your project

npm install -g @akanjs/cli --latest
# or if you want to update, run below
# npm update -g @akanjs/cli --latest

akan create-workspace
# workspace name?
# application name?

How to start your project

cd <workspace-name> && akan start <app-name> --open

you can navigate to default webpage

Recipes

# set llm model
akan set-llm

# create module
akan create-module

# create scalar with ai (experimental)
akan create-scalar

โœจ Features

The @akanjs/cli is a comprehensive development toolkit that streamlines the entire application lifecycle:

๐Ÿ—๏ธ Workspace Management (workspace)

Complete workspace and project management:

  • ๐Ÿš€ Project Initialization
    • create-workspace - Create new AkanJS workspace with organization setup
    • generate-mongo - Generate MongoDB configuration and setup
    • lint / lint-all - Code linting with auto-fix capabilities

๐Ÿ“ฑ Application Lifecycle (application)

Full-stack application development and deployment:

  • ๐Ÿ”ง Application Management

    • create-application - Scaffold new applications with templates
    • remove-application - Clean application removal
    • sync-application - Synchronize application dependencies
  • ๐Ÿ—๏ธ Build System

    • build - Complete application build
    • build-backend - Server-side build optimization
    • build-frontend - Client-side build with Next.js
    • build-csr - Client-side rendering build
    • build-ios - iOS native app compilation
    • build-android - Android native app compilation
  • ๐Ÿš€ Development Server

    • start - Full-stack development server
    • start-backend - GraphQL backend server
    • start-frontend - Next.js frontend server with Turbo support
    • start-csr - Client-side rendering server
    • start-ios - iOS simulator with live reload
    • start-android - Android emulator with live reload
  • ๐Ÿ“ฆ Release Management

    • release-ios - iOS App Store deployment
    • release-android - Google Play deployment
    • release-source - Source code release with versioning
  • ๐Ÿ—„๏ธ Database Operations

    • dump-database - Database backup across environments
    • restore-database - Database restoration with environment selection
    • pull-database - Pull remote database locally
    • dbup / dbdown - Local database container management

๐Ÿ“š Library Management (library)

Modular library system for code reusability:

  • ๐Ÿ“ฆ Library Operations

    • create-library - Create new shared libraries
    • remove-library - Clean library removal
    • sync-library - Synchronize library dependencies
    • install-library - Install existing libraries into workspace
  • ๐Ÿ”„ Version Control Integration

    • push-library - Push library changes to remote repository
    • pull-library - Pull latest library updates

๐Ÿงฉ Module Development (module)

AI-powered module generation and management:

  • ๐Ÿค– Smart Module Creation

    • create-module - Generate modules with AI assistance
    • create-scalar - Create scalar data models
    • remove-module - Module cleanup with dependency checks
  • ๐ŸŽจ Component Generation

    • create-view - Generate React view components
    • create-unit - Create reusable unit components
    • create-template - Generate component templates

๐Ÿ“„ Page Generation (page)

Dynamic page scaffolding:

  • ๐Ÿ“ Page Management
    • create-page - Generate Next.js pages with routing

โ˜๏ธ Cloud Integration (cloud)

Seamless cloud services and AI integration:

  • ๐Ÿ” Authentication

    • login / logout - Cloud service authentication
    • User session and credential management
  • ๐Ÿค– AI Development Assistant

    • set-llm / reset-llm - Configure AI language models
    • ask - Interactive AI development assistance
  • ๐Ÿš€ Deployment

    • deploy-akan - Deploy to AkanJS cloud infrastructure
    • update - Update CLI and cloud integrations

๐Ÿ“ฆ Package Operations (package)

NPM package management and publishing:

  • ๐Ÿ”ง Package Lifecycle
    • Package building and optimization
    • NPM publishing with versioning
    • Dependency management

๐Ÿ“– Usage Examples

Workspace Management

# Create new workspace
akan create-workspace "acme-corp" --app "web-app" --dir "./projects"

# Setup MongoDB for development
akan generate-mongo

# Lint entire workspace
akan lint-all --fix

Application Development

# Create new application
akan create-application "mobile-app" --start

# Start full development environment
akan start web-app --open

# Build for production
akan build web-app

# Start backend only
akan start-backend web-app --open  # Opens GraphQL playground

# Build and start mobile app
akan build-ios mobile-app
akan start-ios mobile-app --open --release

Library Management

# Create shared library
akan create-library "ui-components"

# Install existing library
akan install-library "util"

# Update library from remote
akan pull-library "shared" --branch main

# Push library changes (development)
akan push-library "ui-components" --branch feature/new-buttons

AI-Powered Module Creation

# Create module with AI assistance
akan create-module "user-profile" \
  --description "User profile management with avatar upload" \
  --schema-description "User entity with profile fields and file relationships" \
  --ai

# Create scalar data model
akan create-scalar "address" \
  --description "Address information for users" \
  --schema-description "Street, city, country, postal code fields"

# Generate view components
akan create-view  # Interactive selection
akan create-unit  # Interactive selection

Cloud & AI Integration

# Setup cloud authentication
akan login

# Configure AI assistant
akan set-llm

# Get AI development help
akan ask "How do I implement user authentication with JWT?"

# Deploy to cloud
akan deploy-akan

Database Operations

# Backup production database
akan dump-database web-app --environment main

# Restore from staging to development
akan restore-database web-app --source develop --target debug

# Pull remote database locally
akan pull-database web-app --env debug --dump

# Start local database
akan dbup

๐Ÿ—๏ธ Architecture

The CLI follows a modular command structure:

pkgs/@akanjs/cli/
โ”œโ”€โ”€ src/
โ”‚   โ”œโ”€โ”€ workspace/       # Workspace management commands
โ”‚   โ”œโ”€โ”€ application/     # Application lifecycle commands
โ”‚   โ”œโ”€โ”€ library/         # Library management commands
โ”‚   โ”œโ”€โ”€ module/          # AI-powered module generation
โ”‚   โ”œโ”€โ”€ page/           # Page scaffolding commands
โ”‚   โ”œโ”€โ”€ package/        # NPM package operations
โ”‚   โ”œโ”€โ”€ cloud/          # Cloud services integration
โ”‚   โ””โ”€โ”€ templates/      # Code generation templates
โ”œโ”€โ”€ index.ts            # CLI entry point
โ””โ”€โ”€ package.json        # Dependencies and configuration

๐Ÿค– AI-Powered Development

The CLI integrates advanced AI capabilities:

  • ๐Ÿง  Smart Code Generation - AI analyzes requirements and generates optimized code
  • ๐Ÿ“‹ Schema Intelligence - Automatic database schema generation from descriptions
  • ๐Ÿ” Context-Aware Assistance - AI understands your project structure for better suggestions
  • โšก Rapid Prototyping - Generate complete modules with business logic in seconds

๐Ÿ› ๏ธ Advanced Features

  • ๐Ÿ”„ Hot Reload - Instant development feedback across all platforms
  • ๐Ÿ“ฑ Cross-Platform - Build web, iOS, and Android from single codebase
  • ๐ŸŽฏ TypeScript First - Full TypeScript support with strict type checking
  • ๐ŸŒ GraphQL Integration - Built-in GraphQL server and client generation
  • ๐Ÿ” Security Built-in - JWT authentication, RBAC, and security best practices
  • ๐Ÿ“Š Performance Monitoring - Built-in performance tracking and optimization
  • ๐Ÿงช Testing Framework - Integrated Jest and Playwright testing
  • ๐Ÿ“ฆ Micro-frontends - Support for modular frontend architecture

๐Ÿค Contributing

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/amazing-feature)
  3. Commit your changes (git commit -m 'Add amazing CLI feature')
  4. Push to the branch (git push origin feature/amazing-feature)
  5. Open a Pull Request

๐Ÿ“„ License

This project is part of the AkanJS ecosystem. See the main repository for license information.

๐Ÿ”— Related Packages


0.0.143

4 months ago

0.0.142

4 months ago

0.0.141

4 months ago

0.0.140

4 months ago

0.0.139

4 months ago

0.0.138

4 months ago

0.0.137

4 months ago

0.0.136

4 months ago

0.0.135

4 months ago

0.0.134

4 months ago

0.0.133

4 months ago

0.0.132

4 months ago

0.0.131

4 months ago

0.0.130

4 months ago

0.0.129

4 months ago

0.0.128

4 months ago

0.0.127

4 months ago

0.0.126

4 months ago

0.0.125

4 months ago

0.0.124

4 months ago

0.0.123

4 months ago

0.0.122

4 months ago

0.0.121

4 months ago

0.0.120

4 months ago

0.0.119

4 months ago

0.0.118

4 months ago

0.0.117

4 months ago

0.0.116

4 months ago

0.0.115

4 months ago

0.0.114

4 months ago

0.0.113

4 months ago

0.0.112

4 months ago

0.0.111

4 months ago

0.0.110

4 months ago

0.0.109

4 months ago

0.0.108

4 months ago

0.0.107

4 months ago

0.0.106

4 months ago

0.0.105

4 months ago

0.0.104

4 months ago

0.0.103

4 months ago

0.0.102

4 months ago

0.0.101

4 months ago

0.0.100

4 months ago

0.0.99

4 months ago

0.0.98

4 months ago

0.0.97

4 months ago

0.0.96

4 months ago

0.0.95

4 months ago

0.0.94

4 months ago

0.0.93

4 months ago

0.0.92

4 months ago

0.0.91

4 months ago

0.0.90

4 months ago

0.0.89

4 months ago

0.0.88

4 months ago

0.0.87

4 months ago

0.0.86

4 months ago

0.0.85

4 months ago

0.0.84

4 months ago

0.0.83

4 months ago

0.0.82

4 months ago

0.0.81

4 months ago

0.0.80

4 months ago

0.0.79

4 months ago

0.0.78

4 months ago

0.0.77

4 months ago

0.0.76

4 months ago

0.0.75

4 months ago

0.0.74

4 months ago

0.0.73

4 months ago

0.0.72

4 months ago

0.0.71

4 months ago

0.0.70

4 months ago

0.0.69

4 months ago

0.0.68

4 months ago

0.0.67

4 months ago

0.0.66

4 months ago

0.0.65

4 months ago

0.0.64

4 months ago

0.0.63

4 months ago

0.0.62

5 months ago

0.0.61

5 months ago

0.0.60

5 months ago

0.0.59

5 months ago

0.0.58

5 months ago

0.0.57

5 months ago

0.0.56

5 months ago

0.0.55

5 months ago

0.0.54

5 months ago

0.0.53

5 months ago

0.0.52

5 months ago

0.0.51

5 months ago

0.0.50

5 months ago

0.0.49

5 months ago

0.0.48

5 months ago

0.0.47

5 months ago

0.0.46

5 months ago

0.0.45

5 months ago

0.0.44

5 months ago

0.0.43

5 months ago

0.0.42

5 months ago

0.0.41

5 months ago

0.0.40

5 months ago

0.0.39

5 months ago

0.0.38

5 months ago

0.0.37

5 months ago

0.0.36

5 months ago

0.0.35

5 months ago

0.0.34

5 months ago

0.0.33

5 months ago

0.0.32

5 months ago

0.0.31

6 months ago

0.0.30

6 months ago

0.0.29

6 months ago

0.0.28

6 months ago

0.0.27

6 months ago

0.0.26

6 months ago

0.0.25

6 months ago

0.0.24

6 months ago

0.0.23

6 months ago

0.0.22

6 months ago

0.0.21

6 months ago

0.0.20

6 months ago

0.0.19

6 months ago

0.0.18

6 months ago

0.0.17

6 months ago

0.0.16

6 months ago

0.0.15

6 months ago

0.0.14

6 months ago

0.0.13

6 months ago

0.0.12

6 months ago

0.0.11

6 months ago

0.0.10

6 months ago

0.0.9

6 months ago

0.0.8

6 months ago

0.0.7

6 months ago

0.0.6

6 months ago

0.0.5

6 months ago

0.0.4

6 months ago