All Projects → maxlath → Wikibase Cli

maxlath / Wikibase Cli

Licence: mit
read and edit a Wikibase instance from the command line

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Wikibase Cli

Javali
🐗 Create a modern JavaScript library that uses ES6 + Jest
Stars: ✭ 144 (-2.7%)
Mutual labels:  cli
Protolint
A pluggable linter and fixer to enforce Protocol Buffer style and conventions.
Stars: ✭ 142 (-4.05%)
Mutual labels:  cli
Is Esm
🌳 CLI tool which checks if a package is distributed in ECMAScript module format. Helps you reason if the package is tree-shakable.
Stars: ✭ 147 (-0.68%)
Mutual labels:  cli
Gotime
CUI project/task/time tracker written in golang
Stars: ✭ 144 (-2.7%)
Mutual labels:  cli
Xcv
✂️ Cut, Copy and Paste files with Bash
Stars: ✭ 144 (-2.7%)
Mutual labels:  cli
Taskwarrior
Taskwarrior - Command line Task Management
Stars: ✭ 2,239 (+1412.84%)
Mutual labels:  cli
Python Cfonts
Sexy fonts for the console
Stars: ✭ 143 (-3.38%)
Mutual labels:  cli
Morphlingjs
A CLI to mock with meaningful data a REST API from a Swagger file
Stars: ✭ 148 (+0%)
Mutual labels:  cli
Handwrite
Handwrite generates a custom font based on your handwriting sample.
Stars: ✭ 145 (-2.03%)
Mutual labels:  cli
Hub Tool
🧪 Docker Hub experimental CLI tool
Stars: ✭ 147 (-0.68%)
Mutual labels:  cli
Micro Starter
[Deprecated] 🔷 Basic (opinionated) starter kit for a micro app with webpack build
Stars: ✭ 144 (-2.7%)
Mutual labels:  cli
Strest
⚡️ CI-ready tests for REST APIs configured in YAML
Stars: ✭ 1,746 (+1079.73%)
Mutual labels:  cli
Musicnow
CLI tool to download songs with metadata.
Stars: ✭ 146 (-1.35%)
Mutual labels:  cli
Aptos
☀️ A tool for validating data using JSON Schema and converting JSON Schema documents into different data-interchange formats
Stars: ✭ 144 (-2.7%)
Mutual labels:  cli
Benmaps.fr
Web maps that don't track you.
Stars: ✭ 147 (-0.68%)
Mutual labels:  wikidata
Vcd Cli
Command Line Interface for VMware vCloud Director
Stars: ✭ 143 (-3.38%)
Mutual labels:  cli
Sfz
A simple static file serving command-line tool written in Rust.
Stars: ✭ 145 (-2.03%)
Mutual labels:  cli
Kcli
A kafka command line browser
Stars: ✭ 148 (+0%)
Mutual labels:  cli
Python Sploitkit
Devkit for building Metasploit-like consoles
Stars: ✭ 148 (+0%)
Mutual labels:  cli
Mojo Webqq
【重要通知:WebQQ将在2019年1月1日停止服务,此项目目前已停止维护,感谢大家四年来的一路陪伴】使用Perl语言(不会没关系)编写的smartqq/webqq客户端框架(非GUI),可通过插件提供基于HTTP协议的api接口供其他语言或系统调用
Stars: ✭ 1,755 (+1085.81%)
Mutual labels:  cli

wikibase-cli

The Command-line interface interface to Wikibase instances.

This tool is mostly a CLI interface to the JS modules wikibase-edit and wikibase-sdk, + some treats for the CLI lovers. And a batch mechanism to process millions of edits.

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

This project received a Wikimedia Project Grant.


wikibase           wikidata

NPM DockerHub Badge

License Node JavaScript Style Guide

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

userbox_wikibase_cli

Summary

Changelog

See CHANGELOG.md for version info

Dependencies

General

  • NodeJs >= v8 (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.

If you later need to update the package to a different version, you can run the same command but specifying the version you want (here 12.2.0)

npm install -g [email protected]

or just request the latest version

npm install -g [email protected]

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 -it 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/.config/wikibase-cli $HOME/.cache/wikibase-cli
alias wb='docker run --rm -v "$HOME/.config/wikibase-cli:/root/.config/wikibase-cli" -v "$HOME/.cache/wikibase-cli:/root/.cache/wikibase-cli" -it maxlath/wikibase-cli'

NB: Beware that using wikibase-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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].