• Resolved jolomo

    (@jolomo)


    I briefly got the wp-cli commands to work when trying to automate some of the plugin setup, but for the past few days the wp-cli is saying that ‘wp pms …’ is not a recognized command.

    I’m running the wp-cli docker image with the command below for reference:

    command: >
    /bin/sh -c ‘
    sleep 10;
    wp core install –path=”/var/www/html” –url=”https://localhost:8080″ –title=”Dashboard” –admin_user=admin –admin_password=********** –[email protected] –skip-email;
    wp plugin install paid-member-subscriptions –activate;
    wp pms set-plan –title=”Gold” –description=”Access to Gold level content” –access-levels=”1,2″;
    wp pms set-plan –title=”Platinum” –description=”Access to Platinum level content” –access-levels=”1,2″;
    wp pms set-plan –title=”Platinum Plus” –description=”Access to Platinum Plus level content” –access-levels=”1,2″;
    wp pms set-plan –title=”Corporate Administrator” –description=”Access to Silver Corporate Administrator content” –access-levels=”1,2″;
    wp plugin install wordpress-importer –activate;
    wp import /wordpress-import/WordPress.xml –authors=create –skip=attachment;

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support alexandrubodea

    (@alexandrubodea)

    Hi @jolomo,

    Our plugin (Paid Member Subscriptions) doesn’t have those commands “‘wp pms …”. Make sure you’re not mistaking our plugin with a different membership plugin.

    Best regards,

    Thread Starter jolomo

    (@jolomo)

    Interesting, I’ll verify but I know at one point I was able to use the wp-cli to automate the setup of PMS and define the initial plans.

    Assuming I’m crazy/wrong, is there any other method of automating these things?

    Thanks for the help!

    Plugin Support alexandrubodea

    (@alexandrubodea)

    is there any other method of automating these things?

    -> Unfortunately, no. In case you want to achieve this, you will need to create your own custom code for this.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘CLI Issues’ is closed to new replies.