@akanjs/cli 0.0.141 โ†’ 0.0.143

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -1,11 +1,17 @@
1
- # Prerequisites
1
+ # โšก AkanJS CLI
2
+
3
+ The official command-line interface for the AkanJS ecosystem, providing powerful development tools for creating, managing, and deploying modern web applications with ease.
4
+
5
+ ## ๐Ÿš€ Get Started
6
+
7
+ ### Prerequisites
2
8
 
3
9
  - Node.js >=23.x
4
10
  - pnpm >=10.x
5
11
  - docker
6
12
  - (temporary) access permission to akan-team github organization
7
13
 
8
- # How to create your project
14
+ ### How to create your project
9
15
 
10
16
  ```bash
11
17
  npm install -g @akanjs/cli --latest
@@ -17,7 +23,7 @@ akan create-workspace
17
23
  # application name?
18
24
  ```
19
25
 
20
- # How to start your project
26
+ ### How to start your project
21
27
 
22
28
  ```bash
23
29
  cd <workspace-name> && akan start <app-name> --open
@@ -27,7 +33,7 @@ you can navigate to default webpage
27
33
 
28
34
  - home: http://localhost:4200
29
35
 
30
- # Recipes
36
+ ### Recipes
31
37
 
32
38
  ```bash
33
39
  # set llm model
@@ -39,3 +45,287 @@ akan create-module
39
45
  # create scalar with ai (experimental)
40
46
  akan create-scalar
