Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
moqsien committed Dec 28, 2024
1 parent bb99eb8 commit 7c99eca
Show file tree
Hide file tree
Showing 2 changed files with 43 additions and 1 deletion.
23 changes: 22 additions & 1 deletion src/content/docs/guides/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ title: Docs For CLI
description: How to use VMR in CLI Mode.
---

import {Aside } from '@astrojs/starlight/components';
import { Aside } from '@astrojs/starlight/components';

## Set Proxy

Expand Down Expand Up @@ -49,6 +49,12 @@ vmr search <sdk-name>
vmr installed-sdks
```

## Show local installed SDKs and their versions.

```bash
vmr installed-info
```

## Show local installed versions for an SDK.

```bash
Expand Down Expand Up @@ -85,6 +91,21 @@ vmr uninstall <sdk-name@version>
vmr uninstall <sdk-name@all>
```

## Add auto-completions for shell.

```bash
vmr add-completions
```

## Allow/Disallow nested sessions.

```bash
vmr nested-sessions
```
<Aside type="caution" title="Note">
You should never use nested sessions and lock file at the same time. Or vmr will start a new session every time you run the cd command.
</Aside>

## SDK List not found?

<Aside type="caution" title="Note">
Expand Down
21 changes: 21 additions & 0 deletions src/content/docs/zh-cn/guides/cli.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ vmr search <sdk-name>
vmr installed-sdks
```

## 显示已通过VMR安装的SDK以及它们的所有版本信息

```bash
vmr installed-info
```

## 搜索某个SDK的已安装版本

```bash
Expand Down Expand Up @@ -85,6 +91,21 @@ vmr uninstall <sdk-name@version>
vmr uninstall <sdk-name@all>
```

## 一键开启命令行自动补全功能

```bash
vmr add-completions
```

## 开启或关闭嵌套sessions.

```bash
vmr nested-sessions
```
<Aside type="caution" title="Note">
注意不要同时使用锁定版本和嵌套sessions功能!否则,一直cd,一直新建session,会很酸爽。
</Aside>

## SDK列表没找到?

<Aside type="caution" title="Note">
Expand Down

0 comments on commit 7c99eca

Please sign in to comment.