You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/sdk-and-tools/sdk-py/installing-mxpy.md
+6-19Lines changed: 6 additions & 19 deletions
Original file line number
Diff line number
Diff line change
@@ -21,14 +21,10 @@ Before installing **mxpy**, please make sure you have a working **Python 3** env
21
21
22
22
## **Install using pipx**
23
23
24
-
:::info
25
-
Keep in mind that installing using **pipx** is only available for **mxpy v9.2.0** or later.
26
-
:::
27
-
28
24
You'll need **pipx** installed on your machine. For more details on how to install **pipx** check out [**this page**](https://pipx.pypa.io/stable/#install-pipx).
29
25
30
26
:::note
31
-
If you've previously installed **mxpy** using **mxpy-up** and you'd like to switch to **pipx**, make sure to remove the old `mxpy` shortcut and virtual Python environment beforehand:
27
+
If you've previously installed **mxpy** using **mxpy-up**, we advise youto switch to **pipx**, but make sure to remove the old `mxpy` shortcut and virtual Python environment beforehand:
32
28
33
29
```sh
34
30
rm ~/multiversx-sdk/mxpy
@@ -63,27 +59,18 @@ To check that **mxpy** installed successfully you can run the following command:
63
59
mxpy --version
64
60
```
65
61
66
-
[comment]: #(mx-context-auto)
67
-
68
-
## **Upgrade mxpy using pipx**
69
-
70
-
To upgrade **mxpy** to a newer version you can simply run the following command:
62
+
Additionally, if you'd like to have shell completion for `bash` and `zsh`, run the following command, then restart the shell:
71
63
72
64
```sh
73
-
pipx upgrade multiversx-sdk-cli
65
+
activate-global-python-argcomplete
74
66
```
75
67
76
68
[comment]: #(mx-context-auto)
77
69
78
-
## **Install using mxpy-up**
79
-
80
-
Installing **mxpy** using **mxpy-up** is not recommended anymore. We recommend using **pipx** instead.
70
+
## **Upgrade mxpy using pipx**
81
71
82
-
If you've previously installed **mxpy**using the legacy **mxpy-up**, you should switch to the **pipx** approach. Make sure to remove the old `mxpy` shortcut and virtual Python environment beforehand:
72
+
To upgrade **mxpy**to a newer version, you can simply run the following command:
83
73
84
74
```sh
85
-
rm ~/multiversx-sdk/mxpy
86
-
rm -rf ~/multiversx-sdk/mxpy-venv
75
+
pipx upgrade multiversx-sdk-cli
87
76
```
88
-
89
-
Additionally, you might want to cleanup the shell profile files, to not alter anymore the `PATH` variable with respect to `~/multiversx-sdk`: `~/.profile`, `~/.bashrc` and / or `~/.zshrc`.
0 commit comments