# switch

{% hint style="success" %}
This is the official documentation of the `agent_ruby` Ruby agent.
{% endhint %}

The `forest switch` command allows you to change your current branch by selecting one among the existing branches in your Development Environment:

```
$ forest switch --help
Switch to another branch in your local development environment.

USAGE
  $ forest switch [BRANCH_NAME]

ARGUMENTS
  BRANCH_NAME  The name of the local branch to set as current.

OPTIONS
  --help  Display usage information.
```

**Branch selection**

You can switch directly to a specific branch by using `forest branch <my_branch_name>`.

Omitting the branch name will allow you to easily select one:

```
$ forest switch
[? Select the branch you want to set-current:
feature/add-new-smart-view-with-information
hotfix/fix-dropdown-issue
feature/implement-refund-smart-action
```


---

# Agent Instructions: 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.forestadmin.com/developer-guide-agents-ruby/deploying-to-production/forest-cli-commands/switch.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.
