Title: Linux and MacOS | x-cmd get-started URL Source: http://x-cmd.com/start Markdown Content: Linux and MacOS | x-cmd get-started =============== [Skip to content](http://x-cmd.com/start#VPContent) [![Image 1: x-cmd-logo](http://x-cmd.com/dark-logo.svg)![Image 2: x-cmd-logo](http://x-cmd.com/light-logo.svg)X-CMD | start](http://x-cmd.com/) Main Navigation * [Get Started](http://x-cmd.com/start/) * [Module 233](http://x-cmd.com/mod/) * [Package 546](http://x-cmd.com/pkg/) * [Install 1228](http://x-cmd.com/install/) * [Theme](http://x-cmd.com/theme/) Resources * [Blog](http://x-cmd.com/blog/) * [Zig](https://zig.x-cmd.com/pkg/github.com/ikskuh/zig-network) * [Manual](https://man.x-cmd.com/man1/arch/) * [Awesome](http://x-cmd.com/awe/bwrap) * * * * * [Changelog](http://x-cmd.com/v/0.3.13/) * [Hub](https://hub.x-cmd.com/) * [Pricing](https://hub.x-cmd.com/pricing) SearchK English * * * [简体中文](https://cn.x-cmd.com/start/) [Star us on GitHub](https://github.com/x-cmd/x-cmd "GitHub") Menu Return to top Sidebar Navigation Introduce --------- [Guide](http://x-cmd.com/start/guide) [Developer](http://x-cmd.com/start/developer) [Maintainer](http://x-cmd.com/start/maintainer) [CS Student](http://x-cmd.com/start/cs-student) [Package Management](http://x-cmd.com/start/pkg-management) [AI/LLM ⭐](http://x-cmd.com/start/ai-llm) [FAQ](http://x-cmd.com/start/faq) [\`文\` in x-cmd](http://x-cmd.com/start/wen) Installation ------------ [Linux and MacOS](http://x-cmd.com/start/) [Windows](http://x-cmd.com/start/windows) [Min Dependencies](http://x-cmd.com/start/dependence) [Performance and Optimization](http://x-cmd.com/start/performance) [China Boost](http://x-cmd.com/start/china-boost) [Windows User Experience](http://x-cmd.com/start/windows-ux) Supported Shell --------------- [Supported Shell](http://x-cmd.com/start/shell) [NuShell](http://x-cmd.com/start/nushell) [Elvish](http://x-cmd.com/start/elvish) [Xonsh](http://x-cmd.com/start/xonsh) [fish](http://x-cmd.com/start/fish) [tcsh](http://x-cmd.com/start/tcsh) Usage ----- [Modules](http://x-cmd.com/start/mod) [pkg](http://x-cmd.com/start/pkg) [Docs](http://x-cmd.com/start/docs) [Wechat and Telegram](http://x-cmd.com/start/wechat-telegram) [Feedback and Consulting](http://x-cmd.com/start/feedback) Upgrade Uninstall ----------------- [Upgrade](http://x-cmd.com/start/upgrade) [Uninstall](http://x-cmd.com/start/uninstall) Code Analysis ------------- [Code Analysis](http://x-cmd.com/start/source-code) [Startup Analysis](http://x-cmd.com/start/startup-analysis) Other ----- [Integrity Guarantee](http://x-cmd.com/start/integrity-guarantee) [License](http://x-cmd.com/start/license) [Target Users](http://x-cmd.com/start/user) On this page Linux, MacOS, WSL, Git-Bash: [​](http://x-cmd.com/start#linux-macos-wsl-git-bash) ================================================================================= Open your preferred shell (Posix-compatible, Bash, ZSH, ASH, DASH - KSH is currently not supported), and execute the following command to install x-cmd: sh ``` eval "$(curl https://get.x-cmd.com)" ``` If your system doesn't have curl, you can use the installation method with wget: sh ``` eval "$(wget -O- https://get.x-cmd.com)" ``` curl - Install using curl command curlwget Installation in a Linux Container [​](http://x-cmd.com/start#installation-in-a-linux-container) ----------------------------------------------------------------------------------------------- Linux containers are typically minimalistic, so we provide several methods: 1. If your image has curl, you can use the installation method mentioned above. 2. Alpine-based images can use the wget installation method mentioned above. Note that early Alpine images may not support HTTPS in wget. In such cases, you can use the **Container Injection Method** below. 3. Container Injection Method: 1. `x docker run -x -it ` 2. `x docker setup ` xd - container injection Pager [Previous page\`文\` in x-cmd](http://x-cmd.com/start/wen) [Next page Windows](http://x-cmd.com/start/windows) [![Image 3: x-cmd-logo](http://x-cmd.com/dark-logo.svg) X-CMD](http://x-cmd.com/) [AGPL 3.0 Licensed](https://github.com/x-cmd/x-cmd/blob/main/LICENSE/LICENSE.txt "X-CMD License") [](https://github.com/x-cmd/x-cmd "GitHub") Navigation * [Package](http://x-cmd.com/pkg/) * [Module](http://x-cmd.com/mod/) * [Theme](http://x-cmd.com/theme/) * [Install](http://x-cmd.com/install/) * [Awesome](http://x-cmd.com/awe/bwrap) About * [About X-CMD](http://x-cmd.com/start/guide) * [About Us](http://x-cmd.com/about) * [Contact Us](http://x-cmd.com/start/feedback) * [FAQ](http://x-cmd.com/start/faq) * [Changelog](http://x-cmd.com/v/0.3.13/) Resources * [GitHub](https://github.com/x-cmd/x-cmd) * [Gitee](https://gitee.com/x-cmd/x-cmd) * [Codeberg](https://codeberg.org/x-cmd/x-cmd) * [Blog](http://x-cmd.com/blog/) * [Manual](https://man.x-cmd.com/man1/arch/) * [Zig](https://zig.x-cmd.com/pkg/github.com/ikskuh/zig-network) © 2022-2024 Li Junhao. All Rights Reserved.Support by Zhongshan Xuxu Yunsheng Technology Co. [粤ICP备2021166893号-1](https://beian.miit.gov.cn/)