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

# devbox setup-github

> Configure GitHub CLI and Git authentication on a Devbox.

Configure GitHub CLI and Git authentication on a Devbox using the token from your local GitHub CLI.

The command runs `gh auth token` locally, activates the selected Devbox if necessary, passes the token to `gh auth login --with-token` on the Devbox, and runs `gh auth setup-git`. Install `gh` and authenticate locally before running it.

## Usage

```bash theme={null}
devbox setup-github [name] [flags]
```

## Examples

### Configure a named Devbox

```bash theme={null}
devbox setup-github my-devbox
```

```text Output nocopy theme={null}
All done.
```

If you omit the name, the CLI prompts you to select a Devbox.

## Options

<ResponseField name="--show-all" type="boolean" default="false">
  Include Devboxes created by other users when selecting a target.
</ResponseField>

## Related topics

<Columns cols={2}>
  <Card title="Create a Devbox" icon="plus" href="/docs/reference/devbox-cli/create">
    Use `--setup_github` to perform the same setup while creating a Devbox.
  </Card>

  <Card title="Manage Devboxes" icon="settings" href="/docs/devbox/managing">
    Learn about common Devbox management tasks.
  </Card>
</Columns>
