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

# Credentials

> Manage API credentials for Timeback services

## Overview

The `timeback credentials` command manages API credentials stored securely on your machine.

<Tip>
  If you're just getting started, `timeback init` will automatically prompt for credentials when
  needed. Use `timeback credentials` when you need explicit control over credential management.
</Tip>

## Commands

### `add`

Add credentials interactively:

```bash theme={null}
timeback credentials add
```

The wizard prompts for:

1. **Service**: Which API (OneRoster, EduBridge, etc.)
2. **Environment**: Staging or production
3. **Base URL**: API endpoint
4. **Token URL**: OAuth token endpoint
5. **Client ID**: Your client ID
6. **Client Secret**: Your client secret

### `list`

List stored credentials:

```bash theme={null}
timeback credentials list
```

### `remove`

Remove stored credentials:

```bash theme={null}
timeback credentials remove
```

## Credential Priority

The CLI looks for credentials in this order:

1. **Environment variables**
2. **Stored credentials**

## Next Steps

<CardGroup cols={2}>
  <Card title="CLI: API" icon="plug" href="/beta/build-on-timeback/cli/api">
    Use credentials to query APIs
  </Card>

  <Card title="CLI: Resources" icon="folder" href="/beta/build-on-timeback/cli/resources">
    Manage course configurations
  </Card>
</CardGroup>
