diff --git a/astro.config.mjs b/astro.config.mjs index d52d1c2..e7744d4 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -67,11 +67,19 @@ export default defineConfig({ }, items:[ { - label:"Documents", + label:"TUIDocs", link:"/guides/tutorial/", translations:{ - "zh-CN":"文档", - "en":"Documents", + "zh-CN":"TUI文档", + "en":"Docs For TUI", + }, + }, + { + label:"CLIDocs", + link:"/guides/cli/", + translations:{ + "zh-CN":"CLI文档", + "en":"Docs For CLI", }, }, { diff --git a/src/content/docs/guides/cli.mdx b/src/content/docs/guides/cli.mdx new file mode 100644 index 0000000..321202e --- /dev/null +++ b/src/content/docs/guides/cli.mdx @@ -0,0 +1,59 @@ +--- +title: Docs For CLI +description: How to use VMR in CLI Mode. +--- + + +## Show help info. + +```bash +vmr -h +``` + +## Show available SDK list. + +```bash +vmr show +``` + +## Show available version list for an SDK. + +```bash +vmr search +``` + +## Show local installed versions for an SDK. + +```bash +vmr local +``` + +## Install and switch to the specific version of an SDK globally. + +```bash +vmr use +``` + +## Temporarily switch to specific version of an SDK in current termianl session. + +```bash +vmr use -s +``` + +## Lock the SDK version for current project. + +```bash +vmr use -l +``` + +## Uninstall the specific version of an SDK. (But not the one currently in use.) + +```bash +vmr uninstall +``` + +## Uninstall all local installed versions for an SDK. (Including the one currently in use.) + +```bash +vmr uninstall +``` diff --git a/src/content/docs/guides/tutorial.mdx b/src/content/docs/guides/tutorial.mdx index af7b6fe..c9d3a29 100644 --- a/src/content/docs/guides/tutorial.mdx +++ b/src/content/docs/guides/tutorial.mdx @@ -1,5 +1,5 @@ --- -title: Documents +title: Docs For TUI description: How to use VMR. --- diff --git a/src/content/docs/zh-cn/guides/cli.mdx b/src/content/docs/zh-cn/guides/cli.mdx new file mode 100644 index 0000000..275fcc7 --- /dev/null +++ b/src/content/docs/zh-cn/guides/cli.mdx @@ -0,0 +1,58 @@ +--- +title: CLI教程 +description: 在命令行模式下使用VMR. +--- + +## 显示帮助信息 + +```bash +vmr -h +``` + +## 显示可以安装的SDK列表 + +```bash +vmr show +``` + +## 搜索某个SDK在当前系统环境下的可安装版本 + +```bash +vmr search +``` + +## 搜索某个SDK的已安装版本 + +```bash +vmr local +``` + +## 全局安装或者切换到某个SDK的某个版本 + +```bash +vmr use +``` + +## 在session模式(临时)安装或切换到某个SDK的某个版本 + +```bash +vmr use -s +``` + +## 对当前项目锁定SDK版本 + +```bash +vmr use -l +``` + +## 卸载某个SDK的某个版本(不包含正在使用的当前版本) + +```bash +vmr uninstall +``` + +## 卸载某个SDK的所有版本(包含正在使用的当前版本) + +```bash +vmr uninstall +``` diff --git a/src/content/docs/zh-cn/guides/tutorial.mdx b/src/content/docs/zh-cn/guides/tutorial.mdx index 2f6be0d..d45dfac 100644 --- a/src/content/docs/zh-cn/guides/tutorial.mdx +++ b/src/content/docs/zh-cn/guides/tutorial.mdx @@ -1,5 +1,5 @@ --- -title: 教程 +title: TUI教程 description: 如何使用VMR. ---