Puro

关于

Puro 是一个用于管理 Flutter 安装的实验性工具。

与其他方法不同,Puro 使用全局缓存的 git 对象和引擎工件,让您在最短的 3 秒内获得可用的 Flutter 分支。

快速开始

要安装 puro,请运行

dart pub global activate puro

安装完成后,您可以创建和使用环境

puro create my_env stable
puro use my_env

就这样!您的 IDE 将自动配置为使用新的环境。

用法

An experimental tool for managing flutter versions.

Usage: puro <command> [arguments]

Global options:
-h, --help                              Print this usage information.
    --git=<exe>                         Overrides the path to the git executable.
    --root=<dir>                        Overrides the global puro root directory. (defaults to `~/.puro`)
    --dir=<dir>                         Overrides the current working directory.
-p, --project=<dir>                     Overrides the selected flutter project.
-e, --env=<name>                        Overrides the selected environment.
    --flutter-git-url=<url>             Overrides the Flutter SDK git url.
    --engine-git-url=<url>              Overrides the Flutter Engine git url.
    --releases-json-url=<url>           Overrides the Flutter releases json url.
    --flutter-storage-base-url=<url>    Overrides the Flutter storage base url.
    --log-level=<0-4>                   Changes how much information is logged to the console, 0 being no logging at all, and 4 being extremely verbose.
-v, --[no-]verbose                      Verbose logging, alias for --log-level=3.
    --[no-]color                        Enable or disable ANSI colors.
    --json                              Output in JSON where possible.

Available commands:
  create    Sets up a new Flutter environment.
  dart      Forwards arguments to dart in the current environment.
  flutter   Forwards arguments to flutter in the current environment.
  ls        List available environments.
  rm        Delete an environment.
  use       Select an environment to use in the current project.

Run "puro help <command>" for more information about a command.

GitHub

查看 Github