@migration-accelerator/migration-accelerator-cli
v0.1.0
Published
CLI for Migration Accelerator: manage orgs, sites, templates, components, mappings, AI mapping, and migrations.
Maintainers
Readme
Migration Accelerator CLI (ma)
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.
Install
- Requires Node.js 18+
- After publish:
npm install -g @migration-accelerator/migration-accelerator-cli
Temporary local usage (from repo):
npm run ma -- --helpnode index.js --helpnpx @migration-accelerator/migration-accelerator-cli --help
Quick Start
- 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
Global Options
--jsonPrint raw JSON responses--quietReduce output, hide spinners--debugVerbose debug logging (includes request metadata)--org <id>Override active organization for a single command
Environment Variables
MIGRATION_ACCELERATOR_API_URLOverride API base URL (defaulthttp://localhost:8000)MA_TOKENProvide an auth token (bypasses interactive login)
Configuration
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>.
Commands Overview
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.
Contributing
- Open an issue or PR with improvements.
- Before publishing, validate with
npm packand trynpx . -- --help.
