Document pub global #19900
Labels
P1
A high priority bug; for example, a single project is unusable or has many test failures
type-enhancement
A request for a change that isn't a bug
Milestone
In addition to pub run, which is for running executables in your package or its dependencies, pub (as of 1.6) now supports "global" packages. These let you run executables when you're not currently inside any package.
They are exposed through a new pub "global" command:
$ pub global activate foo [constraint]
This picks the latest version of foo that matches [constraint](or any if omitted), and makes it the active global version of foo. It will download foo and its dependencies if necessary. If foo is already active and the current version meets the constraint, it does nothing.
$ pub global deactivate foo
This makes foo no longer active.
$ pub global run foo bar
This runs bin/bar.dart from the current global version of foo. (Note: I'll probably be changing the syntax here to "global run foo:bar" soon to match pub run.
I can provide any and all other details you might want. Thanks!
The text was updated successfully, but these errors were encountered: