Skip to content

Commit

Permalink
update cli install instructions in migrations docs (#1607)
Browse files Browse the repository at this point in the history
  • Loading branch information
rikinsk committed Feb 17, 2019
1 parent 386ab81 commit 8750769
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 122 deletions.
43 changes: 2 additions & 41 deletions docs/graphql/manual/migrations/database-with-migrations.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,50 +21,11 @@ In case you've deployed this using Docker the URL might be ``http://xx.xx.xx.xx:
Step 1: Install the Hasura CLI
------------------------------

.. rst-class:: api_tabs
.. tabs::

.. tab:: Mac

In your terminal enter the following command:

.. code-block:: bash
curl -L https://cli.hasura.io/install.sh | bash
This will install the Hasura CLI in ``/usr/local/bin``. You might have to provide
your ``sudo`` password depending on the permissions of your ``/usr/local/bin`` location.

.. tab:: Linux

Open your linux shell and run the following command:

.. code-block:: bash
curl -L https://cli.hasura.io/install.sh | bash
This will install the Hasura CLI tool in ``/usr/local/bin``. You might have to provide
your ``sudo`` password depending on the permissions of your ``/usr/local/bin`` location.

.. tab:: Windows

.. note::

You should have ``git bash`` installed to use Hasura CLI. Download ``git bash`` using this `link
<https://git-scm.com/download/win>`__. Also, make sure you install it in ``MinTTY`` mode, instead of Windows'
default console.

Download the ``hasura`` installer:

* `hasura (64-bit Windows installer) <https://cli.hasura.io/install/windows-amd64>`__
* `hasura (32-bit Windows installer) <https://cli.hasura.io/install/windows-386>`__

**Note:** Please run the installer as ``Administrator`` to avoid PATH update errors. If you're still
getting a "command not found" error after installing Hasura CLI, please restart ``git bash``.

Follow the instructions in :doc:`../hasura-cli/install-hasura-cli`

Step 2: Set up a project directory
----------------------------------

Skip this step if you already have a project directory.

.. code-block:: bash
Expand Down
42 changes: 2 additions & 40 deletions docs/graphql/manual/migrations/existing-project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,50 +25,12 @@ In case you've deployed this using Docker the URL might be ``http://xx.xx.xx.xx:

Step 1: Install the Hasura CLI
------------------------------
.. rst-class:: api_tabs
.. tabs::

.. tab:: Mac

In your terminal enter the following command:

.. code-block:: bash
curl -L https://cli.hasura.io/install.sh | bash
This will install the Hasura CLI in ``/usr/local/bin``. You might have to provide
your ``sudo`` password depending on the permissions of your ``/usr/local/bin`` location.

.. tab:: Linux

Open your linux shell and run the following command:

.. code-block:: bash
curl -L https://cli.hasura.io/install.sh | bash
This will install the Hasura CLI tool in ``/usr/local/bin``. You might have to provide
your ``sudo`` password depending on the permissions of your ``/usr/local/bin`` location.

.. tab:: Windows

.. note::

You should have ``git bash`` installed to use Hasura CLI. Download ``git bash`` using this `link
<https://git-scm.com/download/win>`__. Also, make sure you install it in ``MinTTY`` mode, instead of Windows'
default console.

Download the ``hasura`` installer:

* `hasura (64-bit Windows installer) <https://cli.hasura.io/install/windows-amd64>`__
* `hasura (32-bit Windows installer) <https://cli.hasura.io/install/windows-386>`__

**Note:** Please run the installer as ``Administrator`` to avoid PATH update errors. If you're still
getting a "command not found" error after installing Hasura CLI, please restart ``git bash``.

Follow the instructions in :doc:`../hasura-cli/install-hasura-cli`

Step 2: Set up a project directory
----------------------------------

Skip this step if you already have a project directory.

.. code-block:: bash
Expand Down
42 changes: 1 addition & 41 deletions docs/graphql/manual/migrations/new-project.rst
Original file line number Diff line number Diff line change
Expand Up @@ -26,47 +26,7 @@ In case you've deployed this using Docker the URL might be ``http://xx.xx.xx.xx:
Step 1: Install the Hasura CLI
------------------------------

.. rst-class:: api_tabs
.. tabs::

.. tab:: Mac

In your terminal enter the following command:

.. code-block:: bash
curl -L https://cli.hasura.io/install.sh | bash
This will install the Hasura CLI in ``/usr/local/bin``. You might have to provide
your ``sudo`` password depending on the permissions of your ``/usr/local/bin`` location.

.. tab:: Linux

Open your linux shell and run the following command:

.. code-block:: bash
curl -L https://cli.hasura.io/install.sh | bash
This will install the Hasura CLI tool in ``/usr/local/bin``. You might have to provide
your ``sudo`` password depending on the permissions of your ``/usr/local/bin`` location.

.. tab:: Windows

.. note::

You should have ``git bash`` installed to use Hasura CLI. Download ``git bash`` using this `link
<https://git-scm.com/download/win>`__. Also, make sure you install it in ``MinTTY`` mode, instead of Windows'
default console.

Download the ``hasura`` installer:

* `hasura (64-bit Windows installer) <https://cli.hasura.io/install/windows-amd64>`__
* `hasura (32-bit Windows installer) <https://cli.hasura.io/install/windows-386>`__

**Note:** Please run the installer as ``Administrator`` to avoid PATH update errors. If you're still
getting a "command not found" error after installing Hasura CLI, please restart ``git bash``.

Follow the instructions in :doc:`../hasura-cli/install-hasura-cli`

Step 2: Setup a project directory
---------------------------------
Expand Down

0 comments on commit 8750769

Please sign in to comment.