cargo install gitql
Note that from version
0.10.0
installing from Cargo requireCmake
to be installed so it can build the dependencies.
winget install gitql
scoop install gitql
gitql <repository_path>
gitql --repo <repository_path> <repository_path> ...etc
gitql -r <repository_path> <repository_path> ...etc
## Download Binaries
From Github repository page you can download the right executable for your OS and Arch from the latest release
## Build GQL From source code
```sh
git clone https://github.com/amrdeveloper/gql
cd gql
# On Single repository
cargo run <repository_path>
# On multi repositories
cargo run -- --repo <repository_path> <repository_path> ...etc
cargo run -- -r <repository_path> <repository_path> ...etc
Usage: gitql [OPTIONS]
Options:
-r, --repos <REPOS> Path for local repositories to run query on
-q, --query <GQL Query> GitQL query to run on selected repositories
-p, --pagination Enable print result with pagination
-ps, --pagesize Set pagination page size [default: 10]
-o, --output Set output format [render, json, csv]
-a, --analysis Print Query analysis
-h, --help Print GitQL help
-v, --version Print GitQL Current Version