Linux command
sfdk-init 命令
文本
复制后可按需替换文件名、目录或参数。
常用示例
Initialize a new QML application project
sfdk init --type qtquick2-app
Initialize a project with a specific name
sfdk init --type qtquick2-app --name [myapp]
List available project templates
sfdk init --help
说明
sfdk init initializes a new Sailfish OS project from templates. Part of the Sailfish SDK command-line tools.
参数
- --type _type_, -t _type_
- Project template type (e.g., qtquick2-app).
- --name _name_
- Project name.
FAQ
What is the sfdk-init command used for?
sfdk init initializes a new Sailfish OS project from templates. Part of the Sailfish SDK command-line tools.
How do I run a basic sfdk-init example?
Run `sfdk init --type qtquick2-app` in a terminal, then adjust file names, paths, flags, or remote targets for your system.
What does --type _type_, -t _type_ do in sfdk-init?
Project template type (e.g., qtquick2-app).