Not all commands in the flutter
CLI are supported by flutter-tizen
.
-
Specify the target device ID. The tool finds a connected device automatically if not specified.
flutter-tizen [command] -d emulator-26101
-
Show verbose output.
flutter-tizen [command] -v
-
Analyze the current project's Dart source code. Identical to
flutter analyze
.flutter-tizen analyze
-
Attach to a Flutter app running on a connected device.
flutter-tizen attach
-
Flutter build command. See
flutter-tizen build -h
for subcommands.# Build a TPK for watch devices. flutter-tizen build tpk --device-profile wearable # Build a TPK signed with a specific distributor certificate. flutter-tizen build tpk --device-profile wearable --security-profile foo # Build for emulator. flutter-tizen build tpk --device-profile wearable --debug --target-arch x86
-
Remove the current project's build artifacts and intermediate files.
flutter-tizen clean
-
Configure Flutter settings. Identical to
flutter config
.# Enable Flutte for web. This takes effect globally. flutter-tizen config --enable-web
-
Create a new Flutter project.
# Create a new app project in the current directory. # If a project already exists in the current directory, only missing files are added. flutter-tizen create . # Choose the native app type when creating a Tizen project. # Native apps have better performance and memory footprint than .NET (default) apps, # but do not run on TV devices. flutter-tizen create --tizen-language cpp . # Create a new plugin project in `foobar_tizen` directory. flutter-tizen create --template plugin --org com.example foobar_tizen
-
List all connected devices.
flutter-tizen devices
-
Show information about the installed tooling.
flutter-tizen doctor -v
-
Run integration tests for the project on an attached device. For detailed usage, see
integration_test
.# Launch `foo_test.dart` on a Tizen device. flutter-tizen drive --driver=test_driver/integration_test.dart --target=integration_test/foo_test.dart
-
List, launch, and create emulators.
# List all emulator instances. flutter-tizen emulators # Launch a TV 6.0 emulator. flutter-tizen emulators --launch T-samsung-6.0-x86
-
Format Dart files. Identical to
flutter format
.flutter-tizen format foo.dart
-
Generate localizations for the Flutter project. Identical to
flutter gen-l10n
.# Note: Create a template arb file `app_en.arb` in `lib/l10n` before running this. flutter-tizen gen-l10n
-
Install a TPK package on an attached device.
# Install `build/tizen/*.tpk` on a Tizen device. flutter-tizen install # Uninstall if already installed. flutter-tizen install --uninstall-only
-
Show the device log output associated with running Flutter apps.
flutter-tizen logs
-
Commands for managing Flutter packages.
# Get packages for the current project. flutter-tizen pub get
-
Build the current project and run on a connected device. For more information on each build mode, see Flutter's build modes.
# Build and run in debug mode. flutter-tizen run # Build and run in release mode. flutter-tizen run --release # Build and run in profile mode. flutter-tizen run --profile
-
Take a screenshot from a connected device.
flutter-tizen screenshot --type rasterizer --observatory-uri http://127.0.0.1:43000/Swm0bjIe0ks=
You have to specify both
--type
and--observatory-uri
values because the default (device
) screenshot type is not supported by Tizen devices. The observatory URI value can be found in the device log output (flutter-tizen run
orflutter-tizen logs
) after you start an app in debug or profile mode. -
Symbolize a stack trace from a Flutter app which has been built with the
--split-debug-info
option.flutter-tizen symbolize --debug-info app.android-arm.symbols --input stack_trace.err
-
Run Flutter unit tests for the current project. (cf.
drive
for integration tests)# Run all tests in the `test/general` directory. flutter-tizen test test/general