PHPackages                             lifterlms/lifterlms-cli - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. lifterlms/lifterlms-cli

ArchivedWordpress-plugin[CLI &amp; Console](/categories/cli)

lifterlms/lifterlms-cli
=======================

WP CLI commands for LifterLMS

0.0.6(1mo ago)2132.3k↓28.6%3GPL-3.0PHPPHP &gt;=7.4CI passing

Since Jul 28Pushed 1mo ago2 watchersCompare

[ Source](https://github.com/gocodebox/lifterlms-cli)[ Packagist](https://packagist.org/packages/lifterlms/lifterlms-cli)[ RSS](/packages/lifterlms-lifterlms-cli/feed)WikiDiscussions trunk Synced 2w ago

READMEChangelog (6)Dependencies (4)Versions (26)Used By (0)

LifterLMS CLI
=============

[](#lifterlms-cli)

[![Test PHPUnit](https://camo.githubusercontent.com/ea60d287cca7f0dc1e349bcceaefe50c76444020f9c85a0f82accd33ef9cf1aa/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f676f636f6465626f782f6c69667465726c6d732d636c692f54657374253230504850556e69743f6c6162656c3d7465737473266c6f676f3d676974687562267374796c653d666f722d7468652d6261646765)](https://github.com/gocodebox/lifterlms-cli/actions/workflows/test-phpunit.yml "Testing workflow on GitHub Actions")[![GitHub Coding Standards Workflow Status](https://camo.githubusercontent.com/90ea87e447531d57e2820752b223c59027324c46bd57095a84c158c6dffb0d51/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f776f726b666c6f772f7374617475732f676f636f6465626f782f6c69667465726c6d732d636c692f436f64696e672532305374616e64617264733f6c6162656c3d7068706373266c6f676f3d676974687562267374796c653d666f722d7468652d6261646765)](https://github.com/gocodebox/lifterlms-cli/actions/workflows/check-cs.yml "Coding Standards workflow on GitHub Actions")[![Code Climate maintainability](https://camo.githubusercontent.com/58a9155ccec30e50f1cf932dbdadbfbe28a2570cb02b6c4957942ac231f0fa7c/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f6d61696e7461696e6162696c6974792f676f636f6465626f782f6c69667465726c6d732d636c693f6c6f676f3d636f64652d636c696d617465267374796c653d666f722d7468652d6261646765)](https://codeclimate.com/github/gocodebox/lifterlms-cli "Maintainability reports on Code Climate")[![Code Climate test coverage](https://camo.githubusercontent.com/188ca9cf5b6b556d51fe0f9821d8edb5539a748c080d30552900e49a635a2e69/68747470733a2f2f696d672e736869656c64732e696f2f636f6465636c696d6174652f636f7665726167652f676f636f6465626f782f6c69667465726c6d732d636c693f7374796c653d666f722d7468652d6261646765266c6f676f3d636f64652d636c696d617465)](https://codeclimate.com/github/gocodebox/lifterlms-cli/coverage "Code coverage reports on Code Climate")

---

WP-CLI commands for [LifterLMS](https://github.com/gocodebox/lifterlms). Manage courses, memberships, enrollments, students, and more from the command line.

This is a feature plugin which will be included in the LifterLMS core plugin automatically.

---

Installation
------------

[](#installation)

Install as a WP-CLI package:

```
wp package install gocodebox/lifterlms-cli
```

Or clone into your `wp-content/plugins` directory:

```
cd wp-content/plugins
git clone https://github.com/gocodebox/lifterlms-cli.git
```

**Requirements:**

- PHP 7.4+
- WordPress 5.0+
- [LifterLMS](https://lifterlms.com) 5.0+
- [WP-CLI](https://wp-cli.org/) 2.x

Quick Start
-----------

[](#quick-start)

```
# List all courses
wp llms course list

# Get a specific course
wp llms course get 42

# Create a course
wp llms course create --title="Introduction to Python" --status=draft

# Get course structure (sections + lessons)
wp llms course content 42

# List enrolled students
wp llms course enrollments 42

# Enroll a student in a course
wp llms students-enrollments create --student_id=5 --post_id=42

# Check student progress
wp llms students-progress get 5 --post_id=42
```

Commands
--------

[](#commands)

### Resource Commands

[](#resource-commands)

All resource commands support `list`, `get`, `create`, `update`, `delete`, `diff`, `edit`, and `generate` subcommands.

CommandDescription`wp llms course`Manage courses`wp llms section`Manage sections`wp llms lesson`Manage lessons`wp llms membership`Manage memberships`wp llms access-plan`Manage access plans (pricing)`wp llms student`Manage students`wp llms instructor`Manage instructors`wp llms students-enrollments`Manage student enrollments`wp llms students-progress`Manage student progress`wp llms api-key`Manage REST API keys### Course Sub-Resource Commands

[](#course-sub-resource-commands)

CommandDescription`wp llms course content `Get course structure (sections + lessons)`wp llms course enrollments `List students enrolled in a course### Management Commands

[](#management-commands)

CommandDescription`wp llms addon`Manage LifterLMS add-ons (requires LifterLMS Helper)`wp llms license`Manage add-on licenses (requires LifterLMS Helper)`wp llms version`Display LifterLMS versionOutput Formats
--------------

[](#output-formats)

All commands support multiple output formats via `--format`:

```
# Default table format
wp llms course list

# JSON (recommended for scripts and AI agents)
wp llms course list --format=json

# CSV
wp llms course list --format=csv

# Just IDs
wp llms course list --format=ids

# YAML
wp llms course list --format=yaml

# Count
wp llms course list --format=count
```

Limit output to specific fields:

```
wp llms course list --fields=id,title,status --format=json
```

Get just the ID after creating/updating:

```
wp llms course create --title="My Course" --porcelain
# Returns: 42
```

Using with AI Agents
--------------------

[](#using-with-ai-agents)

The LifterLMS CLI works with AI coding assistants like Claude Code, Cursor, and Codex. See the [AI Agent Guide](docs/ai-agents.md) for detailed patterns and examples.

Key tips:

- Always use `--format=json` for structured, parseable output
- Use `--fields` to reduce response size
- Use `--porcelain` on create/update to get just the new ID
- Chain commands with pipes: `wp llms course list --format=ids | xargs -I{} wp llms course get {} --format=json`

Remote Sites
------------

[](#remote-sites)

Use [WP-CLI aliases](https://make.wordpress.org/cli/handbook/guides/running-commands-remotely/) to manage remote sites:

```
# ~/.wp-cli/config.yml
@staging:
  ssh: user@staging.example.com/var/www/html
@production:
  ssh: user@example.com/var/www/html
```

```
wp @staging llms course list
wp @production llms student list --format=json
```

Documentation
-------------

[](#documentation)

Full command reference is available at [developer.lifterlms.com/cli/commands](https://developer.lifterlms.com/cli/commands/) and in the [docs/](./docs) directory.

Contributing
------------

[](#contributing)

Please follow the contribution guidelines put forth by the [LifterLMS core](https://github.com/gocodebox/lifterlms/blob/trunk/.github/CONTRIBUTING.md).

###  Health Score

52

—

FairBetter than 96% of packages

Maintenance94

Actively maintained with recent releases

Popularity35

Limited adoption so far

Community18

Small or concentrated contributor base

Maturity52

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.9% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~362 days

Recently: every ~433 days

Total

6

Last Release

32d ago

PHP version history (2 changes)0.0.1PHP &gt;=7.3

0.0.6PHP &gt;=7.4

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33220397?v=4)[Jason Coleman](/maintainers/ideadude)[@ideadude](https://github.com/ideadude)

![](https://www.gravatar.com/avatar/ee86b1caa9687145001a106bc647e9d66a615d3097da460af68b629ffde40d23?d=identicon)[brian-lifterlms](/maintainers/brian-lifterlms)

---

Top Contributors

[![thomasplevy](https://avatars.githubusercontent.com/u/1290739?v=4)](https://github.com/thomasplevy "thomasplevy (115 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (25 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (17 commits)")[![brianhogg](https://avatars.githubusercontent.com/u/627497?v=4)](https://github.com/brianhogg "brianhogg (12 commits)")[![flintfromthebasement](https://avatars.githubusercontent.com/u/267404437?v=4)](https://github.com/flintfromthebasement "flintfromthebasement (1 commits)")[![eri-trabiccolo](https://avatars.githubusercontent.com/u/7689242?v=4)](https://github.com/eri-trabiccolo "eri-trabiccolo (1 commits)")[![pondermatic](https://avatars.githubusercontent.com/u/5377968?v=4)](https://github.com/pondermatic "pondermatic (1 commits)")

---

Tags

clihacktoberfestlifterlmswordpresswp-cli

### Embed Badge

![Health badge](/badges/lifterlms-lifterlms-cli/health.svg)

```
[![Health](https://phpackages.com/badges/lifterlms-lifterlms-cli/health.svg)](https://phpackages.com/packages/lifterlms-lifterlms-cli)
```

###  Alternatives

[illuminate/console

The Illuminate Console package.

13046.6M7.3k](/packages/illuminate-console)[styleci/cli

The CLI tool for StyleCI

71477.7k9](/packages/styleci-cli)[winbox/args

Windows command-line formatter

20722.5k21](/packages/winbox-args)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
