Skip to content

CLI should accept . as current directory name when prompted for project name #53

@HeathKnowles

Description

@HeathKnowles

Description:

When the CLI prompts for a project name, entering . should automatically use the name of the current directory as the project name.

This behavior would be consistent with common CLI conventions and improve usability when initializing projects inside an existing folder.

Current Behavior:

  • Entering . is rejected with "Project names can't start with a period"

Expected Behavior:

  • If the user enters .:

    • The CLI resolves it to the current directory name.
    • Uses that directory name as the project name.

Example:

/path/to/my-project
$ bun create tui
? Project name: .

Should result in:

Project name = my-project

Benefits:

  • Faster workflow when working inside existing directories
  • Matches behavior of tools like git and npm
  • Reduces friction and accidental misnaming

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions