The Zanata client (zanata-cli) can be installed on most systems. Installation is easiest under Fedora, other systems can use Apache Ivy for installation. Manual installation is also possible.
If you are using Fedora, zanata-cli is available through the yum
package manager.
sudo yum install zanata-client
Note: If you are not running the latest version of Fedora, the latest version of the client may not be available, so you might want to try the Ivy version (below).
The Ivy distribution of the client is a small script that will download the client the first time it is run. This distribution requires Apache Ivy to run.
- See Setup Ivy for Apache Ivy installation.
- Save this script somewhere on your path, and make sure it is executable. For example, assuming you have
~/bin in $PATH
,
cd ~/bin
wget https://raw.github.com/zanata/zanata-client-ivy/master/zanata-cli
chmod 755 zanata-cli
Note: It's a good idea to check for a new version of zanata-cli once in a while (especially when a new version of Zanata server is released).
The 0install distribution of the client is to allow zanata-cli to be available on multiple platform. This distribution requires 0install to run.
-
See Setup 0install for 0install installation.
-
If you are new to 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.If you already have a copy of zanata-cli in your machine and wish to keep 0install zanata-cli as a separate command, you can still run 0install with:
0launch http://zanata.org/files/0install/zanata-cli.xml {command}
To update Zanata CLI, run
0install update http://zanata.org/files/0install/zanata-cli.xml
To manually install zanata-cli:
-
Navigate to zanata-cli on Maven Central.
-
Download either
dist.zip
ordist.tar.gz
. -
Extract the contents of the archive to your location of choice.
-
Create a symbolic link to the
zanata-cli
script in the bin directory of the extracted archive. e.g. from the archive directory, runsudo ln -s bin/zanata-cli /usr/local/bin/zanata-cli
. -
(optional) you can also enable tab-autocomplete for the client if you use bash as your terminal shell. This can be done by copying or linking the
zanata-cli-completion
script from the bin directory to/etc/bash_completion.d/
. e.g.ln -s bin/zanata-cli-completion /etc/bash_completion.d/zanata-cli-completion
.
If you like to live dangerously, the client nightly relase is available. This may have newer features, but is not guaranteed to be stable.
The latest nightly build is available as an archive that can be installed manually. To install the latest nightly build:
- Open Client nightly builds.
- Open the directory showing the highest version number.
- Download either of the distributable archives (ending with
-dist.zip
or-dist.tar.gz
). - Install as per manual installation instructions above.