Installation
Quick install
bash
curl -fsSL https://raw.githubusercontent.com/priyanshu-shubham/x/main/install.sh | shpowershell
irm https://raw.githubusercontent.com/priyanshu-shubham/x/main/install.ps1 | iexThis downloads the latest release and installs it to ~/.local/bin.
From source
If you have Go installed:
bash
go install github.com/priyanshu-shubham/x@latestVerify installation
bash
x versionConfigure AI features (optional)
If you want to use AI features (plain English commands, LLM steps, agentic mode):
bash
x configureYou can use:
- Anthropic API key - Get one at console.anthropic.com
- Google Cloud Vertex AI - For enterprise deployments
Not required for command runner
If you only want to use x as a project command runner (like npm scripts or Makefiles), you don't need an API key. The AI features are optional.
Troubleshooting
Command not found
Make sure ~/.local/bin is in your PATH:
bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcOr for zsh:
bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrcAPI errors
Run x configure to check your credentials. Make sure you have credits/quota remaining with your API provider.
Upgrading
bash
x upgradeThis downloads and installs the latest version.