Skip to content

mw wiki ext wikibase item put

Releasev0.35.0 · cfeceb67

mw wiki ext wikibase item put [flags]

Create a new item with an English label and one string-valued claim. This command always creates an item; it does not update an existing one.

--bot
Mark the edit as a bot edit
--dry-run
Show the proposed item without creating it
--expect-id <string>
Fail unless the created item ID matches this value
--label <string>
English label for the item Default: first.
--property <string>
Property ID for the string-valued claim Default: P1.
--summary <string>
Summary of the edit Default: a Wikimedia CLI: Wikibase item update.
--value <string>
String value for the claim Default: hello.
--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
Terminal window
mw wiki ext wikibase item put --profile wikibase-world/addshore --label 'Example' --property P1 --value 'Example value' --dry-run
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.