Skip to content

Motanamy cli Tool Guide

The motanamy-cli tool is a command-line interface that helps you create, develop, run, and upload plugins for the Standalone Application (SA), Operating System (OS), and Enterprise Application (EA) platforms.

Installation

Before using the motanamy-cli tool, make sure you have Node.js installed. You can download it from Node.js.

Install the motanamy-cli tool globally using npm:

sh
npm install -g motanamy-cli

Commands Overview

Create a New Plugin

To create a new plugin project, use the create-plugin command. Specify the type of application you are targeting (SA, OS, or EA).

sh
mot create <plugin-name> --type <application-type>

Example for creating a plugin for Enterprise Application (EA):

sh
mot create-plugin my-plugin --type EA

Example for creating a plugin for Standalone Application (SA):

sh
mot create-plugin my-plugin --type SA

Example for creating a plugin for Operating System (OS):

sh
mot create-plugin my-plugin --type OS

Run the Plugin

To run your plugin locally for testing, navigate to your plugin directory and use the run command:

sh
cd <plugin-directory>
mot run

Upload the Plugin

Before uploading your plugin, make sure you are logged in to your account using the login command:

sh
mot login

You will be prompted to enter your credentials.
After logging in, upload your plugin using the upload command:

sh
mot upload

To link an application path on your desktop, use the link command. This command allows you to select the type of application and specify the path.

sh
mot link

Display Help

To display help for the CLI tool and see a list of available commands, use the help command:

sh
mot help

Detailed Commands

create

Create a new plugin project.

Usage

sh
mot create <plugin-name> --type <application-type>

Options

  • <plugin-name>: The name of your plugin.
  • --type <application-type>: The type of application (SA, OS, EA).

Example:

sh
mot create my-plugin --type EA