title: Cannot find command 'dotnet ef'
body: <p>I am using .NET Core 2.0 on <a href="https://en.wikipedia.org/wiki/Arch_Linux" rel="noreferrer">Arch Linux</a> / Visual Studio Code and am trying to get <a href="https://en.wikipedia.org/wiki/Entity_Framework" rel="noreferrer">EF</a> tools to work, but I keep getting the error:</p>
  <blockquote>
  <p>cannot find command dotnet ef</p>
  </blockquote>
  <p>I've just about looked everywhere and none of the suggestions worked.</p>
  <p>The result of running 'dotnet ef':</p>
  <pre class="lang-none prettyprint-override"><code>[wasiim@wasiim-PC WebApiServerApp]$ dotnet ef --help
  Cannot find command 'dotnet ef', please run the following command to install
  
  dotnet tool install --global dotnet-ef
  [wasiim@wasiim-PC WebApiServerApp]$ dotnet tool list -g
  Package Id            Version      Commands
  ---------------------------------------------------
  dotnet-dev-certs      2.2.0        dotnet-dev-certs
  dotnet-ef             2.2.3        dotnet-ef
  [wasiim@wasiim-PC WebApiServerApp]$
  </code></pre>
  <p>This is the 'dotnet --info' result, if it's of help:</p>
  <pre class="lang-none prettyprint-override"><code>[wasiim@wasiim-PC WebApiServerApp]$ dotnet --info
  .NET Core SDK (reflecting any global.json):
   Version:   2.2.105
   Commit:    7cecb35b92
  
  Runtime Environment:
   OS Name:     arch
   OS Version:
   OS Platform: Linux
   RID:         arch-x64
   Base Path:   /opt/dotnet/sdk/2.2.105/
  
  Host (useful for support):
    Version: 2.2.3
    Commit:  6b8ad509b6
  
  .NET Core SDKs installed:
    2.2.105 [/opt/dotnet/sdk]
  
  .NET Core runtimes installed:
    Microsoft.NETCore.App 2.2.3 [/opt/dotnet/shared/Microsoft.NETCore.App]
  
  To install additional .NET Core runtimes or SDKs:
    https://aka.ms/dotnet-download
  </code></pre>
  <p>This is my .csproj file:</p>
  <pre class="lang-xml prettyprint-override"><code>&lt;Project Sdk=&quot;Microsoft.NET.Sdk.Web&quot;&gt;
  
    &lt;PropertyGroup&gt;
      &lt;TargetFramework&gt;netcoreapp2.2&lt;/TargetFramework&gt;
    &lt;/PropertyGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;Folder Include=&quot;wwwroot\&quot; /&gt;
    &lt;/ItemGroup&gt;
  
    &lt;ItemGroup&gt;
      &lt;PackageReference Include=&quot;Lucene.Net.Analysis.Common&quot; Version=&quot;4.8.0-beta00005&quot; /&gt;
      &lt;PackageReference Include=&quot;Lucene.Net.QueryParser&quot; Version=&quot;4.8.0-beta00005&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.AspNetCore.App&quot; Version=&quot;2.2.5&quot; /&gt;
     &lt;PackageReference Include=&quot;Lucene.Net&quot; Version=&quot;4.8.0-beta00005&quot; /&gt;
      &lt;PackageGroup Include=&quot;Microsoft.EntityFrameworkCore.SqlServer&quot; Version=&quot;1.1.0&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.AspNetCore.Razor.Design&quot; Version=&quot;2.2.0&quot; PrivateAssets=&quot;All&quot; /&gt;
      &lt;PackageReference Include=&quot;Microsoft.EntityFrameworkCore.Design&quot; Version=&quot;2.2.4&quot; /&gt;
      &lt;DotNetCliToolReference Include=&quot;Microsoft.EntityFrameworkCore.Tools.DotNet&quot; Version=&quot;2.0.3&quot; /&gt;
  
    &lt;/ItemGroup&gt;
  
  &lt;/Project&gt;
  </code></pre>