2020-01-14 15:57:45 +03:00
|
|
|
.. meta::
|
|
|
|
:description: Uninstall the Hasura CLI on Linux, Mac OS, Windows
|
|
|
|
:keywords: hasura, hasura CLI, uninstall, linux, mac, windows
|
|
|
|
|
2020-03-11 22:42:36 +03:00
|
|
|
.. _uninstall_hasura_cli:
|
|
|
|
|
2018-09-11 14:11:24 +03:00
|
|
|
Uninstalling the Hasura CLI
|
|
|
|
===========================
|
|
|
|
|
2018-12-03 15:12:24 +03:00
|
|
|
.. contents:: Table of contents
|
|
|
|
:backlinks: none
|
|
|
|
:depth: 1
|
|
|
|
:local:
|
|
|
|
|
2019-11-20 09:20:28 +03:00
|
|
|
Uninstall a binary
|
|
|
|
------------------
|
|
|
|
|
|
|
|
If you installed the binary directly on your system (probably through shell script),
|
|
|
|
delete the binary file from its installation location.
|
2018-09-11 14:11:24 +03:00
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
2019-02-05 15:51:21 +03:00
|
|
|
# By default, the binary is installed at /usr/local/bin/hasura
|
|
|
|
$ which hasura
|
|
|
|
/usr/local/bin/hasura
|
|
|
|
|
2018-09-11 14:11:24 +03:00
|
|
|
# use sudo if required
|
|
|
|
$ rm /usr/local/bin/hasura
|
2019-11-20 09:20:28 +03:00
|
|
|
|
|
|
|
|
|
|
|
Uninstall an npm package
|
|
|
|
------------------------
|
|
|
|
|
|
|
|
If you installed the CLI as an npm package, use npm (or yarn).
|
|
|
|
|
|
|
|
.. code-block:: bash
|
|
|
|
|
|
|
|
# if installed as a project dependency
|
|
|
|
npm uninstall hasura-cli
|
|
|
|
|
|
|
|
# if installed as a global package
|
2020-01-14 15:57:45 +03:00
|
|
|
npm uninstall --global hasura-cli
|