Skip to content
FEMNET

Course import and export commands

Command-line tools for moving and converting courses.

IT teamDone in: Server3 steps
  1. 1

    Export a course archive

    docker compose run --rm drf python manage.py export_course_archive <course-id-or-slug> /app/media/<file>.zip

    This writes the same as Export ZIP in Course Studio.

  2. 2

    Import a PowerPoint

    docker compose run --rm drf python manage.py import_pptx_course /app/media/<file>.pptx --title "Course title"

    Options: --summary, --description, --thematic-area (ejr, srhr, cjr or unassigned), --category, --level, --user (author email), --module-titles (separated by |) and --dry-run to preview.

  3. 3

    Convert legacy courses

    docker compose run --rm drf python manage.py migrate_legacy_courses converts catalogue courses into Course Studio drafts. Use --course <uuid> for one course and --force to replace an existing draft.

Related how-tos