# Spring Boot 2.4 Windows Scoop 安装命令行工具

**URL:** <https://www.isharkfly.com/t/spring-boot-2-4-windows-scoop/810>\
**Category:** 程序语言\
**Tags:** java, spring\
**Created:** [January 3, 2021, 3:52pm UTC](https://www.isharkfly.com/t/spring-boot-2-4-windows-scoop/810 "2021-01-03T15:52:02Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas](https://www.isharkfly.com/user_avatar/www.isharkfly.com/lucas/32/20805_2.png) [@lucas](https://www.isharkfly.com/u/lucas)\
**Post date:** [January 3, 2021, 3:52pm UTC](https://www.isharkfly.com/t/spring-boot-2-4-windows-scoop/810/1 "2021-01-03T15:52:02Z")

</div>

如果你使用的是 Windows 操作系统，你可以使用 [Scoop](https://scoop.sh/) 来进行安装。 你可以通过使用下面的命令来安装 Spring Boot CLI：

```auto
> scoop bucket add extras
> scoop install springboot

```

Scoop 将会把 `spring` 安装到 `~/scoop/apps/springboot/current/bin` 目录中。

有关 Windows 安装 Scoop 的方法，请参考：[Windows 安装 Scoop 来进行包管理](https://www.isharkfly.com/t/windows-scoop/808) 中的内容。

如果你在安装的过程中出现了一些异常，或者没有看到 app 的 manifest，那么很有可能是因为你安装的 scoop 版本过老而需要更新了。 你可以直接运行 `scoop update` 命令先进行更新，然后再次尝试进行安装。

![scoop-spring-cli-01](https://www.isharkfly.com/images/transparent.png)

Scoop 可以简单理解为一个在 Windows 中可以使用的包管理工具，这个包管理工具需要在 PowerShell 中运行。

我们熟知的 Ubuntu上 的apt-get（在 Ubuntu16 以上可以直接用apt了），MacOS上的 homebrew 都是很优秀的包管理工具。如果你使用的是 CentOS 或者 REHL 的话，我们应该非常熟悉使用 yum 或者 dnf 来进行安装包。

但是在 Windows 平台下，由于 Windows 的开放性，大家都是去各种网站上下载程序，一些软件开发环境的程序也很杂乱，到处都是各种下载链接，容易中病毒还浪费时间。 所以我们有开发者想要 在 Windows 平台上开发包管理工具 —— scoop，简单理解过来就是一个可以在 Windows 平台下使用 yum 或者 dnf 的工具。

根据我的计算机的配置，Spring CLI 已经被安装到： C:\Users\yhu\scoop 路径中了。

![scoop-spring-cli-02](https://www.isharkfly.com/images/transparent.png)

安装路径主要对你在后期出现问题的时候进行调试能够提供一些内容上的帮助。
