mirror of
https://github.com/ivuorinen/cheatsheet-tldr.git
synced 2026-03-19 04:01:20 +00:00
Update cheatsheets
This commit is contained in:
33
tldr/x
Normal file
33
tldr/x
Normal file
@@ -0,0 +1,33 @@
|
||||
---
|
||||
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`
|
||||
Reference in New Issue
Block a user