lengath
v1.0.0
Published
Lengath CLI - AppStore Platform & Development Toolkit. Create apps, upload APKs, manage plugins, and publish to the Lengath AppStore.
Maintainers
Readme
Lengath CLI
Lengath CLI is a comprehensive command-line tool for creating applications, uploading to the Lengath AppStore, managing plugins, and building projects with Node.js, React, and more.
🚀 Installation
npm install -g lengathOr use directly with npx:
npx lengath --help📱 Commands
Create a New App
lengath app new
# or
npx lengath app new --name "My App" --email [email protected]Interactive prompts will guide you through:
- App name
- Author email
- Project type (Node.js, React, HTML, Plugin)
Setup Node.js Project
lengath nodejs
# or
npx lengath nodejs --name "my-project" --template expressTemplates available:
basic- Simple Node.js appexpress- Express.js serverreact- React applicationfullstack- Express + React fullstack
Upload App to AppStore
lengath upload
# or
npx lengath upload --name "My App" --dir ./my-appThe upload command:
- Packages your folder into a ZIP
- Uploads to Lengath AppStore
- Makes it available for download
- Publishes on the website
Plugin System
Create a plugin:
lengath plugin createUpload a plugin:
lengath plugin uploadInstall a plugin:
lengath plugin install <plugin-name>List plugins:
lengath plugin listPlugin File Structure
Every plugin must have:
configp.plugin.json- Plugin configuration (name, version, permissions, etc.)main.plugin.js- Main plugin code (JavaScript class)
Example configp.plugin.json:
{
"name": "my-plugin",
"version": "1.0.0",
"description": "A Lengath plugin",
"author": "[email protected]",
"main": "main.plugin.js",
"type": "plugin",
"permissions": ["storage", "network"],
"config": {
"enabled": true,
"autoStart": false
}
}Authentication
Register (no Google account needed):
lengath registerLogin:
lengath loginCheck status:
lengath whoamiLogout:
lengath logoutAPI Token
Your API token is generated when you register. Find it at:
- CLI:
lengath token - Website: https://lengath.store (Settings > API Token)
Regenerate token:
lengath token --regenerateConfiguration
# Set API token
lengath config --token YOUR_TOKEN
# Set server URL
lengath config --server https://lengath.store
# Show current config
lengath config --showInitialize in Existing Project
lengath init🔑 Getting Your API Token
- Register at Lengath:
lengath register(username-based, no Google needed) - Go to Settings > API Token on the website
- Or use CLI:
lengath token - Configure:
lengath config --token YOUR_TOKEN
🌐 Website
Visit https://lengath.store to:
- Browse and download apps
- Upload apps via web interface
- Manage your plugins
- Get your API token
📄 License
MIT
