• Resolved mehmoodmallick

    (@mehmoodmallick)


    I am trying to configure redirection plugin settings for all subsites using wp cli in the multisite network without manually going on each subsite basic redirection setup page.
    I found this https://redirection.me/developer/wp-cli/ I am able to access current settings states for the sites , but not sure how to update the settings. Here is the cli command I am using to view settigs.
    for one single site install you can run: wp redirection setting monitor_types
    wp site list –field=url | xargs -n1 -I % wp –url=% redirection setting monitor_types

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author John Godley

    (@johnny5)

    From the guide:

    wp redirection setting <name> [value]

    You pass both the setting name and value on the command line.

    Thread Starter mehmoodmallick

    (@mehmoodmallick)

    I am still a new user with linux if you can provide the exact syntax for let say updating the setting for the monitor_type post as true. Like what is the syntax to update the [value] section ?

    Plugin Author John Godley

    (@johnny5)

    The syntax is given above – pass the value on the command line. This forum is specifically for Redirection. There are guides for Linux available on the internet.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘WP CLI for basic setup for multisite network’ is closed to new replies.