Linux command
uv-init 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Initialize new project
uv init
Initialize with name
uv init [project_name]
Initialize library project
uv init --lib
Initialize in directory
uv init [path]
说明
uv init initializes a new Python project. Creates pyproject.toml with project metadata. Sets up project structure for applications or libraries.
参数
- --name _name_
- Project name.
- --lib
- Create library structure.
- --app
- Create application structure.
- --no-workspace
- Don't add to workspace.
- --python _version_
- Python version requirement.
FAQ
What is the uv-init command used for?
uv init initializes a new Python project. Creates pyproject.toml with project metadata. Sets up project structure for applications or libraries.
How do I run a basic uv-init example?
Run `uv init` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --name _name_ do in uv-init?
Project name.