Skip to content

Document dart run <package>@ syntax for dynamic remote execution #7378

Description

@kevmoo

The dart run <package>@[<descriptor>] syntax was recently introduced (unifying descriptor parsing, see dart-lang/sdk#62123) to allow dynamic, one-off execution of remote packages from pub.dev, similar to npx in the Node ecosystem.

Currently, this feature is completely undocumented on dart.dev.

Specifically:

  1. src/content/tools/dart-run.md: This page currently explicitly directs users to the legacy command: "To run a program from an arbitrary location, use the pub global command." This should be updated to explain the dart run pkg@ syntax.
  2. Tutorials / Guides: High-traffic guides like dart-doc.md that currently instruct users to install one-off servers (e.g., dart install dhttpd) should be updated to recommend dart run dhttpd@ to avoid polluting the user's PATH with temporary tools.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    dev.packagesRelates to package publishinge1-hoursCan complete in < 8 hours of normal, not dedicated, workp1-highMajor but not urgent concern: Resolve in months. Update each month.t.cli-toolsRelates to the dart command line tools

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions