9.0.2 • Published 3 years ago

wikidata-cli v9.0.2

Weekly downloads
15
License
MIT
Repository
github
Last release
3 years ago

wikidata

Wikidata-CLI

The Command-line interface interface to Wikibase instances.

It was primarily developed to target Wikidata, but as then be decoupled to support any Wikibase instance.

This project received a Wikimedia Project Grant.

Show your support by adding {{#babel:Wikidata CLI}} to your Wikidata user page userbox

NPM DockerHub Badge

License Node JavaScript Style Guide

Summary

Dependencies

General

  • NodeJs >= v6.4.0 (recommended way to install it: use the awesome NVM)
  • Git

Per feature

  • to use the clipboard option: see copy-paste dependencies

Installation

via npm

npm install -g wikibase-cli

Installing globally allows to make the command wb (and wd, the Wikidata-bound verion of wb) accessible from your shell $PATH.

via docker

# Might require to be run with sudo depending on your Docker installation
docker run --rm -t maxlath/wikibase-cli
# You can make an alias out of it:
alias wb="docker run --rm -t maxlath/wikibase-cli"
# You're then ready to use it as in the documentation examples
wb label Q1

That would work, but all operations cached data (such as the list of all properties) would need to re-fetch those data for each operations, and all write operations would require you to re-enter your credentials everytime. To work around this, you can allow this container to persist some files on your system, using shared volumes:

mkdir -p $HOME/.local/share/wikibase-cli
alias wb='docker run --rm --volume "$HOME/.local/share/wikibase-cli:/wikibase-cli/local" -t maxlath/wikibase-cli'

NB: Beware that using wikidata-cli through a Docker container has a performance cost of something like 1s per command, so if you need to run many commands (for instance in a script to make mass edit on the desired Wikibase instance), you should probably rather use the NPM package directly

Commands

Read operations

see Read operations

wd summary Q1

Write operations

see Write operations

Config

Allows to persist options

see Config

See Also

You may also like

inventaire banner

Do you know Inventaire? It's a web app to share books with your friends, built on top of Wikidata! And its libre software too.

License

MIT

9.0.2

3 years ago

9.0.1

3 years ago

9.0.0

3 years ago

8.0.1

4 years ago

8.0.0

5 years ago

7.5.4

5 years ago

7.5.3

5 years ago

7.5.2

5 years ago

7.5.1

5 years ago

7.5.0

5 years ago

7.4.1

5 years ago

7.4.0

5 years ago

7.3.0

5 years ago

7.2.1

5 years ago

7.2.0

5 years ago

7.1.0

5 years ago

7.0.4

5 years ago

7.0.3

5 years ago

7.0.2

6 years ago

7.0.1

6 years ago

7.0.0

6 years ago

6.6.1

6 years ago

6.6.0

6 years ago

6.5.0

6 years ago

6.4.1

6 years ago

6.4.0

6 years ago

6.3.0

6 years ago

6.2.0

6 years ago

6.1.2

6 years ago

6.1.1

6 years ago

6.1.0

6 years ago

6.0.8

6 years ago

6.0.7

6 years ago

6.0.6

6 years ago

6.0.5

6 years ago

6.0.4

6 years ago

6.0.3

6 years ago

6.0.2

6 years ago

6.0.0

6 years ago

5.7.2

6 years ago

5.7.1

6 years ago

5.7.0

6 years ago

5.6.2

6 years ago

5.6.1

6 years ago

5.6.0

6 years ago

5.5.0

6 years ago

5.4.0

6 years ago

5.3.0

6 years ago

5.2.0

6 years ago

5.1.0

7 years ago

5.0.2

7 years ago

5.0.1

7 years ago

5.0.0

7 years ago

4.19.1

7 years ago

4.19.0

7 years ago

4.18.1

7 years ago

4.18.0

7 years ago

4.17.2

7 years ago

4.17.1

7 years ago

4.16.0

7 years ago

4.15.3

7 years ago

4.15.2

7 years ago

4.15.1

7 years ago

4.15.0

7 years ago

4.14.1

7 years ago

4.14.0

7 years ago

4.13.1

7 years ago

4.13.0

7 years ago

4.12.0

7 years ago

4.11.0

7 years ago

4.10.0

7 years ago

4.9.0

7 years ago

4.8.4

7 years ago

4.8.3

7 years ago

4.8.2

7 years ago

4.8.1

7 years ago

4.8.0

7 years ago

4.7.1

7 years ago

4.6.2

7 years ago

4.6.1

7 years ago

4.6.0

7 years ago

4.5.3

7 years ago

4.5.2

7 years ago

4.5.1

7 years ago

4.5.0

7 years ago

4.4.0

7 years ago

4.3.1

7 years ago

4.3.0

7 years ago

4.2.1

7 years ago

4.2.0

7 years ago

4.1.3

7 years ago

4.1.2

7 years ago

4.1.1

7 years ago

4.1.0

7 years ago

4.0.1

7 years ago

4.0.0

7 years ago

3.0.6

8 years ago

3.0.5

8 years ago

3.0.4

8 years ago

3.0.3

8 years ago

3.0.2

8 years ago

3.0.1

8 years ago

3.0.0

8 years ago

2.1.2

8 years ago

2.1.1

8 years ago

2.1.0

8 years ago

2.0.4

8 years ago

2.0.3

8 years ago

2.0.2

8 years ago

2.0.1

8 years ago

2.0.0

8 years ago

1.7.10

8 years ago

1.7.9

8 years ago

1.7.8

8 years ago

1.7.7

8 years ago

1.7.6

8 years ago

1.7.5

8 years ago

1.7.4

8 years ago

1.7.3

8 years ago

1.7.2

8 years ago

1.7.1

8 years ago

1.7.0

8 years ago

1.6.0

8 years ago

1.5.5

8 years ago

1.5.4

8 years ago

1.5.2

8 years ago

1.5.1

8 years ago

1.5.0

8 years ago

1.4.0

8 years ago

1.3.1

8 years ago

1.3.0

8 years ago

1.2.1

8 years ago

1.2.0

8 years ago

1.1.5

8 years ago

1.1.4

8 years ago

1.1.3

8 years ago

1.1.2

8 years ago

1.1.1

8 years ago

1.1.0

8 years ago

1.0.0

8 years ago