Files
cheatsheet-tldr/tldr/x
2026-01-22 00:23:48 +00:00

34 lines
569 B
Plaintext

---
syntax: markdown
tags: [tldr, common]
source: https://github.com/tldr-pages/tldr.git
---
# x
> Manage modules and packages.
> More information: <https://x-cmd.com>.
- Use a module (e.g., path module):
`x {{module}}`
- Install a package globally (e.g., jq):
`x env use {{package}}`
- Run a package temporarily in current shell session:
`x env try {{package}}`
- Run a package directly without installation:
`x {{package}}`
- Initialize OpenAI API keys for AI features:
`x openai init`
- Query the package installation method and execute it:
`x install`