Create and Run your very first app in Flutter from Terminal without any code

Hardik kumar
2 min readJun 18, 2021

--

Hello reader, this article is inlined for those who have just installed flutter and want to create their very first app in it.

Here are the two small steps to run your very first app in flutter through the Terminal only, no need to open any IDE or code anything.

(Assuming that you’ve installed flutter properly)

Step 1: Create the starter Flutter app

(Using Terminal is the best practice, alternatively, you can create a new flutter project using the IDE)

1. Open the Terminal/Command Prompt and go to a folder/location where you want your project to be created.

[NOTE: Make sure you’re in the “stable” channel by writing `flutter channel`. To switch between channels, write `flutter channel channel_name`, then `flutter upgrade`]

2. Write `flutter create your_project_name`

(if project name is “spotify” -> flutter create spotify). [NOTE: Avoid giving space in your app name]

3. Wait for Terminal to create your project.

Step 2: Run the app

1. Once the project is created, go to the project location by writing `cd project_name`

(if project name is “spotify” -> cd spotify).

2. Then write `flutter run` to run your app in emulator/web/mobile.

3. Wait for some time to let your app run on your connected device.

Photo by Jo Jo on Unsplash

Woohoooo! We did it, you are seeing an initial “Flutter Demo” app provided by flutter in your connected device.

Now if you want to change anything in your app, you have to open your IDE and do some changes in the code to see the results.

By the way, that was all from my side. If you liked this article, do give it some claps. Till then, Peace!

--

--

Hardik kumar
Hardik kumar

Written by Hardik kumar

DevRel at Polygon & Keploy 💜

No responses yet