* 터미널 명령어 *

# 툴 문제 확인
> flutter doctor

# pubspec.yaml 에서 추가한 라이브러리 적용

> flutter pub get

# 업그레이드
> flutter upgrage

# 다운 그레이드
> flutter downgrage

# 프로젝트 생성
> flutter create my_app

# 앱 실행
> flutter run

# 사용 가능한 디바이스 확인
> flutter devices

# 버젼 확인
$ flutter version

# 웹 앱 사용 활성화
> flutter config --enable-web

# flutter 패키지 참조 서버 목록 (* 표시가 현재 참조 서버)

> flutter channel

  dev

  master : 최신

  beta

* stable

# flutter 패키지 참조 서버 변경 ( 추천하지 않는다. SDK 꼬일수 있음 )

> flutter channel master(채널명)

> flutter clean

> flutter channel upgrage

 

# 사용한 패키지 라이센스 적용
> flutter --android-licenses

 

Common commands:

  flutter create <output directory>
    Create a new Flutter project in the specified directory.

  flutter run [options]
    Run your Flutter application on an attached device or in an emulator.

 

Usage:

 flutter <command> [arguments]

 

Global options:
-h, --help                  Print this usage information.
-v, --verbose             Noisy logging, including all shell commands executed.
                                If used with --help, shows hidden options.
-d, --device-id          Target device id or name (prefixes allowed).
    --version               Reports the version of this tool.
    --suppress-analytics    Suppress analytics reporting when this command runs.
    --packages              Path to your ".packages" file.
                            (required, since the current directory does not contain a ".packages" file)

 

Available commands:
  analyze             Analyze the project's Dart code.
  assemble          Assemble and build flutter resources.
  attach               Attach to a running application.
  bash-completion   Output command line shell completion setup scripts.
  build               Flutter build commands.
  channel          List or switch flutter channels.
  clean              Delete the build/ and .dart_tool/ directories.
  config             Configure Flutter settings.
  create             Create a new Flutter project.
  devices           List all connected devices.
  doctor            Show information about the installed tooling.
  downgrade       Downgrade Flutter to the last active version for the current channel.
  drive               Runs Flutter Driver tests for the current project.
  emulators         List, launch and create emulators.
  format             Format one or more dart files.
  install              Install a Flutter app on an attached device.
  logs                Show log output for running Flutter apps.
  precache         Populates the Flutter tool's cache of binary artifacts.
  pub                Commands for managing Flutter packages.
  run                 Run your Flutter app on an attached device.
  screenshot      Take a screenshot from a connected device.
  symbolize        Symbolize a stack trace from an AOT compiled flutter application.
  test                 Run Flutter unit tests for the current project.
  upgrade         Upgrade your copy of Flutter.

 

Run "flutter help <command>" for more information about a command.
Run "flutter help -v" for verbose help output, including less commonly used options.

 

 

Posted by 코머스
,