Skip to content

mw codesearch search

Releasev0.35.0 · cfeceb67

mw codesearch search [search-text] [flags]

Search using codesearch

--exclude-files <string>
Exclude files matching this pattern
--files <string>
Search only in files matching this pattern
-f, --filter <strings>
Filter output based on conditions provided
--format <string>
Format the specified output
-i, --ignore-case
Ignore case in search
-o, --output <string>
Output format (jq|json|pretty|table|web) Default: auto.
--repos <strings>
Search only in these repositories
-t, --type <string>
Type of search to perform: search|core|extensions|skins|things|bundled|deployed|libraries|operations|puppet|ooui|milkshake|pywikibot|services|analytics|devtools|wmcs|armchairgm|shouthow Default: search.
--help
Help for this command
--no-interaction
Do not ask any interactive questions
-v, --verbose <count>
Increase output verbosity. Example: --verbose=2 or -vv
Terminal window
mw codesearch search addshore
mw codesearch search --type extensions --repos "Extension:Wikibase" addshore
mw codesearch search --files ".*\.md" addshore
mw codesearch search --output pretty --files ".*\.md" addshore
mw codesearch search --output json addshore
mw codesearch search --output jq --format '.[] | .Matches' addshore
Report an issue with this page

Report a documentation issue

The report includes this page’s link, section and documentation version.

Review and submit on Phabricator, or run the command using your saved CLI profile. The command asks before creating the task.