<h2 dir="auto">Feature Request</h2>
<p dir="auto">The ability to modify <code class="notranslate">*dependencies</code> blocks in the <code class="notranslate">pubspec.yaml</code> from the CLI.</p>
<h2 dir="auto">Examples</h2>
<p dir="auto">Let's assume this is the user's current <code class="notranslate">dependencies</code> section in their manifest.</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^0.1.0"><pre class="notranslate"><span class="pl-ent">dependencies</span>:
  <span class="pl-ent">flutter</span>:
    <span class="pl-ent">sdk</span>: <span class="pl-s">flutter</span>
  <span class="pl-ent">cupertino_icons</span>: <span class="pl-s">^0.1.0</span></pre></div>
<p dir="auto">Running this command...</p>
<div class="highlight highlight-source-shell notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="$ flutter packages add url_launcher"><pre class="notranslate">$ flutter packages add url_launcher</pre></div>
<p dir="auto">Would modify said section to be the following.</p>
<div class="highlight highlight-source-yaml notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="dependencies:
  flutter:
    sdk: flutter
  cupertino_icons: ^0.1.0
  url_launcher: 2.0.1"><pre class="notranslate"><span class="pl-ent">dependencies</span>:
  <span class="pl-ent">flutter</span>:
    <span class="pl-ent">sdk</span>: <span class="pl-s">flutter</span>
  <span class="pl-ent">cupertino_icons</span>: <span class="pl-s">^0.1.0</span>
  <span class="pl-ent">url_launcher</span>: <span class="pl-s">2.0.1</span></pre></div>
<p dir="auto">This would be done by querying <code class="notranslate">pub.dartlang.org</code>'s API and getting the latest version of the given package (which at the time of writing is <code class="notranslate">2.0.1</code>).</p>
<p dir="auto">Perhaps a <code class="notranslate">--version x.y.z</code> option could be provided (which would not be validated against the registry so no network requests would be made) (bikeshed the syntax).</p>
<p dir="auto">Bonus points: Support <code class="notranslate">flutter packages add a b c d</code> (which would add all packages if they all exist in the registry).</p>
<hr>
<p dir="auto">As the inverse of <code class="notranslate">flutter packages add</code> a <code class="notranslate">flutter packages remove</code> command could be implemented.</p>
<p dir="auto">This would remove the node with the given name (or error if no such node exists).</p>
<hr>
<h2 dir="auto">Question</h2>
<p dir="auto">Is this something that the flutter team is interested in?</p>
<p dir="auto">If so, would someone be open to mentoring the implementation if necessary?</p>
<hr>
<p dir="auto"><a href="https://github.com/killercup/cargo-edit"><code class="notranslate">cargo-edit</code></a> is the inspiration for this feature request.</p>
<p dir="auto">flutter start --debug with the ios simulator.  The --debug is just ignore.</p>
<p dir="auto"><a href="https://github.com/flutter/engine/wiki/Flutter-Apps-on-iOS">https://github.com/flutter/engine/wiki/Flutter-Apps-on-iOS</a> is the official instructions instead.</p>
<p dir="auto">At a minimum we should throw an error in this case and point people to the wiki.</p>
<p dir="auto">This affects Dart VM engineers attempting to work on the Dart VM in flutter on Macs.  FYI <a class="user-mention notranslate" data-hovercard-type="user" data-hovercard-url="/users/johnmccutchan/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/johnmccutchan">@johnmccutchan</a></p>