# Template management

> Template management - List, clone, set up, and check status of DataRobot application templates.

This Markdown file sits beside the HTML page at the same path (with a `.md` suffix). It summarizes the topic and lists links for tools and LLM context.

Companion generated at `2026-05-06T18:17:09.548253+00:00` (UTC).

## Primary page

- [Template management](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/templates.html): Full documentation for this topic (HTML).

## Sections on this page

- [Template management](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/templates.html#template-management): In-page section heading.
- [Synopsis](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/templates.html#synopsis): In-page section heading.
- [Description](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/templates.html#description): In-page section heading.
- [Subcommands](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/templates.html#subcommands): In-page section heading.
- [list](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/templates.html#list): In-page section heading.
- [setup](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/templates.html#setup): In-page section heading.
- [Template selection screen](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/templates.html#template-selection-screen): In-page section heading.
- [clone](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/templates.html#clone): In-page section heading.
- [status](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/templates.html#status): In-page section heading.
- [Global flags](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/templates.html#global-flags): In-page section heading.
- [Choosing templates vs. setup](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/templates.html#choosing-templates-vs-setup): In-page section heading.
- [See also](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/templates.html#see-also): In-page section heading.

## Related documentation

- [Agentic AI](https://docs.datarobot.com/en/docs/agentic-ai/index.html): Linked from this page.
- [CLI](https://docs.datarobot.com/en/docs/agentic-ai/cli/index.html): Linked from this page.
- [Command reference](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/index.html): Linked from this page.
- [State tracking](https://docs.datarobot.com/en/docs/agentic-ai/cli/configuration.html#state-tracking): Linked from this page.
- [Template system](https://docs.datarobot.com/en/docs/agentic-ai/cli/template-system/index.html): Linked from this page.
- [Interactive configuration](https://docs.datarobot.com/en/docs/agentic-ai/cli/template-system/interactive-config.html): Linked from this page.
- [Getting started](https://docs.datarobot.com/en/docs/agentic-ai/cli/getting-started.html): Linked from this page.
- [dotenv](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/dotenv.html): Linked from this page.

## Documentation content

## Template management

Manage DataRobot application templates: list available templates, clone repositories, run the interactive setup wizard, and check template status.

## Synopsis

```
dr templates <command> [arguments] [flags]
```

## Description

The `templates` command provides subcommands for discovering, cloning, and configuring application templates from your DataRobot instance. Templates are pre-configured application scaffolds that you customize into your own application.

## Subcommands

### list

List available templates from your DataRobot instance.

```
dr templates list
```

Behavior:

- Requires authentication. Run dr auth login if not already authenticated.
- Fetches templates from the DataRobot API that are available to your user and organization.
- Displays template names and descriptions.

Example:

```
$ dr templates list
Available templates:
* python-streamlit     - Streamlit application template
* react-frontend       - React frontend template
* fastapi-backend      - FastAPI backend template
```

Flags: All [global flags](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/index.html#global-flags) apply (e.g., `--verbose`, `--debug`, `--skip-auth`).

### setup

Run the interactive setup wizard to select, clone, and configure a template.

```
dr templates setup
```

Behavior:

1. Displays a list of templates available to you.
2. You select a template and specify a directory name; the wizard clones the template there.
3. Guides you through environment configuration (or skips it if already completed; see State tracking ).
4. Optionally runs dr dotenv setup if the template has environment prompts.

For details on the template system and configuration wizard, see [Template system](https://docs.datarobot.com/en/docs/agentic-ai/cli/template-system/index.html) and [Interactive configuration](https://docs.datarobot.com/en/docs/agentic-ai/cli/template-system/interactive-config.html).

### Template selection screen

When the setup wizard runs, you see a template list screen:

- Navigate the list with the arrow keys (↑/↓).
- Filter templates by pressing / and typing a search term.
- Select a template by pressing Enter .
- At the next prompt, enter the desired directory name for the cloned template and press Enter to clone.

Only templates that are available to your user account are shown. After cloning, the wizard continues with configuration steps as needed.

Flags: All [global flags](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/index.html#global-flags) apply. Use `--force-interactive` to run the wizard even if setup was previously completed.

### clone

Clone a template repository by name (and optional target directory).

```
dr templates clone <template-name> [directory]
```

Arguments:

- template-name — Name or identifier of the template (as shown by dr templates list ).
- directory (optional) — Local directory name or path for the clone. If omitted, the template name is used.

Examples:

```
# Clone into a directory named after the template
dr templates clone python-streamlit

# Clone into a custom directory
dr templates clone python-streamlit my-app
```

Behavior:

- Requires authentication.
- Clones the template's Git repository to the current working directory.
- After cloning, run dr dotenv setup to configure environment variables, or use dr templates setup to run the full wizard (which includes clone + configuration).

### status

Show the current template's status (version, modifications, updates).

```
dr templates status
```

Behavior:

- Must be run from within a cloned template directory.
- Shows current version, latest available version (if applicable), modified files, and whether updates are available.

Example:

```
$ dr templates status
Template: python-streamlit
Current version: 1.0.0
Modified files: .env (local only)
```

## Global flags

All `dr` [global flags](https://docs.datarobot.com/en/docs/agentic-ai/cli/commands/index.html#global-flags) apply to `dr templates` subcommands:

- -v, --verbose — Verbose output
- --debug — Debug output (creates dr-tui-debug.log in current directory for TUI debugging)
- --skip-auth — Skip authentication checks (advanced; API calls may fail)
- --force-interactive — Force setup wizard to run even if already completed
- -h, --help — Help

## Choosing templates vs. setup

- Use dr templates setup when you want a guided, all-in-one flow: select template, clone, and configure in one session. Recommended for most users.
- Use dr templates list and dr templates clone when you prefer to clone first and configure manually (e.g., dr dotenv setup afterward).

## See also

- Template system — How templates are structured and configured
- Interactive configuration — Wizard behavior and keyboard controls
- Getting started — Initial setup and first template
- dotenv — Environment variable management after cloning
