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
https://pub.dev/packages/rename
MIT License
164 stars 39 forks source link

Getting "No active package rename" #13

Closed buttonsrtoys closed 3 years ago

buttonsrtoys commented 3 years ago

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?

Entrepreter commented 3 years ago

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

buttonsrtoys commented 3 years ago

Ah. Of course. Thanks!

onatcipli commented 3 years ago

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

@Entrepreter Thanks for the info 🙏

rignaneseleo commented 1 year ago

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.
Metwally2020 commented 11 months ago

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"