### Install Software with X-CMD Source: https://www.x-cmd.com/llms.txt Installs common software using a unified command. X-CMD automatically selects the best installation method for the current system, covering over 1200 recipes. ```sh x install docker x install git ``` -------------------------------- ### Install X-CMD with Homebrew Source: https://www.x-cmd.com/llms.txt Installs X-CMD using the Homebrew package manager. After installation, run 'x-cmd' to activate. ```sh brew install x-cmd x-cmd ``` -------------------------------- ### Get Subcommand TLDR Examples Source: https://www.x-cmd.com/llms.txt Provides TLDR examples for a specific subcommand within an X-CMD module. This is the third level of help. ```sh x --help ``` -------------------------------- ### Install X-CMD with AUR Source: https://www.x-cmd.com/llms.txt Installs X-CMD using the Arch User Repository (AUR). After installation, run 'x-cmd' to activate. ```sh sudo yay -S x-cmd x-cmd ``` -------------------------------- ### Quick Install X-CMD with wget Source: https://www.x-cmd.com/llms.txt Installs X-CMD using wget. This is a quick method for Linux, macOS, BSD, and Windows WSL/GitBash environments. ```sh eval "$(wget -O- https://get.x-cmd.com)" ``` -------------------------------- ### Quick Install X-CMD with curl Source: https://www.x-cmd.com/llms.txt Installs X-CMD using curl. This is a quick method for Linux, macOS, BSD, and Windows WSL/GitBash environments. ```sh eval "$(curl https://get.x-cmd.com)" ``` -------------------------------- ### Get Module Help Source: https://www.x-cmd.com/llms.txt Displays all available modules in X-CMD. This is the first level of help. ```sh x --help ``` -------------------------------- ### Use Portable Package Globally Source: https://www.x-cmd.com/llms.txt Installs a portable package globally into the user environment, making the command available after loading x-cmd. Use 'x env ls' to view installed packages. ```sh x env use jq ``` -------------------------------- ### List Installed Portable Packages Source: https://www.x-cmd.com/llms.txt Lists all portable packages currently installed in the user environment. Use 'x env unuse ' to uninstall. ```sh x env ls ``` -------------------------------- ### Get Module Subcommand Help Source: https://www.x-cmd.com/llms.txt Displays functions and subcommands for a specific X-CMD module. This is the second level of help. ```sh x --help ``` -------------------------------- ### Ensure Tool Availability with X-CMD Source: https://www.x-cmd.com/llms.txt Automatically detects and installs portable versions of tools if they are not already present on the system. Use this when you need to guarantee a tool's availability. ```sh x ``` -------------------------------- ### Use Portable Package Temporarily Source: https://www.x-cmd.com/llms.txt Installs a portable package temporarily for the current shell session only. The package will not be available after the session exits. Use 'x env ll' to view all available packages. ```sh x env try jq ``` -------------------------------- ### Update X-CMD Source: https://www.x-cmd.com/llms.txt Updates X-CMD to the latest version or re-runs the installation script. ```sh x upgrade ``` -------------------------------- ### Uninstall Portable Package Source: https://www.x-cmd.com/llms.txt Uninstalls a specific portable package from the user environment. Use 'x env ls' to see installed packages. ```sh x env unuse ``` -------------------------------- ### List All Available Portable Packages Source: https://www.x-cmd.com/llms.txt Lists all available portable packages in the X-CMD system. This command also provides a link to the full package list online. ```sh x env ll ``` -------------------------------- ### Download and Execute Portable Package Source: https://www.x-cmd.com/llms.txt Downloads and directly executes a portable package without modifying the environment variables. This is useful for on-demand execution. ```sh x snap jq ``` -------------------------------- ### Load X-CMD Environment Source: https://www.x-cmd.com/llms.txt Loads the X-CMD environment variables and functions. This is necessary before using 'x' commands in a shell session. ```sh [ -f ~/.x-cmd.root/X ] || eval "$(curl https://get.x-cmd.com)" . ~/.x-cmd.root/X ``` -------------------------------- ### Run X-CMD Docker Container Source: https://www.x-cmd.com/llms.txt Executes X-CMD commands within a Docker container. Useful for minimal environments. ```sh x docker run -x -it x docker setup ``` -------------------------------- ### Use X-CMD Fallback Command Source: https://www.x-cmd.com/llms.txt Uses the standalone 'x-cmd' executable when the 'x' shell function is not available. This is useful in non-persistent shell sessions. ```sh x-cmd [args] ``` -------------------------------- ### Use X-CMD Absolute Path Fallback Source: https://www.x-cmd.com/llms.txt Uses the absolute path to the 'x-cmd' executable as a final fallback. This ensures command execution even if the executable is not in the PATH. ```sh ~/.x-cmd.root/bin/x-cmd [args] ``` -------------------------------- ### Uninstall X-CMD Source: https://www.x-cmd.com/llms.txt Uninstalls X-CMD from the system. ```sh x uninstall self ``` -------------------------------- ### Clean Up Unused Portable Packages Source: https://www.x-cmd.com/llms.txt Reclaims disk space by removing unused portable packages from the system. ```sh x env gc ``` === COMPLETE CONTENT === This response contains all available snippets from this library. No additional content exists. Do not make further requests.