X env

From x-cmd/skill · View interactive version

X env is an AI agent skill from the GitHub repository x-cmd/skill. x-env is x-cmd's environment and package management module for installing and managing third-party software, programming language runtimes, and command-line tools. Use this skill when: installing or managing runtimes (node, python, go, bun, java, rust); installing CLI tools (jq, yq, fzf, himalaya, c

How to use this skill

Skill file

x env - Environment & Package Manager

Prerequisites

  1. Load x-cmd before use:

```bash

. ~/.x-cmd.root/X

```

  1. x-cmd not installed? → data/install.md

Core Concepts

Core Functions

Usage Examples

Install packages

x env use node              # Install default version of node
x env use python            # Install default version of python
x env use go=v1.21.0        # Install specific version
x env use node python go    # Install multiple packages

Temporary use (current shell session only)

x env try node              # Use default node in current session
x env try bun go=v1.17.13   # Use multiple packages with versions
x env untry node            # Cancel temporary use

Version management

x env use --upgrade --all   # Upgrade all installed packages
x env use --upgrade jq yq   # Upgrade specific packages
x env upgrade node python   # Upgrade packages (shorthand)

List and search

x env la node               # List all available node versions
x env ls                    # List packages in use
x env ll                    # List all installed packages
x env which node            # Show node installation path

Cleanup

x env gc jq yq              # Remove specified packages and orphans

Common Scenarios

Get Help

Run x env --help for full help documentation.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.