Member-only story

Flutter CLI explained

How to use the Flutter command-line interface

In this article, we are looking at the Flutter CLI and its most common use cases for building, testing, deploying, and running Flutter applications.

xeladu

--

Output of the Flutter CLI

When developing Flutter apps with code editors like Visual Studio Code, Android Studio, or XCode, you don’t need to use the command-line tools of Flutter in general. But all these editors use them internally all the time, probably without you noticing it. So let’s dive into the Flutter CLI and see what its capabilities are.

General

flutter doctor [-v]

The doctor tells you the current state of your system and if there is anything missing to work with Flutter. It shows SDK versions, finds code editors, lists connected devices, and identifies problems. Use the -v switch to get more detailed information.

Output of Flutter doctor command

flutter create

With this command, you can create a new Flutter project or repair an existing one. It allows you to specify a project name --project-name, a…

--

--

No responses yet