Skip to content

(init): provide an option to pass project name in cdk init #990

@ren-yamanashi

Description

@ren-yamanashi

Describe the feature

Add an option for user to specify the project name (e.g. --name).

Use Case

I'm always frustrated when I have to project name differently from the working directory name.

Currently, options for cdk init command doesn't have specify project name, and project name becomes the same as working directory name.

Therefore, if I want to project name differently from the directory name, should changing it manually.

Proposed Solution

Provide an option to specify project name when initializing project.

Example API may look like:

cdk init app -l <language> [--name|-n] <project-name>

If user doesn't provide any option, it selected name of working directory.

Other Information

No response

Acknowledgements

  • I may be able to implement this feature request
  • This feature might incur a breaking change

CDK version used

2.1034.0

Environment details (OS name and version, etc.)

All

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions