Skip to content

Conversation

@ilicfilip
Copy link
Collaborator

@ilicfilip ilicfilip commented May 29, 2025

This PR adds basic WP CLI commands:

  • wp prpl get_stats - outputs the same data as in our REST API endpoint (command name is kept temporary for consitency, in general it should be changed)
  • wp prpl task list - lists all tasks
  • wp prpl task get --<task_id> - displays single task
  • wp prpl task update --<task_id> --<field_name>=<value> - updates task
  • wp prpl task delete --<task_id> - deletes the task
  • wp prpl task create --title="My Task" --description="Task description" --points=5 - creates the task

This PR should be revisited after we merge the CPT refactor, so for that reason I am saving it as a draft.

@github-actions
Copy link
Contributor

github-actions bot commented May 29, 2025

Test merged PR on Playground
Test this pull request on the Playground or download the zip.

@aristath aristath marked this pull request as ready for review June 16, 2025 08:29
@ilicfilip ilicfilip requested a review from aristath June 23, 2025 09:16
@ilicfilip ilicfilip merged commit 71aa8ef into develop Jun 23, 2025
20 of 24 checks passed
@ilicfilip ilicfilip deleted the filip/wp-cli branch June 23, 2025 09:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants