diff --git a/docs/0install/setup.md b/docs/0install/setup.md new file mode 100644 index 00000000..0a787333 --- /dev/null +++ b/docs/0install/setup.md @@ -0,0 +1,37 @@ +The 0install distribution of the client is to allow zanata-cli to be available on multiple platform. This distribution requires [0install](http://0install.net/) to run. + +## Prerequisites + +1. Install [0install](http://0install.net/injector.html) on your machine. + +#### OpenJDK (For linux OS) + +See [OpenJDK guide](http://openjdk.java.net/install/) for more information. + +#### Oracle Java JRE + +See [Oracle Java SE](http://www.oracle.com/technetwork/java/javase/downloads/index.html) for more information. + +#### Mac OS + +- Install homebrew +- Install cask `brew install caskroom/cask/brew-cask` +- `brew cask install java` + +## Install zanata-cli + +Run command below to install zanata-cli. + +``` +0install -c add zanata-cli http://zanata.org/files/0install/zanata-cli.xml +``` + +Now you can run `zanata-cli --help` for more options. + +## Update Zanata CLI + +To update Zanata CLI, run + +``` +0install update http://file.bne.redhat.com/aeng/0install/zanata-cli.xml +``` \ No newline at end of file diff --git a/docs/installation.md b/docs/installation.md index 090d6f93..bc766cba 100644 --- a/docs/installation.md +++ b/docs/installation.md @@ -15,6 +15,10 @@ sudo yum install zanata-client See [Ivy installation](/ivy/installation) for more information. +## Installation with 0install + +See [0install installation](/0install/setup) for more information. + ## Manual Installation To manually install zanata-cli: diff --git a/mkdocs.yml b/mkdocs.yml index a1ed7a56..93fa8cc5 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -18,6 +18,8 @@ pages: - Installation: 'maven-plugin/installation.md' - Configuration: 'maven-plugin/configuration.md' - Commands: 'maven-plugin/commands.md' +- 0install: + - Installation: '0install/setup.md' - Commands: - init: 'commands/init.md' - push: 'commands/push.md'