0.0.143 โ€ข Published 6 months ago

@akanjs/cli v0.0.143

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

6 months ago

0.0.142

6 months ago

0.0.141

6 months ago

0.0.140

6 months ago

0.0.139

6 months ago

0.0.138

6 months ago

0.0.137

6 months ago

0.0.136

6 months ago

0.0.135

6 months ago

0.0.134

6 months ago

0.0.133

6 months ago

0.0.132

6 months ago

0.0.131

6 months ago

0.0.130

6 months ago

0.0.129

6 months ago

0.0.128

6 months ago

0.0.127

6 months ago

0.0.126

6 months ago

0.0.125

6 months ago

0.0.124

6 months ago

0.0.123

6 months ago

0.0.122

6 months ago

0.0.121

6 months ago

0.0.120

6 months ago

0.0.119

6 months ago

0.0.118

6 months ago

0.0.117

6 months ago

0.0.116

6 months ago

0.0.115

6 months ago

0.0.114

6 months ago

0.0.113

6 months ago

0.0.112

6 months ago

0.0.111

6 months ago

0.0.110

6 months ago

0.0.109

6 months ago

0.0.108

6 months ago

0.0.107

6 months ago

0.0.106

6 months ago

0.0.105

6 months ago

0.0.104

6 months ago

0.0.103

6 months ago

0.0.102

6 months ago

0.0.101

6 months ago

0.0.100

6 months ago

0.0.99

6 months ago

0.0.98

6 months ago

0.0.97

6 months ago

0.0.96

6 months ago

0.0.95

6 months ago

0.0.94

6 months ago

0.0.93

6 months ago

0.0.92

6 months ago

0.0.91

6 months ago

0.0.90

6 months ago

0.0.89

6 months ago

0.0.88

6 months ago

0.0.87

6 months ago

0.0.86

6 months ago

0.0.85

6 months ago

0.0.84

6 months ago

0.0.83

6 months ago

0.0.82

6 months ago

0.0.81

6 months ago

0.0.80

6 months ago

0.0.79

6 months ago

0.0.78

6 months ago

0.0.77

6 months ago

0.0.76

6 months ago

0.0.75

6 months ago

0.0.74

6 months ago

0.0.73

6 months ago

0.0.72

6 months ago

0.0.71

6 months ago

0.0.70

6 months ago

0.0.69

6 months ago

0.0.68

6 months ago

0.0.67

6 months ago

0.0.66

6 months ago

0.0.65

6 months ago

0.0.64

6 months ago

0.0.63

6 months ago

0.0.62

6 months ago

0.0.61

6 months ago

0.0.60

6 months ago

0.0.59

6 months ago

0.0.58

6 months ago

0.0.57

6 months ago

0.0.56

6 months ago

0.0.55

6 months ago

0.0.54

6 months ago

0.0.53

6 months ago

0.0.52

6 months ago

0.0.51

6 months ago

0.0.50

6 months ago

0.0.49

6 months ago

0.0.48

6 months ago

0.0.47

6 months ago

0.0.46

6 months ago

0.0.45

6 months ago

0.0.44

6 months ago

0.0.43

6 months ago

0.0.42

6 months ago

0.0.41

6 months ago

0.0.40

6 months ago

0.0.39

6 months ago

0.0.38

6 months ago

0.0.37

6 months ago

0.0.36

6 months ago

0.0.35

6 months ago

0.0.34

7 months ago

0.0.33

7 months ago

0.0.32

7 months ago

0.0.31

7 months ago

0.0.30

7 months ago

0.0.29

7 months ago

0.0.28

7 months ago

0.0.27

7 months ago

0.0.26

7 months ago

0.0.25

8 months ago

0.0.24

8 months ago

0.0.23

8 months ago

0.0.22

8 months ago

0.0.21

8 months ago

0.0.20

8 months ago

0.0.19

8 months ago

0.0.18

8 months ago

0.0.17

8 months ago

0.0.16

8 months ago

0.0.15

8 months ago

0.0.14

8 months ago

0.0.13

8 months ago

0.0.12

8 months ago

0.0.11

8 months ago

0.0.10

8 months ago

0.0.9

8 months ago

0.0.8

8 months ago

0.0.7

8 months ago

0.0.6

8 months ago

0.0.5

8 months ago

0.0.4

8 months ago