Management Commands in Course-Discovery



Sr.#

Management Commands

Description

Sr.#

Management Commands

Description

1

create_or_update_partner

Create a new Partner, or update an existing Partner

2

create_sites_and_partners

Creates Partners and their perspective Sites.

3

install_es_indexes

Install any required Elasticsearch indexes

4

add_tag_to_courses

Add single tag to a list of courses specified by uuid.

5

create_test_program

Create program with test data.

6

delete_person_dups

Delete duplicate persons in course_metadata.

7

download_course_images

Download course images to this server. This is intended to migrate image data from the edx.org marketing site to Discovery.

8

load_program_fixture

Command to populate catalog database with programs from another environment using the /program-fixtures endpoint.

9

migrate_publisher_to_course_metadata

Based on the configuration object, goes through all courses for an organization and migrates all of the course editors and course data from the publisher tables to the course metadata tables for use in Publisher Frontend.

10

publish_live_course_runs

Based on course run go_live dates, publish any runs that are due.

11

publish_uuids_to_drupal

Based on the configuration object, publishes out objects to the marketing site.

12

refresh_course_metadata

Refresh course metadata from external sources.

13

update_marketing_redirects

Redirect marketing site URLs from any old inactive course runs to newer active runs.

14

remove_unused_indexes

This command will purge the oldest indexes, freeing up disk space. This command will never delete the currently used index.

15

update_index

Freshens the index for the given app(s).

16

add_audit_seats_to_verified_course_runs

Adds audit seats to credit/verified course runs

17

import_metadata_courses

Import courses into publisher app.

18

republish_course_images

Re-publish the course images we have on publisher to discovery course objects

19

update_publisher_course_runs

Update course-runs into publisher app.