gli command not found

In this troubleshooting guide we learn how to fix gli command not found error message

Introduction

When you run more command in linux terminal / console, you get the following error message

gli: command not found

or when using sudo you get the following error message

sudo: gli: command not found

Solutions to gli: command not found

How To Fix gli: command not found in Ubuntu / Debian / Kali Linux / Raspbian

In Ubuntu gli is provided by ruby-gli package.

ruby-gli is:

Build command-suite CLI apps that are awesome. Bootstrap your app, add commands, options and documentation while maintaining a well-tested idiomatic command-line app

GLI allows you to make a polished, easy-to-maintain command-line application without a lot of syntax, but without restricting you in any way from the power of OptionParser.

GLI is the best way to make a “command-suite” command-line application, e.g. one like git.

To fix this problem, we can install more using the command below.

sudo apt-get -y install ruby-gli

This command might take some time to finish depending on your machine internet connection.

You can also use apt command to install ruby-gli.

sudo apt -y install ruby-gli

Or if you have aptitude installed you can use the following command.

sudo aptitude install ruby-gli

Summary

In this tutorial we learn how to fix gli command not found error in Ubuntu / Debian / Kali Linux or Raspbian distribution.