Init Get CLI

Use when get_cli command is not found or needs installation for GetX scaffolding. Triggers on 'get_cli not found', 'install get_cli', 'init get cli'.

tomevault-io 1cdc7d8 2 files · 1.6 KB Updated

File contents

GetX CLI

Flutter GetX 框架的代码生成工具,用于快速创建页面、控制器等脚手架代码。

安装

# 从 git 源安装(官方推荐)
dart pub global activate -s git https://github.com/jonataslaw/get_cli

# 验证
get_cli --version

如果提示找不到命令,确保 $HOME/.pub-cache/bin 在 PATH 中。

常用命令

命令 说明
get create page:名称 创建页面(view + controller + binding)
get create controller:名称 创建控制器
get init 在现有项目初始化 GetX 结构

Converted and distributed by TomeVault — claim your Tome and manage your conversions.

tomevault-io/skills-registry/tree/main/aoeiuv020--flutter-melos-template--init-get-cli commit 1cdc7d893d

Frequently asked questions

npx skillmds@latest add tomevault-io/init-get-cli