# Exec

URL: https://docs.hanzo.ai/docs/cli/exec

> The `hanzo exec` commands.

Also for this capability: [API](https://docs.hanzo.ai/docs/openapi/exec) · **CLI** · [SDKs](https://docs.hanzo.ai/docs/sdks)

The code interpreter: run a snippet in a sandbox, and move files in and out of the session that sandbox IS.

[API reference →](https://docs.hanzo.ai/docs/openapi/exec)

| Command                                         | What it does                                  |
| ----------------------------------------------- | --------------------------------------------- |
| `hanzo exec create --code <code> --lang <lang>` | Run a code snippet in a sandboxed interpreter |
| `hanzo exec upload`                             | Upload a file into an execution session       |

### Files

| Command                      | What it does                             |
| ---------------------------- | ---------------------------------------- |
| `hanzo exec files get <sid>` | Lists the files in an execution session. |
