You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
upgrade to dcli
Start by installing DCli:
pub global activate dcli
dcli install
upgrading a project
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.
the big upgrade
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.