onatcipli / rename

The Rename CLI Tool is a utility designed to modify your Flutter project's AppName and BundleId across various platforms, such as iOS, Android, Macos, Linux, Windows and Web

Home Page:https://pub.dev/packages/rename

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Getting "No active package rename"

buttonsrtoys opened this issue · comments

From my root folder I'm running: pub global run rename --bundleId com.dreamalytics.dreamapp which gives me the response "No active package rename". What does that mean?

try flutter pub global run rename --bundleId com.dreamalytics.dreamapp

Ah. Of course. Thanks!

It is related to the dart paths and has been solved I think, I closing this ✌️

@Entrepreter Thanks for the info 🙏

commented

I get the same error:

> opentabu % flutter pub global run rename --bundleId rignanese.leo.speakeasy 
No active package rename.
pub finished with exit code 65

The installation seems successful:

dart pub global activate rename
+ args 2.4.0pendencies... (1.1s)
+ logger 1.2.2
+ rename 2.1.1
Downloading rename 2.1.1...
Downloading logger 1.2.2...
Downloading args 2.4.0...
Building package executables... 
Built rename:rename.
Installed executable rename.
Warning: Pub installs executables into $HOME/.pub-cache/bin, which is not on your path.
You can fix that by adding this to your shell's config file (.bashrc, .bash_profile, etc.):

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

Activated rename 2.1.1.

what worked for me, was after installing the package, and running " flutter pub get ", now activate the package by running this command: " flutter pub global activate rename " Then you can use the package.

so the steps again are :
1- flutter pub add rename
2- flutter pub get
3- flutter pub global activate rename
4- flutter pub global run rename --appname "YOUR APP NAME"