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

# サンドボックスを作成してターミナルに接続

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/ja/guides/sandbox-cli">tutorial</Link> to install the CLI and complete <Link href="/docs/ja/guides/sandbox-cli-auth">authentication</Link>.</Note>;
  }
};

<SandboxCliConfigHint />

次のコマンドを使用すると、コマンドラインツールでサンドボックスを起動し、ターミナルに接続できます。

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

ターミナルからサンドボックスを直接操作できます。接続を終了するには `exit` を実行します。切断されると、サンドボックスは自動的に終了されます。
