UNPKG

wikibase-cli

Version:

A command-line interface to Wikibase

14 lines (12 loc) 833 B
import { editCommandsOptions } from '#lib/common_options' export default { alias: 'ac', args: '<entity> <property> <value>', description: 'Add a claim to an entity', options: { rank: true, reconciliation: true, ...editCommandsOptions }, examples: [ { args: 'Q4115189 P4033 bulgroz@champignac.fr', comment: "Add the Mastodon address (P4033) 'bulgroz@champignac.fr' to the Sandbox (Q4115189) entity" }, { args: 'Q4115189 P1476 \'{"text":"some title","language":"en"}\'', comment: 'Rich claim values can be passed as JSON' }, { args: 'Q4115189 P4033 bulgroz@champignac.fr --reconciliation skip-on-any-value', comment: 'Add a claim, unless there is only one for that property. For more reconciliation options, see https://codeberg.org/maxlath/wikibase-edit/src/branch/main/docs/how_to.md#reconciliation' }, ], }