Read page source from standard input and save it as the complete page content. Existing content is replaced. Use –createonly to refuse existing pages or –nocreate to require an existing page.
--bot
Mark the edit as a bot edit
--createonly
Create the page only if it does not exist
--dry-run
Show the edit parameters without reading stdin or editing the page
--minor
Mark the edit as minor
--nocreate
Require the page to already exist
--recreate
Allow recreating a page deleted since editing began
--summary <string>
Summary of the edit Default: a Wikimedia CLI edit.
--title <string>
Title of the page to create or replace
--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
# Write source to a page using a saved profile
mw wiki page put --profile wikimedia/addshore --wiki https://test.wikipedia.org/w/api.php --title " User:Addshore/CLI test " < page.wikitext