Skip to content

Commit 829bf45

Browse files
mishushakovclaude
andcommitted
docs: document template name format
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent ba9464b commit 829bf45

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

docs/template/names.mdx

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,17 @@ sandbox = Sandbox.create('my-python-env')
3838

3939
</CodeGroup>
4040

41+
## Name format
42+
43+
Before a name is used, it's trimmed of surrounding whitespace and lowercased. The result must match the pattern `^[a-z0-9-_]+$`:
44+
45+
- Lowercase letters (`a``z`), numbers (`0``9`), dashes (`-`), and underscores (`_`)
46+
- At least one character
47+
- Leading and trailing dashes or underscores are allowed
48+
- No maximum length
49+
50+
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.
51+
4152
## Team-local naming
4253

4354
Template names are scoped to your team. This means:

0 commit comments

Comments
 (0)