# `OpenCode.Generated.V2Commands`
[🔗](https://github.com/UtkarshUsername/opencode-sdk-elixir/blob/v0.1.84/lib/opencode/generated/v2_commands.ex#L1)

Provides API endpoint related to v2 commands

# `v2_command_list_200_json_resp`

```elixir
@type v2_command_list_200_json_resp() :: %{
  data: [OpenCode.Generated.CommandV2Info.t()],
  location: OpenCode.Generated.LocationInfo.t()
}
```

# `v2_command_list`

```elixir
@spec v2_command_list(opts :: keyword()) ::
  {:ok, v2_command_list_200_json_resp()}
  | {:error,
     OpenCode.Generated.InvalidRequestError.t()
     | OpenCode.Generated.UnauthorizedError.t()}
```

List v2 commands

Retrieve currently registered v2 commands.

## Options

  * `location`

---

*Consult [api-reference.md](api-reference.md) for complete listing*
