Skip to content

flutter precache: explain what are "currently enabled plaforms" #144656

Description

@bartekpacia
$ flutter precache --help
Populate the Flutter tool's cache of binary artifacts.

If no explicit platform flags are provided, this command will download the artifacts for all currently enabled platforms

...

What are currently enabled platforms? Let's say I don't have any Flutter project on my machine and I run flutter precache – how are enabled platforms inferred?

On Linux, I noticed that flutter precache is equivalent to flutter precache --android --web --linux.

On macOS I noticed that flutter precache is equivalent to flutter precache --android --web --macos --ios.

So I can see the pattern (currently enabled platforms are all platforms that can be built on the current OS), but I feel like it's not explained well enough.

I think the help message should answer these doubts.

Metadata

Metadata

Assignees

No one assigned

    Labels

    P3Issues that are less important to the Flutter projectc: proposalA detailed proposal for a change to Flutterd: api docsIssues with https://api.flutter.dev/team-toolOwned by Flutter Tool teamtoolAffects the "flutter" command-line tool. See also t: labels.tool-still-validIssues that have been deemed still valid as part of the Flutter Tools issue cleanup initiative.triaged-toolTriaged by Flutter Tool team

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions