1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-07-01 23:55:26 +02:00

sfdk*: add page (#16089)

This commit is contained in:
roundedrectangle 2025-04-02 06:25:13 +03:00 committed by GitHub
parent 663ce5662c
commit 90c3b4d10c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
34 changed files with 558 additions and 0 deletions

View file

@ -0,0 +1,12 @@
# sfdk apply
> Applies patches from RPM SPEC file.
> More information: <https://docs.sailfishos.org/Tools/Sailfish_SDK/Building_packages/#tar_git-package-source-code-location-in-git>.
- Apply all patches:
`sfdk apply`
- Reverse apply all patches:
`sfdk apply -R`

View file

@ -0,0 +1,12 @@
# sfdk build-init
> Initializes build directory.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/>.
- Initialize the current directory as the build directory:
`sfdk build-init`
- Initialize the specified directory as the build directory:
`sfdk build-init {{directory}}`

View file

@ -0,0 +1,24 @@
# sfdk build-requires
> Updates build time dependencies.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/>.
- Run a subcommand refreshing the cache:
`sfdk build-requires --refresh {{subcommand}}`
- Run a subcommand without refreshing the cache:
`sfdk build-requires --no-refresh {{subcommand}}`
- Install or update the build-time dependencies:
`sfdk build-requires pull`
- Install or update the build-time dependencies, omitting all extra ones:
`sfdk build-requires reset`
- Show the difference between current and clean build environments:
`sfdk build-requires diff`

View file

@ -0,0 +1,17 @@
# sfdk build-shell
> Executes custom steps in build engine.
> See also: `sfdk config` for configuring the build target and `sfdk build-init` for initializing build tree.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/>.
- Launch interactive shell in the build engine:
`sfdk build-shell`
- Run a specified command in the build shell:
`sfdk build-shell {{command}}`
- Launch interactive shell in the build engine in maintenance mode, when inspecting or modifying the build environment:
`sfdk build-shell --maintain`

View file

@ -0,0 +1,28 @@
# sfdk check
> Performs quality checks.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/#validating-package-contents>.
- Display test suites:
`sfdk check --list-suites`
- Run all or essential test suites:
`sfdk check`
- Add testing level to the check:
`sfdk check -l +{{level}}`
- Remove testing level from the check:
`sfdk check -l -{{level}}`
- Add testing suite to the check:
`sfdk check -s +{{suite}}`
- Remove testing suite from the check:
`sfdk check -s -{{suite}}`

View file

@ -0,0 +1,28 @@
# sfdk cmake
> Executes cmake build step.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/#building-the-sample-application>.
- Run cmake:
`sfdk cmake`
- Run cmake in specified project directory:
`sfdk cmake {{project}}`
- Run cmake with extra arguments:
`sfdk cmake -- {{arguments}}`
- Run cmake build in current directory:
`sfdk cmake --build .`
- Run cmake build in current directory with extra cmake arguments:
`sfdk cmake --build . {{cmake-arguments}}`
- Run cmake build in current directory with extra build tool arguments:
`sfdk cmake --build . -- {{build-tool-arguments}}`

View file

@ -0,0 +1,12 @@
# sfdk compiledb
> Generates compilation database.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/#editing-code-without-sailfish-ide/>.
- Generate compilation database:
`sfdk compiledb`
- Generate compilation database with extra `make` arguments:
`sfdk compiledb {{arguments}}`

View file

@ -0,0 +1,28 @@
# sfdk config
> Configures sfdk.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/>.
- Show configuration in all scopes:
`sfdk config --show`
- Set a configuration value:
`sfdk config {{name}}={{value}}`
- Mask an option as empty:
`sfdk config {{name}}=`
- Mask an option as empty without pushing it at the inner scope:
`sfdk config {{name}}`
- Clear option value:
`sfdk --drop {{name}}`
- Run subcommand in specified scope (`global`, `session` or `command`):
`sfdk config --{{scope}} {{subcommand}}`

View file

@ -0,0 +1,24 @@
# sfdk deploy
> Deploys build results to a device.
> More information: <https://docs.sailfishos.org/Tools/Sailfish_SDK/Deploying_packages/>.
- Deploy using a specified method (`pkcon`, `rsync`, `sdk`, `zypper`, `zypper-dup` or `manual`):
`sfdk deploy --{{method}}`
- Preview deploy without applying the changes:
`sfdk deploy --{{method}} --dry-run`
- Deploy files in glob pattern `package*`:
`sfdk deploy --{{method}} "+package*"`
- Deploy all files excluding `ignore*`:
`sfdk deploy --{{method}} "-ignore*"`
- Undeploy using a specified method (`pkcon`, `rpm`, `rsync`, `sdk` or `zypper`):
`sfdk undeploy --{{method}}`

View file

@ -0,0 +1,16 @@
# sfdk device
> Maintains and controls registered devices.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/>.
- Display the registered devices:
`sfdk device list`
- Execute a command on a device by name or index:
`sfdk device exec {{device-name-or-idx}} {{command}}`
- Run an interactive shell on a device by name or index:
`sfdk device exec {{device-name-or-idx}}`

View file

@ -0,0 +1,7 @@
# sfdk emulator device-model-list
> This command has been moved to `sfdk emulator device-model-show`.
- View documentation for `sfdk emulator device-model-show`:
`tldr sfdk emulator device-model-show`

View file

@ -0,0 +1,11 @@
# sfdk emulator device-model-show
> Show emulated device model's properties.
- Show a model properties:
`sfdk emulator device-model-show {{model}}`
- Display available device models:
`sfdk emulator device-model-list`

View file

@ -0,0 +1,12 @@
# sfdk emulator exec
> Execute a command on an emulator.
> More information: <https://docs.sailfishos.org/Tools/Sailfish_SDK/FAQ/#emulator>.
- Execute a command on an emulator:
`sfdk emulator exec {{emulator}} {{command}}`
- Run an interactive shell on an emulator:
`sfdk emulator exec {{emulator}}`

View file

@ -0,0 +1,20 @@
# sfdk emulator install
> Installs emulators.
> More information: <https://docs.sailfishos.org/Tools/Sailfish_SDK/Early_Access/#early-access-build-targets-and-emulator>.
- Install an emulator:
`sfdk emulator install {{name}}`
- Remove an emulator:
`sfdk emulator remove {{name}}`
- Display the available emulators:
`sfdk emulator list -a`
- Display the installed emulators:
`sfdk emulator list`

View file

@ -0,0 +1,7 @@
# sfdk emulator list
> This command has been moved to `sfdk emulator install`.
- View documentation for `sfdk emulator install`:
`tldr sfdk emulator install`

View file

@ -0,0 +1,7 @@
# sfdk emulator remove
> This command has been moved to `sfdk emulator install`.
- View documentation for `sfdk emulator install`:
`tldr sfdk emulator install`

View file

@ -0,0 +1,12 @@
# sfdk emulator set
> Sets emulator properties.
> More information: <https://docs.sailfishos.org/Tools/Sailfish_SDK/FAQ/#what-are-the-compatibility-issues-with-sailfish-os-emulators-on-windows>.
- Set a property:
`sfdk emulator set {{name}} {{property}}={{value}}`
- Show emulator properties:
`sfdk emulator show {{name}}`

View file

@ -0,0 +1,7 @@
# sfdk emulator show
> This command has been moved to `sfdk emulator set`.
- View documentation for `sfdk emulator set`:
`tldr sfdk emulator set`

View file

@ -0,0 +1,19 @@
# sfdk emulator start
> Starts an emulator.
- Start an emulator:
`sfdk emulator start {{name}}`
- Stop an emulator:
`sfdk emulator stop {{name}}`
- Display emulator status:
`sfdk emulator status {{name}}`
- Display the installed emulators:
`sfdk emulator list`

View file

@ -0,0 +1,7 @@
# sfdk emulator status
> This command has been moved to `sfdk emulator start`.
- View documentation for `sfdk emulator start`:
`tldr sfdk emulator start`

View file

@ -0,0 +1,7 @@
# sfdk emulator stop
> This command has been moved to `sfdk emulator start`.
- View documentation for `sfdk emulator start`:
`tldr sfdk emulator start`

View file

@ -0,0 +1,24 @@
# sfdk emulator
> Maintains and controls emulators.
> More information: <https://docs.sailfishos.org/Develop/Apps/#emulator>.
- Display the installed emulators:
`sfdk emulator list`
- Start an emulator:
`sfdk emulator start {{name}}`
- Stop an emulator:
`sfdk emulator stop {{name}}`
- Display emulator status:
`sfdk emulator status {{name}}`
- Run an interactive shell on an emulator:
`sfdk emulator exec {{emulator}}`

View file

@ -0,0 +1,32 @@
# sfdk engine
> Maintains and controls the build engine.
> More information: <https://docs.sailfishos.org/Develop/Apps/#sailfish-os-build-engine>.
- Start the build engine:
`sfdk engine start`
- Stop the build engine:
`sfdk engine stop`
- Show the build engine status:
`sfdk engine status`
- Set an engine property:
`sfdk engine set {{property}}={{value}}`
- Show the engine properties:
`sfdk engine show`
- Execute a command on the build engine:
`sfdk engine exec {{command}}`
- Start an interactive shell on the build engine:
`sfdk engine exec`

20
pages/common/sfdk-init.md Normal file
View file

@ -0,0 +1,20 @@
# sfdk init
> Initializes a new project.
> More information: <https://docs.sailfishos.org/Reference/I18n/Application_Configuration/>.
- Initialize a new project of the given type:
`sfdk init -t {{type}}`
- Initialize a new project with a specified builder:
`sfdk init -t {{type}} -b {{builder}}`
- Initialize a new project ignoring non-empty directory:
`sfdk init -t {{type}} --force`
- List available project types:
`sfdk init -l`

View file

@ -0,0 +1,7 @@
# sfdk maintain
> Launches the interactive SDK Maintenance tool.
- Launch SDK Maintenance tool:
`sfdk maintain`

View file

@ -0,0 +1,8 @@
# sfdk make-install
> Executes make-install build step.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/#building-the-sample-application>.
- Run make-install section of RPM SPEC file:
`sfdk make-install`

12
pages/common/sfdk-make.md Normal file
View file

@ -0,0 +1,12 @@
# sfdk make
> Executes make build step.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/#building-the-sample-application>.
- Run make build:
`sfdk make`
- Run make with extra arguments:
`sfdk make {{arguments}}`

View file

@ -0,0 +1,16 @@
# sfdk package
> Executes package creation build step.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/>.
- Create a package:
`sfdk package`
- Create a package without executing the check section in RPM SPEC file:
`sfdk package --no-check`
- Create and sign a package:
`sfdk package --sign`

View file

@ -0,0 +1,8 @@
# sfdk prepare
> Executes preparation build step.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/>.
- Prepare sources using the recipe from RPM SPEC file:
`sfdk prepare`

View file

@ -0,0 +1,20 @@
# sfdk qmake
> Executes qmake build step.
> More information: <https://docs.sailfishos.org/Develop/Apps/Tutorials/Building_packages_-_advanced_techniques/#building-the-sample-application>.
- Run qmake build:
`sfdk qmake`
- Run shadow qmake build in a specified project:
`sfdk qmake {{project}}`
- Run build with extra qmake arguments:
`sfdk qmake -- {{arguments}}`
- Run shadow qmake build with extra qmake arguments:
`sfdk qmake {{project}} {{arguments}}`

View file

@ -0,0 +1,23 @@
# sfdk qmltypes
> Generates qmltypes files.
- Generate qmltypes files:
`sfdk qmltypes`
- Generate qmltypes files without deploying them (usually to emulator):
`sfdk qmltypes --no-deploy`
- Generate qmltypes files without restoring the emulator after deployment:
`sfdk qmltypes --no-restore-emulator`
- Generate qmltypes files and restore the emulator after deployment even on failure:
`sfdk qmltypes --restore-emulator`
- Generate qmltypes files without reverting changes which only include removal of statements with `sdk-make-qmltypes:keep` in comments:
`sfdk qmltypes --no-keep`

View file

@ -0,0 +1,23 @@
# sfdk scrape
> Converts source code modifications to patches.
- Save source modifications as patches:
`sfdk scrape`
- Preview the list of commits to be scrapped:
`sfdk scrape --dry-run`
- Scrape while preserving the original patches file names:
`sfdk scrape --stable`
- Scrape while saving patches to a specified [o]utput directory:
`sfdk scrape -o {{directory}}`
- Scrape without removing commits from submodules after creating patches:
`sfdk scrape --keep`

View file

@ -0,0 +1,20 @@
# sfdk undeploy
> Undeploys build results from a device.
> More information: <https://docs.sailfishos.org/Tools/Sailfish_SDK/Deploying_packages/>.
- Undeploy using a specified method (`pkcon`, `rpm`, `rsync`, `sdk` or `zypper`):
`sfdk undeploy --{{method}}`
- Preview undeploy without applying the changes:
`sfdk undeploy --{{method}} --dry-run`
- Undeploy files in glob pattern `package*`:
`sfdk undeploy --{{method}} "+package*"`
- Undeploy all files excluding `ignore*`:
`sfdk undeploy --{{method}} "-ignore*"`

28
pages/common/sfdk.md Normal file
View file

@ -0,0 +1,28 @@
# sfdk
> The command line frontend of the Sailfish SDK.
> More information: <https://docs.sailfishos.org/Tools/Sailfish_SDK/Installation/>.
- Execute a subcommand:
`sfdk {{subcommand}}`
- Execute a subcommand on a custom working directory:
`git -C {{path/to/directory}} {{subcommand}}`
- Execute a subcommand with a given configuration set:
`git -c '{{name}}={{value}}' {{subcommand}}`
- Display help:
`sfdk --help`
- Display help for specific topic (`building`, `testing`, `maintaining`, `ide`, `all`):
`sfdk --help-{{topic}}`
- Display version:
`sfdk --version`