Skip to content

Latest commit

 

History

History
214 lines (139 loc) · 4.86 KB

commands.md

File metadata and controls

214 lines (139 loc) · 4.86 KB

Supported commands

Not all commands in the flutter CLI are supported by flutter-tizen.

Global options

  • -d, --device-id

    Specify the target device ID. The tool finds a connected device automatically if not specified.

    flutter-tizen [command] -d emulator-26101
  • -v, --verbose

    Show verbose output.

    flutter-tizen [command] -v

Commands and examples

  • analyze

    Analyze the current project's Dart source code. Identical to flutter analyze.

    flutter-tizen analyze
  • attach

    Attach to a Flutter app running on a connected device.

    flutter-tizen attach
  • build

    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
  • clean

    Remove the current project's build artifacts and intermediate files.

    flutter-tizen clean
  • config

    Configure Flutter settings. Identical to flutter config.

    # Enable Flutte for web. This takes effect globally.
    flutter-tizen config --enable-web
  • create

    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
  • devices

    List all connected devices.

    flutter-tizen devices
  • doctor

    Show information about the installed tooling.

    flutter-tizen doctor -v
  • drive

    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
  • emulators

    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

    Format Dart files. Identical to flutter format.

    flutter-tizen format foo.dart
  • gen-l10n

    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

    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
  • logs

    Show the device log output associated with running Flutter apps.

    flutter-tizen logs
  • pub

    Commands for managing Flutter packages.

    # Get packages for the current project.
    flutter-tizen pub get
  • run

    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
  • screenshot

    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 or flutter-tizen logs) after you start an app in debug or profile mode.

  • symbolize

    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
  • test

    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