1 # Native Installation
2
3 Install directly from [crates.io](https://crates.io/crates/smbcloud-cli) using Cargo.
4
5 ## Prerequisites
6
7 - [Rust](https://rustup.rs) (stable toolchain)
8 - `CLI_CLIENT_SECRET` — required at compile time
9
10 The `CLI_CLIENT_SECRET` value is baked into the binary at compile time. Contact [seto@smbcloud.xyz](mailto:seto@smbcloud.xyz) or check your smbCloud account dashboard to obtain it.
11
12 ## Install
13
14 Export the secret, then install:
15
16 ```bash
17 export CLI_CLIENT_SECRET=your_secret_here
18 cargo install smbcloud-cli
19 ```
20
21 ## Verify
22
23 ```bash
24 smb --version
25 ```
26
27 ## Upgrade
28
29 ```bash
30 export CLI_CLIENT_SECRET=your_secret_here
31 cargo install smbcloud-cli --force
32 ```
33
34 ## Uninstall
35
36 ```bash
37 cargo uninstall smbcloud-cli
38 ```
39
40 ## Troubleshooting
41
42 **`error: proc-macro derive panicked … Error loading .env file`**
43
44 This error appears on older versions of `smbcloud-cli` (before `0.3.37`). Upgrade to the latest version — it reads `CLI_CLIENT_SECRET` directly from the environment at compile time and no longer requires a `.env` file.
45
46 **`error[E0463]: can't find crate for std`**
47
48 Your Rust toolchain is missing the target. Run:
49
50 ```bash
51 rustup target add <target>
52 ```