💎Installation Guide

This guide will help you install Flutter Bunny CLI and get it ready for use.

Prerequisites

Before installing Flutter Bunny CLI, make sure you have the following:

  • Flutter SDK: version 3.0.0 or higher

  • Dart SDK: version 2.17.0 or higher

You can check your current Flutter and Dart versions with:

flutter --version
dart --version

Installation Steps

1. Install via Pub

dart pub global activate flutter_bunny_cli

2. Install via Flutter

Alternatively, you can install using Flutter:

flutter pub global activate flutter_bunny_cli

3. Add to PATH

For the flutter_bunny command to be accessible globally, you need to add the Pub cache bin directory to your PATH.

For macOS/Linux:

Add the following to your ~/.bashrc, ~/.zshrc, or equivalent:

export PATH="$PATH":"$HOME/.pub-cache/bin"

Then reload your shell configuration:

source ~/.bashrc  # or source ~/.zshrc

For Windows:

Add %LOCALAPPDATA%\Pub\Cache\bin to your system PATH.

Verifying Installation

To verify that Flutter Bunny CLI is installed correctly, run:

flutter_bunny --version

You should see the current version number of the Flutter Bunny CLI.

Updating Flutter Bunny CLI

To update to the latest version:

dart pub global activate flutter_bunny_cli

Troubleshooting

Command Not Found

If you get a "command not found" error, make sure the Pub cache bin directory is in your PATH.

Permission Issues

If you encounter permission issues on macOS/Linux:

chmod +x $HOME/.pub-cache/bin/flutter_bunny

Conflicts with Other Packages

If you encounter conflicts with other globally activated packages, try:

dart pub global deactivate flutter_bunny_cli
dart pub global activate flutter_bunny_cli

For more detailed troubleshooting, see the Troubleshooting Guide.

Last updated