Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: discourage manual install; advertize pip #50

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 26 additions & 10 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,34 +21,50 @@ necessary to run any application in English.
Installation
------------

Atlas itself is a bash script, but it can be installed in a couple of
different ways:
Atlas itself is a bash script. It is recommended to install it as a package
to avoid unintentionally installing breaking changes,
while also simplifying the updating process.

Atlas prerequisites are ``git>=2.20.1`` and ``bash``.

**Install as a ``pip`` package**

Install from `PyPI <https://pypi.org/project/openedx-atlas/>`_

.. code:: sh

pip install openedx-atlas # or add the package to your requirements.txt

Verify that it is installed via ``atlas --help``.

First, ensure ``git`` is installed and available in ``PATH`` because atlas
relies on it.

**Install as an ``npm`` package**

Install from npm:
Install from `npm <https://www.npmjs.com/package/@edx/openedx-atlas>`_.

.. code:: sh

npm install @edx/openedx-atlas

Then add ``node_modules/.bin`` to your ``PATH``.

Verify that is installed via ``atlas --help``.
Verify that it is installed via ``atlas --help``.


**Install manually from GitHub releases**

**Install directly from GitHub releases**
This is considered a last resort because of the manual burden of updating
the ``atlas`` executable version or risking introducing breaking
changes to your code.

* Download ``atlas`` from the `latest release <https://github.com/openedx/openedx-atlas/releases/latest/>`_, or from the `main branch <https://github.com/openedx/openedx-atlas/blob/main/atlas>`_:
* Download ``atlas`` from the `latest release <https://github.com/openedx/openedx-atlas/releases/latest/>`_ or from the `main branch <https://github.com/openedx/openedx-atlas/blob/main/atlas>`_:

.. code:: sh

curl -L https://github.com/openedx/openedx-atlas/releases/latest/download/atlas -o atlas

* Allow execution ``chmod +x atlas``
* Either add ``atlas`` to your ``PATH``, or run using ``./atlas``
* Allow execution with ``chmod +x atlas``
* Either add ``atlas`` to your ``PATH`` or run it using ``./atlas``

Usage
-----
Expand Down
Loading