WD(1)
π WD(1) β the whole manual, but make it make sense π
Okay bestie, welcome to wd(1) β yes, that's a User Commands page, and it's the CLI for Wikidata. It's giving "I contain multitudes" because the synopsis calls the binary wb while the page itself is named wd, and honestly? Iconic. Let's get into it. π¦
β¨ NAME β¨
wd β command-line interface to Wikidata π
π SYNOPSIS π
wb [options] [command]
πΈ DESCRIPTION πΈ
A command-line interface to Wikibase. That's it, that's the whole description, and we respect the brevity. π«Ά
π OPTIONS π
-V,--versionβ prints out the version number. The classic "who am I" move. β-h,--helpβ shows you the help for the command. Your little safety net. π
π Commands π
No cap, this is the main character section. Every single one, in order, exactly as promised:
add-alias|aa [entity] [language] [aliases]β adds one or several aliases onto the existing list of aliases of an entity, in a given language. It's additive, bestie, it doesn't overwrite. β¨add-claim|ac [entity] [property] [value]β adds a claim to an entity. New fact, who dis. π₯add-qualifier|aq [claim-guid] [property] [value]β adds a qualifier to a claim.add-reference|ar [claim-guid] [property] [value]β adds a reference to a claim. Cite your sources, queen. πaliases|a [entity]β displays the entity's aliases.claims|c [entity] [property]β displays the claims of an entity.config [key] [value]β gets and sets configuration parameters.convert []β converts batches of external ids to Wikidata ids and vice versa. Note the empty brackets, they're just vibing there. πcreate-entity|ce [data]β creates a new entity. Birth. π±data|d [entity]β outputs the entity's data.delete-entity|de [id]β deletes an entity. πdescription|desc [entity]β displays the entity's description.edit-entity|ee [data]β edits an existing entity.generate-template|gt [entity]β outputs the pre-formatted item's data, optimized for edition withwd edit-item.hub|h [query]β opens a web page using the Hub. See the documentation athttps://tools.wmflabs.org/hub/πid [title]β gets a Wikidata id from a Wikipedia article title.label|l [entity]β displays the entity's label.lang [code]β identifies a language code and returns the associated data.lemma [lexeme]β displays the lexeme's lemma.merge-entity|me [from-id] [to-id]β merges an entity into another one. Two become one, literally. πmove-claim|mc [guid|property-claims-id] [target-entity-id] [target-property-id]β moves claims from an entity to another one, and/or from a property to another one.move-qualifier|mq [guid] [hash] [old-property-id] [new-property-id]β moves qualifiers of a claim from one property to another.open|o [entity]β opens the entity's page on the Wikidata website, in a browser, like a civilized person. π§props|pβ outputs the list of all Wikidata properties.query|q []β generates and runs a simple SPARQL query by passing a statement's subject, property, or object β or a couple of those. (Yes, the brackets are empty here too. She's mysterious.) πremove-alias|ra [entity] [language] [aliases]β removes one or several aliases from the list of aliases of an entity in a given language.remove-claim|rc [guids]β removes claims by their GUIDs. Plural guids, plural removals.remove-qualifier|rq [claim-guid] [qualifiers-hashes]β removes qualifiers from a claim.remove-reference|rr [claim-guid] [references-hashes]β removes references from a claim.revisions|r [entity]β outputs the entity's revisions data.search|f [search]β searches entities.set-alias|sa [entity] [language] [aliases]β sets the list of aliases of an entity in a given language. Note: this one replaces the whole list, unlikeadd-alias|aa. πset-description|sd [entity] [language] [description]β sets a description on an entity in a given language.set-label|sl [entity] [language] [label]β sets a label on an entity in a given language.sparql|s [file.rq]β runs a SPARQL query and gets its JSON output.summary|u [entity]β displays basic information on the requested entity.update-claim|uc [guid] [new-value]β updates a claim's value.update-qualifier|uq [claim-guid] [property] [old-value] [new-value]β updates a qualifier from an existing value to a new value.help [command]β displays help for a command. When in doubt, ask for help. No shame in it. π
Heads up bestie: the options list and the commands list both live under OPTIONS in this page, so-V/--versionand-h/--helpare the only two flags, and everything below them is a subcommand. Don't come for me, that's just how the page is built. π
Okay that's the whole thing, you're officially certified. This page is from wd version 15.15.4, dated November 2023 β shoutout to the source and the date, they ate and left no crumbs. Go query something slay. ππ
β¨
π¦ where this page comes from
- ubuntu noble: node-wikibase-cli 15.15.4-5ubuntu4 Β· MIT
- ubuntu questing: node-wikibase-cli 15.15.4-5ubuntu4
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms