Linux command
pulumi-new 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Create new project interactively
pulumi new
Create from template
pulumi new [template]
Create TypeScript project
pulumi new typescript
Create AWS Python project
pulumi new aws-python
Create with project name
pulumi new [template] --name [project_name]
说明
pulumi new creates a new Pulumi project from a template. Templates include language runtimes (typescript, python, go, csharp) and cloud providers (aws, azure, gcp). Initializes project structure and dependencies.
参数
- --name _name_
- Project name.
- --description _desc_
- Project description.
- -s, --stack _name_
- Initial stack name.
- -d, --dir _dir_
- Target directory.
- -y, --yes
- Skip prompts with defaults.
- --force
- Overwrite existing files.
- -g, --generate-only
- Generate without creating stack.
FAQ
What is the pulumi-new command used for?
pulumi new creates a new Pulumi project from a template. Templates include language runtimes (typescript, python, go, csharp) and cloud providers (aws, azure, gcp). Initializes project structure and dependencies.
How do I run a basic pulumi-new example?
Run `pulumi new` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --name _name_ do in pulumi-new?
Project name.