-
-
Notifications
You must be signed in to change notification settings - Fork 27
Upgrading from dcli
Brett Sutton edited this page Aug 22, 2020
·
1 revision
DCli was originally named DShell.
If you have an existing DShell application we provide an upgrade script which can upgrade your DShell based project to DCli.
Start by installing DCli:
pub global activate dcli
dcli install
Once the install completes change into the root of your project.
Firstly make certain your project is backed up or commited (and pushed) to git in case anything goes wrong.
cd myproject
# make certain you project compiles first and fix any problems.
pub upgrade
dshell_upgrade
Your project is now upgraded.
Check that it is still working and then commit the changes.
If you need to, its quite safe to run dshell_upgrade multiple times.
If you are sure that all of your projects are backed up and in a state where they compile then you can just run
dshell_upgrade
from the top of your directory tree and it will upgrade all .dart and pubspec.yaml files that it finds.