mw wiki page categories TITLE [flags]
List direct category memberships of one page, including hidden categories by default. This differs from page list –category, which selects a category’s members. Results are paginated and deduplicated; neither operation recurses through category trees.
--format <string>
Format the specified output
--hidden <string>
Hidden categories: all, only or exclude Default: all.
--limit <int>
Maximum distinct categories (0 means unlimited) Default: 100.
-o, --output <string>
Output format (jq|json|table|titles) Default: auto.
--anon
Use anonymous access instead of saved credentials
--help
Help for this command
--no-interaction
Do not ask any interactive questions
--password <string>
Wiki login password (or bot password)
--password-file <string>
Read the login password from a file
--profile <string>
Saved profile name or REALM/NAME
--realm <string>
Shared-login realm (wikimedia and wikibase-world are built in)
--username <string>
Wiki login username (use Name@bot for a bot password)
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
--wiki <string>
Wiki URL or API endpoint
mw wiki page categories Earth --hidden exclude
mw wiki page categories Earth --output titles