Navigation Menu

Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Document pub global #19900

Closed
munificent opened this issue Jul 8, 2014 · 5 comments
Closed

Document pub global #19900

munificent opened this issue Jul 8, 2014 · 5 comments
Assignees
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

Comments

@munificent
Copy link
Member

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!

@sethladd
Copy link
Contributor

Removed Area-Documentation label.
Added Area-Site label.

@sethladd
Copy link
Contributor

Added this to the 1.6 milestone.

@kasperl
Copy link

kasperl commented Jul 11, 2014

Removed Priority-Medium label.
Added Priority-High label.

@Sfshaza
Copy link

Sfshaza commented Jul 14, 2014

@nicolasgarnier
Copy link
Contributor

This issue has been moved to Github as part of a migration. Please use the Issue on Github going forward: https://github.com/dart-lang/dartlang.org/issues

@munificent munificent added Type-Enhancement P1 A high priority bug; for example, a single project is unusable or has many test failures labels Aug 26, 2014
@munificent munificent added this to the 1.6 milestone Aug 26, 2014
@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
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
Projects
None yet
Development

No branches or pull requests

6 participants