> ## Documentation Index
> Fetch the complete documentation index at: https://developers.stellar.org/llms.txt
> Use this file to discover all available pages before exploring further.

# Upload Wasm bytecode

> Use the Stellar CLI to upload a compiled smart contract on the ledger

To use the Stellar CLI to upload a compiled smart contract on the ledger, use the `stellar contract upload` command:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
stellar contract upload \
    --source S... \
    --network testnet \
    --wasm ../relative/path/to/soroban_contract.wasm
```

> [!NOTE]
>
> Note this command will return the hash ID of the Wasm bytecode, rather than an address for a contract instance.
