Get the Flutter SDK: Update your path

  1. Determine the directory where you placed the Flutter SDK. You need this in Step 3.
  2. Open (or create) the rc file for your shell. For example, Linux uses the Bash shell by default, so edit $HOME/.bashrc. If you are using a different shell, the file path and filename will be different on your machine.
  3. Add the following line and change [PATH_TO_FLUTTER_GIT_DIRECTORY] to be the path where you cloned Flutter’s git repo:.
  4. Run source $HOME/.<rc file> to refresh the current window, or open a new terminal window to automatically source the file.
  5. Verify that the flutter/bin directory is now in your PATH by running: $ echo $PATH.
  6. Verify that the flutter command is available by running: $ which flutter.

Related concepts

Get the Flutter SDK: Update your path — Structure map

Clickable & Draggable!

Get the Flutter SDK: Update your path — Related pages: