get cli 安装及使用

安装

添加环境变量

D:\Resource\flutter\bin\cache\dart-sdk\bin

安装cli

pub global activate get_cli 1.7.1
flutter pub global activate get_cli

最新版本的1.7.1有bug,创建项目时回车无响应

添加环境变量

D:\Resource\flutter.pub-cache\bin

显示当前 CLI 版本

get -v

更新 CLI

get update

使用

创建项目

get create project

创建页面

get create page:home

创建新 controller

get create controller:dialogcontroller on home

创建新 view

get create view:dialogview on home

创建新 provider

get create provider:user on home
posted @ 2022-01-17 22:14  Bin_x  阅读(1492)  评论(1编辑  收藏  举报