Skip to content

Commit 078a3bc

Browse files
mishushakovclaude
andauthored
docs: document template name format (#276)
* docs: document template name format Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> * docs: add 128 character limit to template name format Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent bc7485f commit 078a3bc

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

docs/template/names.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,16 @@ 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+
- Between 1 and 128 characters
47+
- Leading and trailing dashes or underscores are allowed
48+
49+
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.
50+
4151
## Team-local naming
4252

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

0 commit comments

Comments
 (0)