@@ -29,6 +29,106 @@ When running the Oasis CLI for the first time, it will generate a configuration
2929file and populate it with the current Mainnet and Testnet networks. It will also
3030configure all [ ParaTimes supported by the Oasis Foundation] [ paratimes ] .
3131
32+ ## Installing or Updating Oasis CLI on macOS
33+
34+ This guide covers the installation or update process for the Oasis CLI on
35+ macOS (compatible with Apple Silicon M1/M2/M3). It assumes you have Terminal
36+ access and basic command-line knowledge.
37+
38+ ### Prerequisites
39+
40+ - macOS (tested on Apple Silicon).
41+ - To avoid modifying system directories, we’ll install the binary in a
42+ user-specific path (` ~/.local/bin ` ). Ensure ` ~/.local/bin ` is in your ` PATH ` .
43+ If not, add it by editing your shell configuration file (e.g., ` ~/.zshrc `
44+ for zsh):
45+
46+ ``` shell
47+ echo ' export PATH="$HOME/.local/bin:$PATH"' >> ~ /.zshrc
48+ source ~ /.zshrc
49+ ```
50+
51+ Create the directory if it doesn’t exist:
52+
53+ ``` shell
54+ mkdir -p ~ /.local/bin
55+ ```
56+
57+ ### Installation Steps
58+
59+ 1 . ** Download the Binary**
60+
61+ - Visit the Oasis CLI [ cli-releases] page.
62+ - Download the latest macOS archive, e.g.,
63+ ` oasis_cli_X.Y.Z_darwin_all.tar.gz ` (replace ` X.Y.Z ` with the version,
64+ like ` 0.14.1 ` ).
65+
66+ 2 . ** Extract the Archive**
67+
68+ ``` shell
69+ cd ~ /Downloads
70+ tar -xzf oasis_cli_X.Y.Z_darwin_all.tar.gz # replace with your version
71+ ```
72+
73+ This creates a directory such as ` oasis_cli_X.Y.Z_darwin_all ` .
74+
75+ 3 . ** Navigate to the Extracted Directory**
76+
77+ ``` shell
78+ cd oasis_cli_X.Y.Z_darwin_all
79+ ```
80+
81+ 4 . ** Move the Binary to the User Path**
82+
83+ ``` shell
84+ mv oasis ~ /.local/bin/
85+ ```
86+
87+ 5 . ** Bypass macOS Gatekeeper** (if you encounter a security warning)
88+
89+ ``` shell
90+ xattr -d com.apple.quarantine ~ /.local/bin/oasis
91+ ```
92+
93+ If a dialog appears, go to ** System Settings → Privacy & Security →
94+ Security** and click ** Open Anyway** .
95+
96+ 6 . ** Verify Installation**
97+
98+ ``` shell
99+ oasis --version
100+ ```
101+
102+ The CLI version should be displayed. If so, the Oasis CLI is installed and
103+ ready to use.
104+
105+ ### Updating the Oasis CLI
106+
107+ To update the Oasis CLI to a newer version, simply overwrite the binary with
108+ the latest version. Your configurations (wallets, settings) are preserved.
109+
110+ 1 . ** Check Current Version**
111+
112+ ``` shell
113+ oasis --version
114+ ```
115+
116+ Compare the output with the latest version on the [ cli-releases] page to
117+ see if an update is available.
118+
119+ 2 . ** Update Process**
120+
121+ Follow the same installation steps above using the new version archive.
122+ Because you are overwriting the existing binary, no additional cleanup is
123+ required.
124+
125+ ### Notes
126+
127+ - Clean-up: You can delete the downloaded ` .tar.gz ` file and extracted
128+ directory after installation or update.
129+ - For major version updates, review the release notes on GitHub for any
130+ breaking changes or additional steps.
131+
32132## Configuration
33133
34134The configuration folder of Oasis CLI is located:
0 commit comments