# Install (/docs/install)

> Release binaries and their checks, building from source, and the checks CI runs.

## From a release [#from-a-release]

Each release has, for each `<platform>` of `linux-x86_64`, `linux-arm64`, `macos-x86_64` and
`macos-arm64`:

- `shapekit-<platform>`, the CLI;
- `indexerlint-<platform>`, the linter;
- `wb-adapter-<platform>`, the wallet-backend reference adapter for the harness;

and, for every platform:

- `corpus-<version>.tar.zst`, the corpus;
- `goldens-core-<tag>.tar.zst`, stellar-core's `test-lcm-current` goldens the corpus was
  checked against;
- `SHA256SUMS` over all of them.

The current release is [v0.2.0](https://github.com/ErenTopaal/shapekit/releases/tag/v0.2.0),
with corpus 0.2.0. To download and check its Linux x86-64 assets:

```sh
gh release download v0.2.0 --repo ErenTopaal/shapekit \
  --pattern SHA256SUMS --pattern corpus-0.2.0.tar.zst \
  --pattern 'shapekit-linux-x86_64' --pattern 'indexerlint-linux-x86_64' --pattern 'wb-adapter-linux-x86_64'
sha256sum -c --ignore-missing SHA256SUMS      # macOS: shasum -a 256 -c --ignore-missing SHA256SUMS
gh attestation verify shapekit-linux-x86_64 --repo ErenTopaal/shapekit
chmod +x shapekit-linux-x86_64 indexerlint-linux-x86_64 wb-adapter-linux-x86_64
```

Without `gh`, each asset is at
`https://github.com/ErenTopaal/shapekit/releases/download/v0.2.0/<asset>`. The sha256 values of
v0.2.0, as its `SHA256SUMS` lists them:

```text
6fa534d82f6cb46b39311904ff2d6f1233e2b39f71aef391afcdce664fa65c04  corpus-0.2.0.tar.zst
0a11bf9c0d981be29833e133b20f703ef027c8541366aefc246abb3c4310ef6e  goldens-core-v30.0.0.tar.zst
0702a6b66d8bba87a802275f3290de07e24cc685352b8224d89710c79f5b834b  indexerlint-linux-arm64
591504f89a07a20a0305e8766ff3d4fe06c96183652ebc34d4cd8b1ec1b20125  indexerlint-linux-x86_64
c97deb7a80bbac4f8f00178c31efe02a7de4f9545fafdad0ee4fee9f56884202  indexerlint-macos-arm64
f95e8c82210642f53cca6717dbd1d118234757fbdf16bc3af12430dde561fa90  indexerlint-macos-x86_64
cc37401a07cfd3f06de7c9e91ee6a4c5b430d20fc5a336af61f6b1184f1b30e1  shapekit-linux-arm64
9b6c29ba1be088b76678777523b1cbcd17fc2c6194c6306e6dda33e890b6484e  shapekit-linux-x86_64
4e4ee6db8d89e713d8dd87f996056b97a63a4a7b431398b7846011d71ede0055  shapekit-macos-arm64
11184dce82ce5c1a4d5ab35b76108f338ae9a71e30fdd5b0cc2737d3049786c8  shapekit-macos-x86_64
1a310137739e86e7e2c5789006c823f68d57ce766d4f5dc93fea87b5f01179bd  wb-adapter-linux-arm64
03a8407e6ead2aa334ff70d0e4ccb9597b8feeb8256771a03f3b8023076e58cc  wb-adapter-linux-x86_64
548e5b7ca74daf264d0f1821ecb61f818faef5b4086a4952acbadbb9f69e0e14  wb-adapter-macos-arm64
ba23828f768078d6969d77ae2eda6440dc3f4f9f657d555665993912d7c45713  wb-adapter-macos-x86_64
```

Each platform's binaries are built on a GitHub runner of that platform. The project's own CI
runs only the Linux x86-64 build; release builds for the other platforms run `--version` and
nothing more before they are published. A binary downloaded with a browser on macOS carries the quarantine attribute, and
macOS refuses to start an unsigned binary that has it; `xattr -d com.apple.quarantine
<file>` removes it. Downloads with `gh release download` or `curl` do not get it.

## From source [#from-source]

Toolchains are pinned: Rust 1.99.1 (`rust-toolchain.toml`), Go 1.27.4, Node.js 26.13.1,
Flutter 3.50.0 for the Dart testee, PHP 8.5.12 with Composer 2.11.2 for the PHP testee, and the .NET SDK 11.0.100 for the .NET
testee.

```sh
cargo build --release --locked -p shapekit-cli     # target/release/shapekit
(cd lint && go build -o indexerlint ./cmd/indexerlint)
(cd adapters && go build -o bin/wb-adapter ./walletbackend/cmd/wb-adapter)
```

Run the commands in the [quick start](/docs/quick-start) from the root of a checkout of this
repository at the release tag, with `shapekit` and `indexerlint` on `PATH` and the adapter at
`adapters/bin/wb-adapter`. Their default paths (`corpus/`, `registry/`, `conformance/`,
`testees/`, `pins.toml`) are relative to that root.

## Check your setup [#check-your-setup]

```sh
shapekit doctor                 # everything check sdk, check indexer and lint need
shapekit doctor sdk --sdk js    # only what check sdk --sdk js needs
```

`doctor` looks for every program the SDK build steps in `conformance/versions.toml` start,
compares Rust, Go and Node.js with the versions in `pins.toml`, checks that the Docker daemon
answers, that `indexerlint` and the corpus are there and how much disk is free, and that the
package registries the SDK builds fetch from can be reached (`--offline` skips that). For
each missing piece it prints how to install it, and it exits 1 while anything is missing.

## Building and checking [#building-and-checking]

The same commands CI runs on every pull request (see [Infrastructure](/docs/operations/infrastructure)
for the full list and their measured durations):

```sh
cargo fmt --all --check
cargo clippy --workspace --all-targets -- -D warnings
cargo test --workspace

# in each module listed in go.work; adapters/ needs SHAPEKIT_BIN or target/debug/shapekit
go vet ./... && go test ./... && golangci-lint run ./...

# the soroban-sdk testee, outside the workspace, at its current version
m=testees/soroban/versions/30.0.0/Cargo.toml t=target/testees/soroban/30.0.0
cargo clippy --locked --all-targets --manifest-path $m --target-dir $t -- -D warnings
cargo test --locked --manifest-path $m --target-dir $t

# node 26; testees/js/.npmrc sets engine-strict, so npm ci fails on an older node
cd testees/js && npm ci && npx tsc --noEmit && npx tsc && node --test "dist/**/*.test.js"

scripts/check-no-em-dash.sh
```