mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-02-04 03:43:39 +00:00
34 lines
569 B
Plaintext
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`
|