29 lines
476 B
Markdown
29 lines
476 B
Markdown
|
|
# 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`
|