> For the complete documentation index, see [llms.txt](https://docs.baas.sh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.baas.sh/baas-cli/advanced/foundry.md).

# Foundry commands

`baas` is a thin wrapper around [Foundry](https://getfoundry.sh). Any command that isn't a BaaS command is forwarded **as-is** to `forge`, with the same arguments, output, and exit code. You can use `baas` anywhere you'd use `forge`:

```bash
baas build        # → forge build
baas test -vvv    # → forge test -vvv
baas fmt          # → forge fmt
baas inspect ...  # → forge inspect ...
```

{% hint style="info" %}
`baas --version` prints both versions (`@baas/cli` and the installed `forge`), so you can confirm your toolchain at a glance.
{% endhint %}

This means you don't have to switch between two tools. Keep your normal Foundry workflow, and reach for the BaaS commands (`login`, `use`, `deploy`, …) when you need them.

## Next

* [Command reference](/baas-cli/reference.md) — all the BaaS commands and flags.
* [Deploy a contract](/baas-cli/deploy.md) — the headline BaaS command.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.baas.sh/baas-cli/advanced/foundry.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
