-
Notifications
You must be signed in to change notification settings - Fork 670
CLI parameters ignored (--appname and --id) #873
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Hello! Thanks for opening an issue with us! As this issue is related more to the ionic-cli instead of the framework i will be moving this issue over there. Thanks again! |
Thanks for opening the issue. It seems that issue has been resolved. I am going to close this issue but please feel free to reopen another issue if this occurs again. |
doesn't work for me too.
config.xml do not reflect those parameters
|
I've noticed they've removed the option to set the app ID from [email protected]. Not sure if this is a bug... I'll dig a bit deeper. |
well, not even the offered app-name option does work as expected. whats the recommended way to change id and reflect those throughout the whole directory tree? |
I've not tried using v1, but I think app name was working when I used it for v2 (I will confirm). Re. changing it manually:
The ID should now propagate and rebuild packages and plugins correctly. |
Hmm having done a little bit of digging, it seems like I indeed think this is a bug... |
Hey @dwieeb - thanks for confirming! Just curious, is there a reason |
@kelvindart The CLI 3.x was a rewrite, a completely new codebase. I've been working to add back stuff that makes sense that I missed. I think |
@dwieeb agreed! Sounds like good logic... I can't think of a time you'd actually change the ID unless, perhaps, a major new launch under a new app store listing perhaps - even that's rare. I agree with your note on importance, the current workaround is barely manual labour. |
our workflow is based on app templates, usually we create a new ionic project from start and copy files over there. Having id for start command would be nice, but the manual workaround is absolutely fine either. Would just be good if this would be documented somewhere. |
From @kelvindart on March 26, 2016 0:54
Short description of the problem:
Whenever I execute the following command, Ionic seems to ignore all parameters:
A directory named "blank" is created which contains the Ionic app; the "tabs" starter template is used and it also ignores the app name and app Id (these are not copied to
config.xml
).If I run (i.e. moving
-v --ts
to the end of the command):It does create a blank starter app in the folder named "ionic2-myapp", but app name and app Id are still ignored and the defaults are used in
config.xml
(i.eio.ionic.starter
andV2 Test
).The parameters are also ignored if I exclude
-v --ts
too - so I do not believe this to be solely related to Ionic v2.What behavior are you expecting?
I am expecting the
ionic start
process to use the supplied parameters and construct an app template using the app name, and app Id provided.Steps to reproduce:
config.xml
and notice the app name and app Id are not copied.Other information:
No errors are produced. Ionic just seems to incorrectly interpret the parameters provided in the wrong place.
Which Ionic Version? 2.0.0-beta.22
Run
ionic info
from terminal/cmd prompt:Cordova CLI: 6.0.0
Gulp version: CLI version 3.9.1
Gulp local: Local version 3.9.1
Ionic Version: 2.0.0-beta.3
Ionic CLI Version: 2.0.0-beta.22
Ionic App Lib Version: 2.0.0-beta.12
ios-deploy version: 1.8.5
ios-sim version: 5.0.6
OS: Mac OS X El Capitan
Node Version: v5.9.1
Xcode version: Xcode 7.2.1 Build version 7C1002
Copied from original issue: ionic-team/ionic-framework#5946
The text was updated successfully, but these errors were encountered: