wp llms course generate

Generates some courses.

OPTIONS OPTIONS

[--count=<count>]
Number of items to generate.
---
default: 10
---
[--format=<format>]
Render generation in specific format.
---
default: progress
options:
– progress
– ids
---
[--date_created=<date_created>]
Creation date. Format: Y-m-d H:i:s
[--date_created_gmt=<date_created_gmt>]
Creation date (in GMT). Format: Y-m-d H:i:s
[--menu_order=<menu_order>]
Creation date (in GMT). Format: Y-m-d H:i:s
---
default: 0
---
--title=<title>
Post title.
--content=<content>
The HTML content of the post.
[--excerpt=<excerpt>]
The HTML excerpt of the post.
[--slug=<slug>]
Post URL slug.
[--status=<status>]
The publication status of the post.
---
default: publish
options:
– publish
– future
– draft
– pending
– private
---
[--password=<password>]
Password used to protect access to the content.
[--featured_media=<featured_media>]
Featured image ID.
[--comment_status=<comment_status>]
Post comment status. Default comment status dependent upon general WordPress post discussion settings.
---
default: open
options:
– open
– closed
---
[--ping_status=<ping_status>]
Post ping status. Default ping status dependent upon general WordPress post discussion settings.
---
default: open
options:
– open
– closed
---
[--catalog_visibility=<catalog_visibility>]
Visibility of the course in catalogs and search results.
---
default: catalog_search
options:
– catalog_search
– catalog
– search
– hidden
---
[--categories=<categories>]
List of course categories.
[--tags=<tags>]
List of course tags.
[--difficulties=<difficulties>]
List of course difficulties.
[--tracks=<tracks>]
List of course tracks.
[--instructors=<instructors>]
List of course instructors. Defaults to current user when creating a new post.
[--audio_embed=<audio_embed>]
URL to an oEmbed enable audio URL.
[--video_embed=<video_embed>]
URL to an oEmbed enable video URL.
[--capacity_enabled=<capacity_enabled>]
Determines if an enrollment capacity limit is enabled.
---
default: false
---
[--capacity_limit=<capacity_limit>]
Number of students who can be enrolled in the course before enrollment closes.
[--capacity_message=<capacity_message>]
Message displayed when enrollment capacity has been reached.
[--prerequisite=<prerequisite>]
Course ID of the prerequisite course.
[--prerequisite_track=<prerequisite_track>]
Term ID of a prerequisite track.
[--length=<length>]
User defined course length.
[--restricted_message=<restricted_message>]
Message displayed when non-enrolled visitors try to access restricted course content (lessons, quizzes, etc..) directly.
---
default: >
You must enroll in this course to access
course content.
---
[--access_closes_date=<access_closes_date>]
Date when the course closes. After this date enrolled students may no longer view and interact with the restricted course content.
If blank the course is open indefinitely after the the access_opens_date has passed.
Does not affect course enrollment, see enrollment_opens_date to control the course enrollment close date.
Format: Y-m-d H:i:s.
[--access_closes_message=<access_closes_message>]
Message displayed to enrolled students when the course is accessed after the access_closes_date has passed.
---
default: ‘This course closed on [lifterlms_course_info id=”{{course_id}}” key=”end_date”].’
---
[--access_opens_date=<access_opens_date>]
Date when the course opens, allowing enrolled students to begin to view and interact with the restricted course content.
If blank the course is open until after the access_closes_date has passed.
Does not affect course enrollment, see enrollment_opens_date to control the course enrollment start date.
Format: Y-m-d H:i:s.
[--access_opens_message=<access_opens_message>]
Message displayed to enrolled students when the course is accessed before the access_opens_date has passed.
---
default: ‘This course opens on [lifterlms_course_info id=”{{course_id}}” key=”start_date”].’
---
[--enrollment_closes_date=<enrollment_closes_date>]
Date when the course enrollment closes.
If blank course enrollment is open indefinitely after the the enrollment_opens_date has passed.
Does not affect course content access, see access_opens_date to control course access close date.
Format: Y-m-d H:i:s.
[--enrollment_closes_message=<enrollment_closes_message>]
Message displayed to visitors when attempting to enroll into a course after the enrollment_closes_date has passed.
---
default: ‘Enrollment in this course closed on [lifterlms_course_info id=”{{course_id}}” key=”enrollment_end_date”].’
---
[--enrollment_opens_date=<enrollment_opens_date>]
Date when the course enrollment opens.
If blank course enrollment is open until after the enrollment_closes_date has passed.
Does not affect course content access, see access_opens_date to control course access start date.
Format: Y-m-d H:i:s.
[--enrollment_opens_message=<enrollment_opens_message>]
Message displayed to visitors when attempting to enroll into a course before the enrollment_opens_date has passed.
---
default: ‘Enrollment in this course opens on [lifterlms_course_info id=”{{course_id}}” key=”enrollment_start_date”].’
---
[--sales_page_page_id=<sales_page_page_id>]
The WordPress page ID of the sales page. Required when sales_page_type equals page. Only returned when the sales_page_type equals page.
[--sales_page_type=<sales_page_type>]
Determines the type of sales page content to display.<br> – <code>none</code> displays the course content.<br> – <code>content</code> displays alternate content from the <code>excerpt</code> property.<br> – <code>page</code> redirects to the WordPress page defined in <code>content_page_id</code>.<br> – <code>url</code> redirects to the URL defined in <code>content_page_url</code>
---
default: none
options:
– none
– content
– page
– url
---
[--sales_page_url=<sales_page_url>]
The URL of the sales page content. Required when <code>content_type</code> equals <code>url</code>. Only returned when the <code>content_type</code> equals <code>url</code>.
[--video_tile=<video_tile>]
When true the video_embed will be used on the course tiles (on the catalog, for example) instead of the featured image.
---
default: false
---
[--porcelain]
Output just the id when the operation is successful.

Top ↑

GLOBAL PARAMETERS GLOBAL PARAMETERS

These global parameters have the same behavior across all commands and affect how WP-CLI interacts with WordPress.

Argument Description
--path=<path> Path to the WordPress files.
--url=<url> Pretend request came from given URL. In multisite, this argument is how the target site is specified.
--ssh=[<scheme>:][<user>@]<host\|container>[:<port>][<path>] Perform operation against a remote server over SSH (or a container using scheme of “docker”, “docker-compose”, “vagrant”).
--http=<http> Perform operation against a remote WordPress installation over HTTP.
--user=<id\|login\|email> Set the WordPress user.
--skip-plugins[=<plugins>] Skip loading all plugins, or a comma-separated list of plugins. Note: mu-plugins are still loaded.
--skip-themes[=<themes>] Skip loading all themes, or a comma-separated list of themes.
--skip-packages Skip loading all installed packages.
--require=<path> Load PHP file before running the command (may be used more than once).
--exec=<php-code> Execute PHP code before running the command (may be used more than once).
--[no-]color Whether to colorize the output.
--debug[=<group>] Show all PHP errors and add verbosity to WP-CLI output. Built-in groups include: bootstrap, commandfactory, and help.
--prompt[=<assoc>] Prompt the user to enter values for all command arguments, or a subset specified as comma-separated values.
--quiet Suppress informational messages.