Skip to content

CLI Reference ​

mot is the Motanamy command-line tool. Use it to create, run and publish plugins for EA, SA and OS.

bash
npm install -g motanamy-cli   # requires Node.js 18+
mot --version

Commands at a glance ​

CommandWhat it does
mot createCreate a new plugin project
mot linkLink your installed Motanamy apps
mot tokenManage your API tokens
mot devRun your plugin inside the linked app
mot buildPackage a plugin as a ZIP (EA only)
mot publishPublish to the Motanamy Store
mot mergeMerge several EA plugins into one package
mot install-depsInstall plugin dependencies and run setup scripts
mot pluginsList your published plugins
mot downloadDownload a plugin from the store
mot deployDeploy a docker-compose project to Motanamy Cloud
mot whoamiShow the active token and linked apps

Plugin workflow ​

mot create ​

Creates a new plugin project.

bash
mot create my-plugin              # asks for the name and type
mot create my-plugin --type EA    # --type: EA | SA | OS

If the folder already exists, you're asked to confirm before it's overwritten.

Tells the CLI where your installed Motanamy apps live. Link at least one app before you run mot dev.

bash
mot link add     # link an app
mot link list    # show linked apps

mot token ​

Manages your API tokens. Get a token from core.motanamy.com → Settings.

bash
mot token add      # add a token (your first one is activated automatically)
mot token list     # list tokens; the active one is marked
mot token switch   # change the active token
mot token remove   # remove a token

mot dev ​

Runs your plugin inside the linked app for testing. Run it from inside the plugin folder.

bash
cd my-plugin
mot dev

mot build ​

Packages the plugin as a ZIP that's ready to publish. Currently EA only.

bash
mot build

mot publish ​

Publishes your plugin to the Motanamy Store. Requires an active token.

bash
mot publish

More commands ​

mot merge ​

Merges the EA plugins in the current directory into a single deployable package.

mot install-deps ​

Installs plugin dependencies and runs any configured setup scripts.

mot plugins ​

Lists the plugins you've published to the store.

mot download ​

Downloads one of your plugins from the store to your machine.

mot whoami ​

Shows the active token and the linked app paths.

Motanamy CLI — Current Configuration

  ✓ Logged in as:  my-token  (eyJhbG...WjsQ)

  Application links:
    ✓ SA  →  /Applications/Motanamy-SA
    ✓ EA  →  /Applications/MotanamyEA
      OS  →  (not set)

mot deploy ​

Deploys a docker-compose project to Motanamy Cloud.

bash
mot deploy                    # from the current directory
mot deploy ./my-project       # from a folder
mot deploy ./my-project.zip   # from a ZIP file
OptionDescription
--name <name>Project name. Taken from the config or folder name if you leave it out
--host <url>API host (default https://cloud.motanamy.com)
--user <id>Owner user ID. Falls back to project.userId, then your own account
--updateUpdate an existing project
--skip-deployUpload only, without deploying
--deployForce a deploy after --update

Optional motanamy.config.json:

json
{
  "project": { "name": "my-project", "userId": "15" },
  "deploy": {
    "include": ["apps/api/dist/**", "../database"],
    "exclude": ["node_modules", ".env"]
  },
  "preserveData": ["volumes/data"]
}

To leave files out of the upload, list them in .motanamyignore, which works like .gitignore.

Configuration & help ​

The CLI stores its settings in ~/.motanamy-cli-config.json. If that file gets corrupted, the CLI backs it up to .motanamy-cli-config.json.bak and starts with fresh settings.

bash
mot --help            # list all commands
mot help <command>    # help for one command