|
| 1 | +Installation |
| 2 | +============ |
| 3 | + |
| 4 | +.. tab-set:: |
| 5 | + |
| 6 | + .. tab-item:: :iconify:`material-icon-theme:uv` uvx.sh |
| 7 | + :sync: uvx-sh |
| 8 | + |
| 9 | + `uvx.sh <https://uvx.sh>`_ provides an installation script that installs scim2-cli permanently on your system. |
| 10 | + |
| 11 | + .. tab-set:: |
| 12 | + :class: outline |
| 13 | + |
| 14 | + .. tab-item:: Linux / macOS |
| 15 | + |
| 16 | + .. code-block:: console |
| 17 | +
|
| 18 | + $ curl -LsSf uvx.sh/scim2-cli/install.sh | sh |
| 19 | +
|
| 20 | + .. tab-item:: Windows |
| 21 | + |
| 22 | + .. code-block:: powershell |
| 23 | +
|
| 24 | + powershell -ExecutionPolicy ByPass -c "irm https://uvx.sh/scim2-cli/install.ps1 | iex" |
| 25 | +
|
| 26 | + Then you can run: |
| 27 | + |
| 28 | + .. code-block:: console |
| 29 | +
|
| 30 | + $ scim2 --help |
| 31 | +
|
| 32 | + .. tab-item:: :iconify:`material-icon-theme:uv` uvx |
| 33 | + :sync: uvx |
| 34 | + |
| 35 | + If you have `uv`__ installed, you can run scim2-cli directly without installing it: |
| 36 | + |
| 37 | + __ https://docs.astral.sh/uv/ |
| 38 | + |
| 39 | + .. code-block:: console |
| 40 | +
|
| 41 | + $ uvx scim2-cli --help |
| 42 | +
|
| 43 | + .. tab-item:: :iconify:`devicon:pypi` pip |
| 44 | + :sync: pip |
| 45 | + |
| 46 | + scim2-cli is published on `PyPI <https://pypi.org/project/scim2-cli>`_. |
| 47 | + |
| 48 | + .. code-block:: console |
| 49 | +
|
| 50 | + $ pip install scim2-cli |
| 51 | +
|
| 52 | + Then you can run: |
| 53 | + |
| 54 | + .. code-block:: console |
| 55 | +
|
| 56 | + $ scim2 --help |
| 57 | +
|
| 58 | + .. tab-item:: :iconify:`mdi:file-download` Binaries |
| 59 | + :sync: binaries |
| 60 | + |
| 61 | + Binary files are available on the `releases page <https://github.com/python-scim/scim2-cli/releases>`_. |
| 62 | + |
| 63 | + .. code-block:: console |
| 64 | + :substitutions: |
| 65 | +
|
| 66 | + $ wget https://github.com/python-scim/scim2-cli/releases/download/|version|/scim2-linux -O scim2 |
| 67 | + $ chmod +x scim2 |
| 68 | + $ ./scim2 --help |
| 69 | +
|
| 70 | + .. tab-item:: :iconify:`devicon:git` Sources |
| 71 | + :sync: sources |
| 72 | + |
| 73 | + To run scim2-cli from the sources, `uv`__ is needed: |
| 74 | + |
| 75 | + __ https://docs.astral.sh/uv/getting-started/installation/ |
| 76 | + |
| 77 | + .. code-block:: console |
| 78 | +
|
| 79 | + $ git clone https://github.com/python-scim/scim2-cli.git |
| 80 | + $ cd scim2-cli |
| 81 | + $ uv sync |
| 82 | +
|
| 83 | + Then you can run it directly: |
| 84 | + |
| 85 | + .. code-block:: console |
| 86 | +
|
| 87 | + $ uv run scim2 --help |
| 88 | +
|
| 89 | + Or build a single file binary: |
| 90 | + |
| 91 | + .. code-block:: console |
| 92 | +
|
| 93 | + $ uv sync --group bundle |
| 94 | + $ uv run pyinstaller --name scim2 --onefile scim2_cli/__init__.py |
| 95 | + $ ./dist/scim2 --help |
0 commit comments