This will delete the page "GIN CLI Setup"
. Please be certain.
The GIN command line client is a tool for managing your data repositories, whether they are stored on the public GIN service, a self hosted GIN instance, or your local hard drive. The client is based on git and git-annex and works partially as a wrapper for the two utilities.
The GIN command line client is available for Windows, macOS, and Linux.
Latest version downloads (see the corresponding section for each OS for details):
On some operating systems, it's less straightforward than others to install the dependencies, in particular git-annex. For these systems, we build bundles which include everything required to run the client. In general, you can determine whether you need a bundle or not with the following steps:
git --version
as well as git annex version
.
If git annex version
doesn't produce an error and the printed version is version 7 or newer, you can download the client only package for your operating system.For Windows, we provide two bundled packages, a 32-bit and a 64-bit package. Both include everything required to run the client.
How to decide which package you need:
To install:
C:\gin
).set-global.bat
file.
gin
command available in the Windows console by adding the location of the GIN CLI files to your system PATH
.gin-shell.bat
to run a standalone shell. This will present you with a command prompt that is ready to use the client.Verify the installation:
gin --version
shows the installed version of the GIN CLI, git, and git-annex.gin --help
to see the available commands and their description.gin help
followed by the command name (e.g., gin help create
).The easiest way to install the client on macOS is via homebrew. G-Node homebrew formulae are maintained in the G-Node tap. Install the client, including any dependencies, with:
brew tap g-node/pkg
brew install g-node/pkg/gin-cli
If you don't want to use homebrew, we provide an archive with the binary.
Alternatively, if you already have git and git-annex installed on your system, or you want to install them manually or via homebrew, follow the instructions below:
The recommended and simplest way to install git-annex is via Homebrew using brew install git-annex
.
Alternatively, download git-annex from the git-annex website.
Once you've installed git-annex, simply download the gin client for macOS, extract the archive, and put the file named gin
in a location that's included in your $PATH
.
Type gin --help
to see the available commands and their description.
There are two ways how you can install the GIN client: via downloading the Bundle (for Debian-based distributions only) which includes its git and git-annex dependencies or via downloading only the GIN client itself.
The Bundle for Debian-based distributions (including Ubuntu and derivatives) can be downloaded here as a deb file.
It includes the GIN client as well as git-annex.
Simply download the bundle, install it and you should be all set.
To install, double click the .deb
file or from the command line type dpkg -i gin-cli-latest.deb
from the directory in which it was downloaded.
Downloading the GIN client without its dependencies is recommended if you already have git-annex set up.
You only need to download the client, extract the archive, and put the file named gin
in a location that's included in your $PATH
.
If you struggle, here is a StackOverflow Post dealing with this issue.
If your distribution does not provide git-annex, or provides a version prior to version 7 you can download and install it manually.
For Arch Linux, the GIN client is available in the AUR.
Type gin --help
to see the available commands and their description.
The GIN client is written in Go. To build the client from source, you need a working Go installation. See the official Go Programming Language Getting Started guide for instructions on installing the compiler and related tools.
The source code for the GIN client can be found on GitHub at https://github.com/G-Node/gin-cli.
The binary can be built and copied to the Go bin directory automatically using make install
.
Alternatively, if make isn't available, it can be built and installed by running go install
from the root of the repository.
Note that building using go install
creates an executable called gin-cli
(or gin-cli.exe
on Windows).
Important note: When compiling from source, git and git-annex (v7+) need to be installed for all client features to be available.
This will delete the page "GIN CLI Setup"
. Please be certain.