Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions docs/template/names.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,17 @@

</CodeGroup>

## Name format

Before a name is used, it's trimmed of surrounding whitespace and lowercased. The result must match the pattern `^[a-z0-9-_]+$`:

Check warning on line 43 in docs/template/names.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/template/names.mdx#L43

Did you really mean 'lowercased'?

- Lowercase letters (`a`–`z`), numbers (`0`–`9`), dashes (`-`), and underscores (`_`)
- At least one character
- Leading and trailing dashes or underscores are allowed
- No maximum length

Uppercase letters are accepted on input and lowercased automatically, so `My-Template` and `my-template` refer to the same name. Any other character (spaces inside the name, dots, slashes, and so on) is rejected.

Check warning on line 50 in docs/template/names.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/template/names.mdx#L50

Did you really mean 'lowercased'?

## Team-local naming

Template names are scoped to your team. This means:
Expand All @@ -45,10 +56,10 @@
- Your template named `my-app` is stored as `your-team-slug/my-app`
- You can reference it simply as `my-app` within your team
- Other teams can have their own `my-app` template without conflict
- Public templates should be referenced using the full namespaced format (`team-slug/template-name`)

Check warning on line 59 in docs/template/names.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/template/names.mdx#L59

Did you really mean 'namespaced'?

<Info>
**Backwards Compatibility**: Existing public templates remain accessible without the team slug prefix. New public templates should be referenced using the full namespaced format (`team-slug/template-name`).

Check warning on line 62 in docs/template/names.mdx

View check run for this annotation

Mintlify / Mintlify Validation (e2b) - vale-spellcheck

docs/template/names.mdx#L62

Did you really mean 'namespaced'?
</Info>

## Common use cases
Expand Down