> ## 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.

# Deploy a contract from uploaded Wasm bytecode

> Deploy an instance of a compiled contract that has already been uploaded on the network

To deploy an instance of a compiled smart contract that has already been uploaded onto the Stellar network, use the `stellar contract deploy` command:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
stellar contract deploy \
    --source S... \
    --network testnet \
    --wasm-hash <hex-encoded-wasm-hash> \
    --alias <alias>
```

> [!TIP]
>
> Optionally assign an alias by replacing `<alias>` with your desired alias name for the contract. The alias is a locally stored mapping to the contract address, and can be used in other stellar-cli commands in place of the address.
