Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a positional argument to get primary site in multisite #87

Closed
Sidsector9 opened this issue Sep 11, 2017 · 4 comments
Closed

Add a positional argument to get primary site in multisite #87

Sidsector9 opened this issue Sep 11, 2017 · 4 comments

Comments

@Sidsector9
Copy link
Member

As of now we don't have any means to get the primary site using WP-CLI
We can have a command as wp site list --primary to get the name and ID of the primary site that is set at Dashboard > My Sites

@danielbachhuber
Copy link
Member

As of now we don't have any means to get the primary site using WP-CLI

@Sidsector9 @BhargavBhandari90 I think wp user meta get <id> primary_blog is sufficient?

$ wp user meta get 1 primary_blog
1

If it's not, can you share a bit more detail about what you're trying to accomplish?

@BhargavBhandari90
Copy link
Contributor

@danielbachhuber Yes, we can have it by the command you mentioned. @Sidsector9 do you have any input here?

@Sidsector9
Copy link
Member Author

Agreeing with both. Closing in favour of Daniel's suggestion.

@danielbachhuber
Copy link
Member

Added some docs for it with #365

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
3 participants