0.0.143 โ€ข Published 8 months ago

@akanjs/cli v0.0.143

Weekly downloads
-
License
-
Repository
github
Last release
8 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

8 months ago

0.0.142

8 months ago

0.0.141

8 months ago

0.0.140

8 months ago

0.0.139

8 months ago

0.0.138

8 months ago

0.0.137

8 months ago

0.0.136

8 months ago

0.0.135

8 months ago

0.0.134

8 months ago

0.0.133

8 months ago

0.0.132

8 months ago

0.0.131

8 months ago

0.0.130

8 months ago

0.0.129

8 months ago

0.0.128

8 months ago

0.0.127

8 months ago

0.0.126

8 months ago

0.0.125

8 months ago

0.0.124

8 months ago

0.0.123

8 months ago

0.0.122

8 months ago

0.0.121

8 months ago

0.0.120

8 months ago

0.0.119

8 months ago

0.0.118

8 months ago

0.0.117

8 months ago

0.0.116

8 months ago

0.0.115

8 months ago

0.0.114

8 months ago

0.0.113

8 months ago

0.0.112

8 months ago

0.0.111

8 months ago

0.0.110

8 months ago

0.0.109

8 months ago

0.0.108

8 months ago

0.0.107

8 months ago

0.0.106

8 months ago

0.0.105

8 months ago

0.0.104

8 months ago

0.0.103

8 months ago

0.0.102

8 months ago

0.0.101

8 months ago

0.0.100

8 months ago

0.0.99

8 months ago

0.0.98

8 months ago

0.0.97

8 months ago

0.0.96

8 months ago

0.0.95

8 months ago

0.0.94

8 months ago

0.0.93

8 months ago

0.0.92

8 months ago

0.0.91

8 months ago

0.0.90

8 months ago

0.0.89

8 months ago

0.0.88

8 months ago

0.0.87

8 months ago

0.0.86

8 months ago

0.0.85

8 months ago

0.0.84

8 months ago

0.0.83

8 months ago

0.0.82

8 months ago

0.0.81

8 months ago

0.0.80

8 months ago

0.0.79

8 months ago

0.0.78

8 months ago

0.0.77

8 months ago

0.0.76

8 months ago

0.0.75

8 months ago

0.0.74

8 months ago

0.0.73

8 months ago

0.0.72

8 months ago

0.0.71

8 months ago

0.0.70

8 months ago

0.0.69

8 months ago

0.0.68

8 months ago

0.0.67

8 months ago

0.0.66

8 months ago

0.0.65

8 months ago

0.0.64

8 months ago

0.0.63

8 months ago

0.0.62

8 months ago

0.0.61

8 months ago

0.0.60

8 months ago

0.0.59

8 months ago

0.0.58

9 months ago

0.0.57

9 months ago

0.0.56

9 months ago

0.0.55

9 months ago

0.0.54

9 months ago

0.0.53

9 months ago

0.0.52

9 months ago

0.0.51

9 months ago

0.0.50

9 months ago

0.0.49

9 months ago

0.0.48

9 months ago

0.0.47

9 months ago

0.0.46

9 months ago

0.0.45

9 months ago

0.0.44

9 months ago

0.0.43

9 months ago

0.0.42

9 months ago

0.0.41

9 months ago

0.0.40

9 months ago

0.0.39

9 months ago

0.0.38

9 months ago

0.0.37

9 months ago

0.0.36

9 months ago

0.0.35

9 months ago

0.0.34

9 months ago

0.0.33

9 months ago

0.0.32

9 months ago

0.0.31

10 months ago

0.0.30

10 months ago

0.0.29

10 months ago

0.0.28

10 months ago

0.0.27

10 months ago

0.0.26

10 months ago

0.0.25

10 months ago

0.0.24

10 months ago

0.0.23

10 months ago

0.0.22

10 months ago

0.0.21

10 months ago

0.0.20

10 months ago

0.0.19

10 months ago

0.0.18

10 months ago

0.0.17

10 months ago

0.0.16

10 months ago

0.0.15

10 months ago

0.0.14

10 months ago

0.0.13

10 months ago

0.0.12

10 months ago

0.0.11

10 months ago

0.0.10

10 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago