canvas content-migrations create
canvas content-migrations create¶
Create a content migration
Synopsis¶
Create a new content migration.
Migration types: - course_copy_importer: Copy content from another course - common_cartridge_importer: Import Common Cartridge file - zip_file_importer: Import ZIP file - canvas_cartridge_importer: Import Canvas export file - qti_importer: Import QTI quiz file
Examples:
canvas content-migrations create --course-id 1 --type course_copy_importer --source-course-id 100
canvas content-migrations create --course-id 1 --type common_cartridge_importer --file export.imscc
Options¶
--copy-options string JSON with copy options
--course-id int Course ID (required)
--date-shift string JSON with date shift options
--file string Export file to import
--file-url string URL to export file
--folder-id int Target folder ID
-h, --help help for create
--selective Enable selective import
--source-course-id int Source course ID (for course_copy_importer)
--type string Migration type (required)
Options inherited from parent commands¶
--as-user int Masquerade as another user (admin feature, requires permission)
--columns strings Select specific columns to display (comma-separated)
--config string config file (default is $HOME/.canvas-cli/config.yaml)
--dry-run Print curl commands instead of executing requests
--filter string Filter results by text (case-insensitive substring match)
--instance string Canvas instance URL (overrides config)
--limit int Limit number of results for list operations (0 = unlimited)
--no-cache Disable caching of API responses
-o, --output string Output format: table, json, yaml, csv (default "table")
--show-token Show actual token in dry-run output (default: redacted)
--sort string Sort results by field (prefix with - for descending, e.g., -name)
-v, --verbose Enable verbose output
SEE ALSO¶
- canvas content-migrations - Manage content migrations