Skip to content

Enforce kebab IDs in spin new and spin add - #3666

Open
itowlson wants to merge 1 commit into
spinframework:mainfrom
itowlson:new-add-forbidden-names-are-forbidden
Open

Enforce kebab IDs in spin new and spin add#3666
itowlson wants to merge 1 commit into
spinframework:mainfrom
itowlson:new-add-forbidden-names-are-forbidden

Conversation

@itowlson

Copy link
Copy Markdown
Collaborator

Fixes #3662

# spin new
$ spin new http-rust badname-123         # Bad name on CLI
Name must be kebab-cased, and each segment must begin with a letter.
Enter a name for your new application: bad-name-123       # Bad name entered interactively
Name must be kebab-cased, and each segment must start with a letter. Try another application name (or Crl+C to exit): bad-name-bbb123        # Good name still accepted
Description []:

# spin add
$ spin add http-rust worse-name-123
Name must be kebab-cased, and each segment must begin with a letter.
Enter a name for your new component: worse-name-1234
Name must be kebab-cased, and each segment must start with a letter. Try another component name (or Crl+C to exit):
# etc

Signed-off-by: itowlson <ivan.towlson@fermyon.com>
@itowlson itowlson changed the title Enforce kebab-casing in spin new and spin add Enforce kebab IDs in spin new and spin add Aug 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Spin accepts invalid app names when entered interactively

1 participant