41
47
  ```
48
+
49
+ ## โœจ Features
50
+
51
+ The `@akanjs/cli` is a comprehensive development toolkit that streamlines the entire application lifecycle:
52
+
53
+ ### ๐Ÿ—๏ธ **Workspace Management** (`workspace`)
54
+
55
+ Complete workspace and project management:
56
+
57
+ - **๐Ÿš€ Project Initialization**
58
+ - `create-workspace` - Create new AkanJS workspace with organization setup
59
+ - `generate-mongo` - Generate MongoDB configuration and setup
60
+ - `lint` / `lint-all` - Code linting with auto-fix capabilities
61
+
62
+ ### ๐Ÿ“ฑ **Application Lifecycle** (`application`)
63
+
64
+ Full-stack application development and deployment:
65
+
66
+ - **๐Ÿ”ง Application Management**
67
+
68
+ - `create-application` - Scaffold new applications with templates
69
+ - `remove-application` - Clean application removal
70
+ - `sync-application` - Synchronize application dependencies
71
+
72
+ - **๐Ÿ—๏ธ Build System**
73
+
74
+ - `build` - Complete application build
75
+ - `build-backend` - Server-side build optimization
76
+ - `build-frontend` - Client-side build with Next.js
77
+ - `build-csr` - Client-side rendering build
78
+ - `build-ios` - iOS native app compilation
79
+ - `build-android` - Android native app compilation
80
+
81
+ - **๐Ÿš€ Development Server**
82
+
83
+ - `start` - Full-stack development server
84
+ - `start-backend` - GraphQL backend server
85
+ - `start-frontend` - Next.js frontend server with Turbo support
86
+ - `start-csr` - Client-side rendering server
87
+ - `start-ios` - iOS simulator with live reload
88
+ - `start-android` - Android emulator with live reload
89
+
90
+ - **๐Ÿ“ฆ Release Management**
91
+
92
+ - `release-ios` - iOS App Store deployment
93
+ - `release-android` - Google Play deployment
94
+ - `release-source` - Source code release with versioning
95
+
96
+ - **๐Ÿ—„๏ธ Database Operations**
97
+ - `dump-database` - Database backup across environments
98
+ - `restore-database` - Database restoration with environment selection
99
+ - `pull-database` - Pull remote database locally
100
+ - `dbup` / `dbdown` - Local database container management
101
+
102
+ ### ๐Ÿ“š **Library Management** (`library`)
103
+
104
+ Modular library system for code reusability:
105
+
106
+ - **๐Ÿ“ฆ Library Operations**
107
+
108
+ - `create-library` - Create new shared libraries
109
+ - `remove-library` - Clean library removal
110
+ - `sync-library` - Synchronize library dependencies
111
+ - `install-library` - Install existing libraries into workspace
112
+
113
+ - **๐Ÿ”„ Version Control Integration**
114
+ - `push-library` - Push library changes to remote repository
115
+ - `pull-library` - Pull latest library updates
116
+
117
+ ### ๐Ÿงฉ **Module Development** (`module`)
118
+
119
+ AI-powered module generation and management:
120
+
121
+ - **๐Ÿค– Smart Module Creation**
122
+
123
+ - `create-module` - Generate modules with AI assistance
124
+ - `create-scalar` - Create scalar data models
125
+ - `remove-module` - Module cleanup with dependency checks
126
+
127
+ - **๐ŸŽจ Component Generation**
128
+ - `create-view` - Generate React view components
129
+ - `create-unit` - Create reusable unit components
130
+ - `create-template` - Generate component templates
131
+
132
+ ### ๐Ÿ“„ **Page Generation** (`page`)
133
+
134
+ Dynamic page scaffolding:
135
+
136
+ - **๐Ÿ“ Page Management**
137
+ - `create-page` - Generate Next.js pages with routing
138
+
139
+ ### โ˜๏ธ **Cloud Integration** (`cloud`)
140
+
141
+ Seamless cloud services and AI integration:
142
+
143
+ - **๐Ÿ” Authentication**
144
+
145
+ - `login` / `logout` - Cloud service authentication
146
+ - User session and credential management
147
+
148
+ - **๐Ÿค– AI Development Assistant**
149
+
150
+ - `set-llm` / `reset-llm` - Configure AI language models
151
+ - `ask` - Interactive AI development assistance
152
+
153
+ - **๐Ÿš€ Deployment**
154
+ - `deploy-akan` - Deploy to AkanJS cloud infrastructure
155
+ - `update` - Update CLI and cloud integrations
156
+
157
+ ### ๐Ÿ“ฆ **Package Operations** (`package`)
158
+
159
+ NPM package management and publishing:
160
+
161
+ - **๐Ÿ”ง Package Lifecycle**
162
+ - Package building and optimization
163
+ - NPM publishing with versioning
164
+ - Dependency management
165
+
166
+ ## ๐Ÿ“– Usage Examples
167
+
168
+ ### Workspace Management
169
+
170
+ ```bash
171
+ # Create new workspace
172
+ akan create-workspace "acme-corp" --app "web-app" --dir "./projects"
173
+
174
+ # Setup MongoDB for development
175
+ akan generate-mongo
176
+
177
+ # Lint entire workspace
178
+ akan lint-all --fix
179
+ ```
180
+
181
+ ### Application Development
182
+
183
+ ```bash
184
+ # Create new application
185
+ akan create-application "mobile-app" --start
186
+
187
+ # Start full development environment
188
+ akan start web-app --open
189
+
190
+ # Build for production
191
+ akan build web-app
192
+
193
+ # Start backend only
194
+ akan start-backend web-app --open # Opens GraphQL playground
195
+
196
+ # Build and start mobile app
197
+ akan build-ios mobile-app
198
+ akan start-ios mobile-app --open --release
199
+ ```
200
+
201
+ ### Library Management
202
+
203
+ ```bash
204
+ # Create shared library
205
+ akan create-library "ui-components"
206
+
207
+ # Install existing library
208
+ akan install-library "util"
209
+
210
+ # Update library from remote
211
+ akan pull-library "shared" --branch main
212
+
213
+ # Push library changes (development)
214
+ akan push-library "ui-components" --branch feature/new-buttons
215
+ ```
216
+
217
+ ### AI-Powered Module Creation
218
+
219
+ ```bash
220
+ # Create module with AI assistance
221
+ akan create-module "user-profile" \
222
+ --description "User profile management with avatar upload" \
223
+ --schema-description "User entity with profile fields and file relationships" \
224
+ --ai
225
+
226
+ # Create scalar data model
227
+ akan create-scalar "address" \
228
+ --description "Address information for users" \
229
+ --schema-description "Street, city, country, postal code fields"
230
+
231
+ # Generate view components
232
+ akan create-view # Interactive selection
233
+ akan create-unit # Interactive selection
234
+ ```
235
+
236
+ ### Cloud & AI Integration
237
+
238
+ ```bash
239
+ # Setup cloud authentication
240
+ akan login
241
+
242
+ # Configure AI assistant
243
+ akan set-llm
244
+
245
+ # Get AI development help
246
+ akan ask "How do I implement user authentication with JWT?"
247
+
248
+ # Deploy to cloud
249
+ akan deploy-akan
250
+ ```
251
+
252
+ ### Database Operations
253
+
254
+ ```bash
255
+ # Backup production database
256
+ akan dump-database web-app --environment main
257
+
258
+ # Restore from staging to development
259
+ akan restore-database web-app --source develop --target debug
260
+
261
+ # Pull remote database locally
262
+ akan pull-database web-app --env debug --dump
263
+
264
+ # Start local database
265
+ akan dbup
266
+ ```
267
+
268
+ ## ๐Ÿ—๏ธ Architecture
269
+
270
+ The CLI follows a modular command structure:
271
+
272
+ ```
273
+ pkgs/@akanjs/cli/
274
+ โ”œโ”€โ”€ src/
275
+ โ”‚ โ”œโ”€โ”€ workspace/ # Workspace management commands
276
+ โ”‚ โ”œโ”€โ”€ application/ # Application lifecycle commands
277
+ โ”‚ โ”œโ”€โ”€ library/ # Library management commands
278
+ โ”‚ โ”œโ”€โ”€ module/ # AI-powered module generation
279
+ โ”‚ โ”œโ”€โ”€ page/ # Page scaffolding commands
280
+ โ”‚ โ”œโ”€โ”€ package/ # NPM package operations
281
+ โ”‚ โ”œโ”€โ”€ cloud/ # Cloud services integration
282
+ โ”‚ โ””โ”€โ”€ templates/ # Code generation templates
283
+ โ”œโ”€โ”€ index.ts # CLI entry point
284
+ โ””โ”€โ”€ package.json # Dependencies and configuration
285
+ ```
286
+
287
+ ## ๐Ÿค– AI-Powered Development
288
+
289
+ The CLI integrates advanced AI capabilities:
290
+
291
+ - **๐Ÿง  Smart Code Generation** - AI analyzes requirements and generates optimized code
292
+ - **๐Ÿ“‹ Schema Intelligence** - Automatic database schema generation from descriptions
293
+ - **๐Ÿ” Context-Aware Assistance** - AI understands your project structure for better suggestions
294
+ - **โšก Rapid Prototyping** - Generate complete modules with business logic in seconds
295
+
296
+ ## ๐Ÿ› ๏ธ Advanced Features
297
+
298
+ - **๐Ÿ”„ Hot Reload** - Instant development feedback across all platforms
299
+ - **๐Ÿ“ฑ Cross-Platform** - Build web, iOS, and Android from single codebase
300
+ - **๐ŸŽฏ TypeScript First** - Full TypeScript support with strict type checking
301
+ - **๐ŸŒ GraphQL Integration** - Built-in GraphQL server and client generation
302
+ - **๐Ÿ” Security Built-in** - JWT authentication, RBAC, and security best practices
303
+ - **๐Ÿ“Š Performance Monitoring** - Built-in performance tracking and optimization
304
+ - **๐Ÿงช Testing Framework** - Integrated Jest and Playwright testing
305
+ - **๐Ÿ“ฆ Micro-frontends** - Support for modular frontend architecture
306
+
307
+ ## ๐Ÿค Contributing
308
+
309
+ 1. Fork the repository
310
+ 2. Create your feature branch (`git checkout -b feature/amazing-feature`)
311
+ 3. Commit your changes (`git commit -m 'Add amazing CLI feature'`)
312
+ 4. Push to the branch (`git push origin feature/amazing-feature`)
313
+ 5. Open a Pull Request
314
+
315
+ ## ๐Ÿ“„ License
316
+
317
+ This project is part of the AkanJS ecosystem. See the main repository for license information.
318
+
319
+ ## ๐Ÿ”— Related Packages
320
+
321
+ - [`@akanjs/devkit`](../devkit) - Development toolkit and command infrastructure
322
+ - [`@akanjs/base`](../base) - Core foundation
323
+ - [`@akanjs/common`](../common) - Shared utilities
324
+ - [`@akanjs/nest`](../nest) - NestJS integrations
325
+ - [`@akanjs/next`](../next) - Next.js utilities
326
+
327
+ ---
328
+
329
+ <p align="center">
330
+ <strong>Built with โค๏ธ by the AkanJS team</strong>
331
+ </p>