A command-line interface to manage Migration Accelerator resources and workflows.
- Auth + organization context
- Site, template, component, and content mapping management
- AI-assisted content mapping (single page and batch, with streaming)
- Migration lifecycle controls (start, logs, download, send)
- Monitoring and error reporting
For detailed command docs, see docs/cli/README.md.
- Requires Node.js 18+
- After publish:
npm install -g migration-accelerator-cli
Temporary local usage (from repo):
npm run ma -- --helpnode index.js --help
- Configure API base (optional):
export MIGRATION_ACCELERATOR_API_URL="https://your-api.example.com"
- Login:
ma login(prompts for credentials and MFA if required)
- Set organization:
ma org listma org use <orgId>
- Explore commands:
ma --helpma site list
--jsonPrint raw JSON responses--quietReduce output, hide spinners--debugVerbose debug logging (includes request metadata)--org <id>Override active organization for a single command
MIGRATION_ACCELERATOR_API_URLOverride API base URL (defaulthttp://localhost:8000)MA_TOKENProvide an auth token (bypasses interactive login)
The CLI stores user config at ~/.ma-cli/config.json, including:
apiBaseUrlLast used API basetokenAuth tokenactiveOrganizationIdSelected organizationdeviceTokenTrusted device token for MFA
You can always override organization per-command with --org <id>.
authLogin, whoami, logoutorgOrganization selection and infositeManage sites within an organizationtemplateManage template rules per sitecomponentManage component structures per sitemappingManage content mappings per siteaiAI-assisted mapping (single or batch, with optional SSE streaming)migrateManage migration lifecycle and artifactsmonitorInspect error aggregates and export reports
See details and examples in docs/cli/README.md.
- Open an issue or PR with improvements.
- Before publishing, validate with
npm packand trynpx . -- --help.