KosmoKrator

productivity

Motion CLI for Shell Scripts

Use the Motion CLI for shell scripts with headless JSON commands, schema discovery, credentials, and permission controls.

7 functions 6 read 1 write Bearer token auth

Motion CLI for Shell Scripts

Call integration functions from shell scripts with stable JSON input and output.

Use shell scripts for small local automations that need one or more integration calls. The Motion CLI uses the same integration registry as the TUI, Lua runtime, and MCP gateway, but returns predictable command output for automation.

Command Shape

# Motion CLI for Shell Scripts
kosmokrator integrations:configure motion --set access_token="$MOTION_ACCESS_TOKEN" --enable --read allow --write ask --json
kosmo integrations:call motion.motion_list_tasks '{"status":"example_status","projectId":"example_projectId","assigneeId":"example_assigneeId","limit":1,"cursor":"example_cursor"}' --json

Discovery Before Execution

Agents and scripts can inspect Motion docs and schemas before choosing a function.

kosmo integrations:docs motion --json
kosmo integrations:docs motion.motion_list_tasks --json
kosmo integrations:schema motion.motion_list_tasks --json
kosmo integrations:search "Motion" --json
kosmo integrations:list --json

Useful Motion CLI Functions

FunctionTypeParametersDescription
motion.motion_list_tasks Read status, projectId, assigneeId, limit, cursor List tasks from Motion with optional filters. Filter by status, project, or assignee. Supports cursor-based pagination.
motion.motion_get_task Read taskId Get details of a specific task in Motion by its ID. Returns the task name, description, status, assignee, due date, priority, and project.
motion.motion_create_task Write name, projectId, assigneeId, dueDate, priority, description Create a new task in Motion. Requires a task name. Optionally specify a project, assignee, due date, priority, and description. Motion will auto-schedule the task based on priorities and deadlines.
motion.motion_list_projects Read none List all projects in Motion. Returns project IDs, names, and other metadata. Use project IDs to filter tasks or create tasks in specific projects.
motion.motion_get_project Read projectId Get details of a specific project in Motion by its ID. Returns the project name, description, status, and other metadata.
motion.motion_list_schedules Read startDate, endDate List schedules from Motion within a date range. Returns scheduled tasks and events for the authenticated user.
motion.motion_get_current_user Read none Get the profile of the currently authenticated Motion user. Returns user ID, name, email, and other account details.

Automation Notes

Related Motion CLI Pages