Skip to main content
Package and deploy your agent to Motus Cloud. motus deploy opens an authentication dialog similar to motus login when the user is unauthenticated.

Usage

Options

On your first deploy, you must provide either --name or --project-id. After a successful deploy, Motus writes project_id, build_id, and import_path to motus.toml in your project directory, so subsequent deploys can run without any flags.

How it works

When you run motus deploy, it:
  1. Validates your import path by importing it locally.
  2. Resolves or creates the project using --project-id or --name.
  3. Packs your project files into a .tar.zst archive (skipping dotfiles, __pycache__, .pyc, virtualenvs, and .gitignore-excluded paths) and uploads them — or, for Git deploys, instructs the build service to clone the repository directly.
  4. Streams build status via SSE: queuedbuildingbuiltdeployingdeployedhealthy.

Examples

First deploy

Subsequent deploy

Deploy with secrets

Deploy from a Git repository