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

# Add meta data to contract WASM on build

> Include meta data in the contract WASM byte code on build

To build a smart contract, use the `stellar contract build` command. The `--meta` option will allow you to add additional meta data entries to the `contractmetav0` custom section of the resulting WASM file at build time.

```bash cookbooktest.ignore theme={"theme":{"light":"github-light","dark":"github-dark"}}
export SHA=$(git rev-parse HEAD)
```

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
stellar contract build \
    --manifest-path ./cmd/crates/soroban-test/tests/fixtures/test-wasms/hello_world/Cargo.toml \
    --meta source_repo=https://github.com/stellar/stellar-cli \
    --meta commit_sha=$SHA
```

You can then use `stellar contract info meta` to see the meta data:

```bash theme={"theme":{"light":"github-light","dark":"github-dark"}}
stellar contract info meta \
  --wasm target/wasm32v1-none/release/test_hello_world.wasm
```

```bash cookbooktest.ignore theme={"theme":{"light":"github-light","dark":"github-dark"}}
Contract meta:
 • rsver: 1.91.0 (Rust version)
 • rssdkver: 23.0.1#510d3feb724c2b01d7e7ab7652f03b9f8efc3f35 (Soroban SDK version and its commit hash)
 • cliver: 23.1.4#v20.0.0-646-g70895dd66fb7dbf2f4c2a81cf38546512ba4198e-dirty
 • source_repo: https://github.com/stellar/stellar-cli
 • commit_sha: c6f881689d3f4936cb3262089eb70142e9ca9c91
```
