versions follow SemVer
wb graph-path: added--format=mermaidoption (See mermaid graph format)
- BREAKING CHANGE: updated NodeJS minimal version to
>= v20.12.0to be able to use the nativestyleTextviatiny-chalk - Added
wb graph-path: a command to find the path between a subject and an object on the entity relations graph
- Added a
--user-agenta global option, to customize requests user agent header - Make
--log-response-headersa global option wb query: added--statement-propertyto set a statement property- Extend the QLever support to other hosts containing "/api/". Example:
wb query --sample --sparql-endpoint https://sparql.dnb.de/api/gnd
wb add-claim: add support for claim reconciliation
wb sparql/wb query: added support for the QLever SPARQL engine
wb open: added support for opening entity pages and scroll to a specific statement, by passing a statement id
BREAKING CHANGE: * In simplified claims (as returned by commands such as wb data --simplify), the simplifiedClaim.type attribute was renamed to simplifiedClaim.datatype, for consistency with the raw entities' naming
wb data: improved support for lexemes, forms and senses
- Added global
--configoption andWB_CONFIGenvironment variable, to allow customizing the config used
wd revisions: now accepts ids on stdin and--props
wb move-claim: Allow to change the moved claim value
BREAKING CHANGE: updated NodeJS minimal version to >= v18 to be able to use the native fetch
BREAKING CHANGE: updated NodeJS minimal version >= v14.0.0 to be able to convert the code from CommonJS to ES modules
- Added support for
entity.statementsas an alias forentity.claims, to support Wikibase-ish instances such as https://commons.wikimedia.org. For more on this oddity, see https://phabricator.wikimedia.org/T149410. wb summary: include an extract from the corresponding Wikipedia article when available
- Added
wb badges - Added
wb add-badge - Added
wb remove-badge wb sparql/wb query: added--log-response-headersoption
- Added
wb remove-label - Added
wb remove-description - Added
wb set-sitelink - Added
wb remove-sitelink wb data: added--keep badgesoption
wb merge-entity: add--keep-oldestoption
BREAKING CHANGE: updated NodeJS minimal version >= v10.0.0
wb search: added support for Cirrus search
wb edit-entity/wb create-claim/wb remove-claim: add reconciliation capabilities, throughwikibase-editreconciliation syntaxwb props: allow to filter by both type and patternwb claims: allow to filter claims by both type and pattern
wb data: allow to set thenondeprecatedsimplify option
- allow to pass templates to all edit commands where it wasn't possible yet (
wb-add-alias,wb-add-qualifier,wb-add-reference,wb-delete-entity,wb-merge-entity,wb-move-claim,wb-move-qualifier,wb-remove-alias,wb-remove-claim,wb-remove-reference,wb-remove-qualifier,wb-set-alias,wb-set-description,wb-set-label,wb-update-claim,wb-update-qualifier) - allow to set
dryRun=falsein templates examples - allow to set a
commandsshortlist in templates
wb data: added--time-converter
wb data: added support for entities schemawb generate-template: added a--json(equivalent to--format json)
- Edit commands: allow to set the
baserevid
wb sparql: added support for template metadata, allowing to generate a [template-specific--helpmenu]
wb move-qualifier/wb remove-qualifier: accept statement uri in place of a statement guid- template help menu: added a new recommended template syntax
wb sparql/wb query: add support for xml, tsv, csv, and rdfbin formats
wb sparql: Added support for async SPARQL-generating functions
wb generate-template: added a--no-minimizeflag
create-entity/edit-entity: add support for template metadata, allowing to generate a template-specific--helpmenu
wb open: added a--talkoption to open an entity's talk pagewb move-claim/wb move-qualifier: add type conversion between properties of different datatypes
wb add-claim,wb update-claim: Added support for the object interface- Added support for custom calendars (example with
wb add-claim)
BREAKING CHANGE: wb convert now requires ids to be passed as explicit subject or object options.
wb add-claim,wb update-claim: Added a--rankoption
BREAKING CHANGE: local files are now always stored in the home directory. To keep your current config after this upgrade, follow this steps:
mkdir -p ~/.config/wikibase-cli
wb config --json > ~/.config/wikibase-cli/config.json
# Now we can run the upgrade
npm install -g wikibase-cli@14- batch mode: allow to combine arguments passed inline and those passed on stdin
BREAKING CHANGE: output now defaults to newline-delimited values (instead of space-delimited values)
wb data: added support for property claims id
- Added
wb move-qualifier wb move-claim: allow to move all property claims at once
wb-generate-template:- BREAKING CHANGE: default to format js, when only one entity is requested
- When using
--format js: add entities labels as comments - Added
--create-modeoption
- Added
wb move-claim
wb config credentials: add atestmode, to easily validate credentialswb config <option> reset=>wb config <option> reset(but the keywordclearremains available to avoid a breaking change)
- batch mode: added
--no-exit-on-erroroption
wb-generate-template: add batch mode
BREAKING CHANGE:
- the short option
-nis repurposed to alias--limitin read operations (it was previously associated with the--no-cacheoption) - the short option
-tis repurposed to alias--typein read operations (it was previously associated with the--limitoption)
New features:
wb summary: added support for lexemeswb search: added support for lexemes, forms, and senseswb open: added support for lexemes, forms, and senseswb lemma
BREAKING CHANGE: Removed the -g, --edit-group <key> option, as it is now automatically generated when in batch mode and targeting wikidata.org
- Added edit summary
- Added edit group support
- Added batch mode to write operations
BREAKING CHANGE: updated wikibase-edit to > v4.0.0, which uses async/await, and started using those internally too, thus requiring NodeJS >= v7.6.0. If you are locked on an older version of NodeJS, you are thus advised to stay on wikibase-cli@8
wb-data/wb-generate-template: add lazy syntax to props selection
wb query: add--countoption
BREAKING CHANGES:
- renamed:
create-item=>create-entityedit-item=>edit-entitywb config <option> default=>wb config <option> clear
- removed:
wb-coord(as it was just an alias ofwb claims P625, and thus coupled to Wikidata)
- changed behavior:
wb-add-claim: doesn't stop you from creating duplicated claims anymore (no claim existance check)
- changed aliases:
wb sis now an alias forwb sparql, whilewb uiswb summarynew alias
New features:
- Added a
wbcommand, which is now considered the default command in the documentation,wdsimply now being the Wikidata-bound version of it. - Added multiple instances credentials support (so that acting on different instances now only depends on the command flags without the painful process of entering credentials)
- Added OAuth tokens support
- Added
wb delete-entity - Added
wb merge-entity - Add option
--format tabletowb sparqlandwb query - Add option
--alltowb claims - Add alias
wb rtowb sparql
wd data: allow to request sub property keys
wd data: allow to fetch an old revision's datawd generate-template: allow to generate template from a specific revisionwd generate-open: allow to open a specifc revision's page
wd create-item/wd edit-item: accept JS files as input, where the JS file should export either an object or a function, to which command line arguments are passed- Added
wd generate-template: a command to easily create those JSON or JS files to be passed towd create-itemorwd edit-itemfrom existing items wd data: allow to fetch a single claim's data by passing a claim GUID- Added
wd lang
wd claimsreturns claims GUIDs when provided with a property and a value
- Added new
keepoptions values towd data:richvaluesandtypes(commit 6cd7b7f) - Add option
-y, --historytowd open
- BREAKING CHANGE:
wd sparqlorwd querycommands making use of the--index <variable>option now get their values aggregated in an array instead of being the direct value of the index key, preventing to delete multiple values for a same key.
- Added
wd convert
wd data: added support forformat=ttl
- Added
wd hub
- Added support for 'novalue' and 'somevalue' snaktypes to
add-claimandadd-qualifier
- Added the possibility to override config options with environment variables
wd props:
- BREAKING CHANGE:
wd dataandwd revisionsnow output newline delimited JSON, which is valid JSON if taken line by line, but not as a whole. wd datacan now fetch more than 50 entities at once and accepts ids from stdin- Added
wd sparqlwellknown query:all-instances
- Add option
-t, --limittowd search wd claimsaccepts a filter pattern as second arguments, filtering claims by their properties type or labelwd props --typeaccepts an additional arguments to filter matching properties by property type- Add option
-n, --no-cachetowd props
- Add option
-x, --indextowd sparql, returns the request results as an index instead of a list
wd claims,wd data,wd open, andwd revisionsaccept numeric ids, assume it's an item id (commit: 37afea9)
- Added the command
wikibase-clias an alias towd[UPDATE: implementation failed, removed by d0df064]
- Added the possibility to pass a JS file to
wd sparqlto generate SPARQL requests from the command arguments
- Add option
-v, --verbosetowd searchwhich passes the found ids towd summary
- Added
keepoptions towd data
- BREAKING CHANGE:
wd add-referenceexpects a property to be explicity set - BREAKING CHANGE:
wd add-claimnow can't be passed a reference: the reference needs to be added separately. See add claim with a reference. - Entity attribute commands (
wd summary,wd label,wd description,wd aliases) can now request the attributes of several entities at once wd add-claimaccepts time values with month or day precisionwd add-claimnow supports rich values- Added
wd edit-item - Added
wd remove-reference - Added
wd add-qualifier - Added
wd update-qualifier - Added
wd remove-qualifier
- Added
wd create-item
- Let
wd propsaccept additional arguments to filter matching properties
- Added bot support
- Added
wd search
- Added
wd aliases - Added
wd add-alias - Added
wd remove-alias - Added
wd set-alias
- Added
wd revisions
- Add option
-p,--propstowd data
- Added
wd update-claim
- Added
wd remove-description
- Added
wd set-description
- Added multiple entities mode to
wd data - Added
simplifyoption towd data - Output
wd datadata as Wikidata-Dump-style line delimited JSON to make filterable bywikidata-filter
- Added
wd summary - Added
wd description
- Added option
-u,--urltowd open
- Added
wd set-label - Added
wd add-reference
- Added
wd add-claim - Added
wd config
- Added
wd props --type
- Added
wd coord
wd openopens a search page when no entity or property id can be found in the input
- Make results minimalist unless bassed the
-v, --verboseoption. Could be considered a breaking change as one might have built on the default verbose outputs. - Not copying results to clipboard anymore, unless passed the
-c, --clipboardoption - Format outputs for the shell by default, unless passed the
-j, --jsonoption - Renamed
wd wikiqidtowd id. Using github#master version of commander to be able to set wikiqid as an alias to avoid making it a breaking change.
- Renamed
wd graph->wd query
- Added
wd graph
- Added a help menu:
wd help - Renamed
qlabel->wd label - Renamed
qclaims->wd claims - Renamed
qdata->wd data - Renamed
wdprops->wd props - Renamed
wdprops reset->wd props --reset - Renamed
wikiqid->wd wikiqid - Renamed
wdsparql->wd sparql - Removed
wdsparqlsimplify: usewd sparql -s - Replaced all language options by a uniformized
-l, --langoption - Added
wd open
- Added qdata, a command to get the data of a given entity
- wikiqid accepts full wikipedia urls
- Added wdsparqlsimplify, like
wdsparqlbut with simplified results out of the box
- Added wdprops, a command to get the list of all Wikidata properties
-
Added a new option to wdsparql:
--simplify, which simplifies the query results using wikidata-sdksimplifySparqlResultsfunction
- Commands use the environment local language as default instead of English
- Added wdsparql
- Added qclaims