x-env
x env - Environment & Package Manager
Prerequisites
-
Load x-cmd before use:
. ~/.x-cmd.root/X -
x-cmd not installed? → data/install.md
Core Concepts
- try: Temporarily use software in current shell session (only valid for current terminal)
- use: Permanently install software to user environment (persists after terminal restart)
- untry: Cancel temporarily tried software in current session
- unuse: Remove installed software from user environment
- upgrade: Upgrade installed software versions
Core Functions
- List available versions:
x env la <pkg> - List installed packages:
x env ls,x env ll - Temporary use (try):
x env try <pkg>[=<version>] - Permanent install (use):
x env use <pkg>[=<version>] - Remove package:
x env unuse <pkg> - Upgrade package:
x env upgrade <pkg> - Cleanup packages:
x env gc <pkg> - Find command path:
x env which <cmd> - Check dependencies:
x env depend <pkg>
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
- Install node:
x env use node - Install python:
x env use python - Install go:
x env use go - Install jq:
x env use jq - Install specific version:
x env use node=v18.12.0 - Temporary try:
x env try node - Upgrade all:
x env upgrade --all - Find path:
x env which node
Get Help
Run x env --help for full help documentation.
More from x-cmd/skill
x-cmd
|
25x-network
This skill provides comprehensive network administration and diagnostic tools through x-cmd CLI, including network scanning with Nmap, ARP table management, DNS configuration, routing table analysis, and enhanced ping utilities. This skill should be used when users need to perform network diagnostics, troubleshoot connectivity issues, analyze network topology, or monitor network performance from command line interfaces.
11x-knowledge
This skill provides access to various knowledge search tools through x-cmd CLI, including Hacker News, Wikipedia, DuckDuckGo search, RFC documents, Project Gutenberg books, and Stack Exchange. This skill should be used when users need to search for technical information, browse online knowledge bases, or access documentation from command line interfaces.
6x-git
This skill provides comprehensive Git and code hosting platform management tools through x-cmd CLI, including GitHub, GitLab, Codeberg, Forgejo integration, and Git hooks management. This skill should be used when users need to manage Git repositories, work with code hosting platforms, automate Git workflows, or configure Git hooks from command line interfaces.
6x-system
This skill provides comprehensive system administration and monitoring tools through x-cmd CLI, including process management, macOS system utilities, network configuration, disk health monitoring, and storage analysis. This skill should be used when users need to perform system administration tasks, monitor system performance, manage network configurations, or troubleshoot system issues from command line interfaces.
6web-artifacts-builder
Suite of tools for creating elaborate, multi-component claude.ai HTML artifacts using modern frontend web technologies (React, Tailwind CSS, shadcn/ui). Use for complex artifacts requiring state management, routing, or shadcn/ui components - not for simple single-file HTML/JSX artifacts.
5