Appearance
Getting Started
Welcome to Motanamy! This guide will walk you through setting up your development environment and building your first plugin for one of our three platforms: Enterprise Application (EA), Standalone Application (SA), or Operating System (OS).
Terminology note: for EA and SA, what you build is a plugin that loads into an existing installed Motanamy app — not a separate application. For OS, it's closer to a standalone extension. Throughout this guide, "the app" always means the installed Motanamy program you download and link; "plugin" means the thing you're creating with
mot create.
Prerequisites
Before you begin, ensure you have:
- Node.js 18 or higher
- npm or yarn package manager
- Basic knowledge of JavaScript/TypeScript
- A code editor (VS Code recommended)
Step 1: Install Motanamy CLI
The Motanamy CLI is your primary tool for developing, testing, and deploying plugins.
bash
npm install -g motanamy-cliVerify the installation:
bash
mot --versionStep 2: Choose Your Platform
Motanamy offers three distinct platforms for plugin development:
Enterprise Application (EA)
Build plugins that extend the enterprise-scale EA app with advanced integration capabilities.
- Use Case: Large organizations, complex workflows, multi-user systems
- Development Focus: Scalability, security, enterprise integrations
Standalone Application (SA)
Build plugins for the SA desktop client — self-contained, no external dependencies.
- Use Case: Individual tools, utilities, specialized software
- Development Focus: Self-contained functionality, ease of deployment
Operating System (OS)
Develop system-level extensions and core OS enhancements.
- Use Case: System utilities, hardware integrations, OS customizations
- Development Focus: Low-level access, system integration, performance
Step 3: Create Your First Plugin
Choose your target platform and create a new plugin:
bash
# For Enterprise Application
mot create my-ea-plugin --type EA
# For Standalone Application
mot create my-sa-plugin --type SA
# For Operating System
mot create my-os-plugin --type OSNavigate to your new plugin directory:
bash
cd my-ea-plugin # or your chosen plugin nameStep 4: Explore the Plugin Structure
mot create scaffolds a flat version folder — there's no required src/ layout. Every .vue file you add lives directly under the version folder (group related files into feature subfolders as your plugin grows, rather than a rigid components/services/utils split):
my-plugin/
├── 1.0.0/ ← version folder
│ ├── setting.json ← plugin manifest
│ ├── script.js ← frontend registration script
│ ├── index.vue ← scaffolded starter component (rename/replace as needed)
│ ├── main.js ← backend entry point (EA only, optional, add it yourself)
│ ├── widget.vue ← dashboard widget (optional, EA/SA)
│ ├── setting.vue ← settings page (optional)
│ ├── README-AR.md
│ ├── README-EN.md
│ └── logo.png ← plugin icon
├── 1.1.0/ ← add a new folder for each new version
└── database/
└── my-plugin/
└── data.json ← initial data statesetting.json— plugin manifest (name, version, type, entry points)script.js— runs at startup; registers pages, widgets, translationsmain.js— backend routes for EA plugins (optional)database/— local JSON data, read and written via theplugins/databaseendpoint (EA) or theapimodule (SA/OS)
Step 5: Develop Your Plugin
Download the App and Link It
To run your plugin, you need an installed Motanamy app and a CLI link pointing at it:
- Download the appropriate Motanamy app based on your platform:
- For EA (Enterprise Application): Visit https://motanamy.com/en/apps/EA#download
- For SA (Standalone Application): Visit https://motanamy.com/en/apps/SA#download
- Link the CLI tool to the installed app:
bash
mot link addThis command will guide you through linking your CLI tool with the installed Motanamy app.
Start Development Server
Start the development server:
bash
mot runThis will:
- Launch the installed Motanamy app with your plugin loaded into it
- Enable hot reloading for instant updates as you edit
- Open the app in your default browser
- Provide debugging tools
Step 6: Build for Production
When ready to deploy:
bash
mot buildThis creates an optimized production build in the dist/ directory.
Step 7: Upload to Motanamy Store
To distribute your plugin through the Motanamy Store:
- Contact Our Team: Submit a request to create a developer account
- Prepare Your Plugin: Ensure it meets our upload guidelines
- Submit for Review: Our team will review and publish your plugin
- Get Feedback: We'll provide guidance if any changes are needed
Development Tools
CLI Commands Reference
bash
mot create <name> --type <EA|SA|OS> # Create new plugin
mot run # Start development server
mot build # Build for production
mot upload # Upload to store
mot help # Show all commandsAdditional Tools
- IDE Software: Enhanced development experience
- npm Package: Additional utilities and libraries
Best Practices
- Platform-Specific Development: Tailor your plugin to the target platform's capabilities
- Security: Follow security guidelines for each platform
- Performance: Optimize for the platform's expected usage patterns
- Testing: Write comprehensive tests before uploading
- Documentation: Include clear README and inline comments
Troubleshooting
Common Issues
CLI not found: Ensure the CLI is installed globally and in your PATH Platform errors: Verify you're targeting the correct platform Build failures: Check for syntax errors and missing dependencies
Getting Help
- Community Forums: Connect with other developers
- Support Contact: Direct assistance from our team
- FAQs: Quick answers to common questions
Next Steps
- Explore Plugin Development guides for advanced techniques
- Check out Tutorials for platform-specific examples
- Join our Community to share your plugins and get feedback
Ready to build something amazing? Start with mot create and bring your ideas to life on Motanamy platforms!