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

# gitlab:credentials:create

> Save a GitLab Personal Access Token under the user config.

Save a GitLab Personal Access Token for commands that interact with GitLab. The token is written as block-style YAML to `~/.talos/credentials/gitlab.yml` under the `default` profile.

Create a Personal Access Token (with the `api` scope) at [gitlab.com/-/user\_settings/personal\_access\_tokens](https://gitlab.com/-/user_settings/personal_access_tokens).

## Usage

```bash theme={null}
talos gitlab:credentials:create [options]
```

## Examples

Run with no flags to be prompted for the token (input is hidden):

```bash theme={null}
talos gitlab:credentials:create
```

Provide the token non-interactively:

```bash theme={null}
talos gitlab:credentials:create --token=glpat-xxxxxxxx
```

## Options

| Option     | Description                                                       | Default             |
| ---------- | ----------------------------------------------------------------- | ------------------- |
| `--token`  | GitLab Personal Access Token to store.                            | Prompted if omitted |
| `--silent` | Suppress the instructional message and the saved-to confirmation. | `false`             |
