wikibase-cli
Version:
A command-line interface to Wikibase
17 lines (15 loc) • 1.11 kB
JavaScript
import { editCommandsOptions } from '#lib/common_options'
export default {
alias: 'mc',
args: '<guid|property-claims-id> <target-entity-id> <target-property-id>',
description: 'Move claims from an entity to another and/or from a property to another',
options: editCommandsOptions,
examples: [
{ args: "'Q4115189$13681798-47F7-4D51-B3B4-BA8C7E044E1F' Q4115189 P20", comment: 'Change the property of a claim (without changing entity)' },
{ args: "'Q4115189$13681798-47F7-4D51-B3B4-BA8C7E044E1F' Q13406268 P19", comment: 'Move the claim to another entity (without changing the property)' },
{ args: "'Q4115189$13681798-47F7-4D51-B3B4-BA8C7E044E1F' Q13406268 P20", comment: 'Move the claim to another entity and another property' },
{ args: "'Q4115189#P19' Q4115189 P20", comment: 'Move all Q4115189 P19 claims to P20 (without changing entity)' },
{ args: "'Q4115189#P19' Q13406268 P19", comment: 'Move all Q4115189 P19 claims to Q13406268 (without changing the property)' },
{ args: "'Q4115189#P19' Q13406268 P20", comment: 'Move all Q4115189 P19 claims to Q13406268 P20' },
],
}