> ## Documentation Index
> Fetch the complete documentation index at: https://novita.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Criar sandbox e conectar ao terminal

export const SandboxCliConfigHint = () => {
  if (typeof document === "undefined") {
    return null;
  } else {
    return <Note>Before running the command-line related example code in this document, please refer to the <Link href="/docs/pt-BR/guides/sandbox-cli">tutorial</Link> to install the CLI and complete <Link href="/docs/pt-BR/guides/sandbox-cli-auth">authentication</Link>.</Note>;
  }
};

<SandboxCliConfigHint />

Com o comando a seguir, você pode usar a ferramenta de linha de comando para iniciar um sandbox e se conectar ao terminal.

```bash Bash icon="terminal" theme={"system"}
novita-sandbox-cli sandbox create <template-id>
```

Você pode interagir com o sandbox diretamente pelo terminal. Execute `exit` para encerrar a conexão. Depois de desconectado, o sandbox será finalizado automaticamente.
