-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: new v0.7.0 kcl cli test scripts and documents.
Signed-off-by: peefy <[email protected]>
- Loading branch information
Showing
52 changed files
with
756 additions
and
309 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
0.6.0 | ||
0.7.0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,20 +8,20 @@ sidebar_position: 2 | |
|
||
### From the Binary Releases | ||
|
||
Each release of KCL includes various OSes and architectures. These binary versions can be manually downloaded and installed from [Github](https://github.com/kcl-lang/kcl/releases/) or [Gitee](https://gitee.com/kusionstack/kcl/releases) and add `{install-location}/kclvm/bin` to the environment PATH. | ||
Each release of KCL includes various OSes and architectures. These binary versions can be manually downloaded and installed from [Github](https://github.com/kcl-lang/cli/releases/) or [Gitee](https://gitee.com/kusionstack/kcl/releases) and add `{install-location}` to the environment PATH. | ||
|
||
> ⚠️ If you cannot successfully access Github, you can also access Gitee to obtain binaries for installation. | ||
#### MacOS & Linux | ||
|
||
```bash | ||
export PATH=$PATH:{install-location}/kclvm/bin | ||
export PATH=$PATH:{install-location} | ||
``` | ||
|
||
#### Windows | ||
|
||
```powershell | ||
$env:PATH += ";{install-location}\kclvm\bin;" | ||
$env:PATH += ";{install-location};" | ||
``` | ||
|
||
### Using script to install the latest release | ||
|
@@ -31,31 +31,35 @@ $env:PATH += ";{install-location}\kclvm\bin;" | |
Install or upgrade the latest darwin KCL to /usr/local/kclvm/bin | ||
|
||
```bash | ||
curl -fsSL https://kcl-lang.io/script/install.sh | /bin/bash | ||
curl -fsSL https://kcl-lang.io/script/install-cli.sh | /bin/bash | ||
``` | ||
|
||
#### Linux | ||
|
||
Install or upgrade the latest linux KCL to /usr/local/kclvm/bin | ||
|
||
```bash | ||
wget -q https://kcl-lang.io/script/install.sh -O - | /bin/bash | ||
wget -q https://kcl-lang.io/script/install-cli.sh -O - | /bin/bash | ||
``` | ||
|
||
#### Windows | ||
|
||
Install or upgrade the latest windows KCL to $Env:SystemDrive\kclvm\bin and add this directory to User PATH environment variable. | ||
|
||
```bash | ||
powershell -Command "iwr -useb https://kcl-lang.io/script/install.ps1 | iex" | ||
powershell -Command "iwr -useb https://kcl-lang.io/script/install-cli.ps1 | iex" | ||
``` | ||
|
||
### Homebrew (MacOS) | ||
|
||
+ Install | ||
|
||
```bash | ||
# Install the latest version | ||
brew install kcl-lang/tap/kcl | ||
|
||
# Specify a version | ||
brew install [email protected] | ||
``` | ||
|
||
+ Upgrade | ||
|
@@ -81,20 +85,12 @@ scoop install kcl-lang/kcl | |
|
||
### From Go | ||
|
||
Install `kcl` through the `Go` command (`Go` requires 1.18+). | ||
|
||
```bash | ||
go install kcl-lang.io/kcl-go/cmds/kcl-go@main | ||
``` | ||
|
||
Add an alias for the kcl command (optional). | ||
Install `kcl` through the `Go` command (`Go` requires 1.19+). | ||
|
||
```bash | ||
alias kcl='kcl-go run' | ||
go install kcl-lang.io/cli/cmd/kcl@latest | ||
``` | ||
|
||
> Note: `kcl-go` does not rely on the installation of `kcl`, but if `kcl` exists in PATH, it will be used by `kcl-go` first. | ||
### From Docker | ||
|
||
+ Command | ||
|
@@ -114,15 +110,7 @@ docker pull kcllang/kcl | |
We can execute the following command to ensure that KCL has been installed correctly. | ||
|
||
```bash | ||
kcl -V | ||
``` | ||
|
||
The output may looks like this: | ||
|
||
```bash | ||
Version: {kcl version} | ||
Platform: {your platform} | ||
GitCommit: {git commit} | ||
kcl --help | ||
``` | ||
|
||
For all the above operating systems and installation methods, if you want to use [KCL Python Plugin](/docs/reference/plugin/overview), you need to ensure that Python 3.7+ is installed and add the python3 command to your PATH environment variable. | ||
|
This file was deleted.
Oops, something went wrong.
55 changes: 0 additions & 55 deletions
55
docs/user_docs/guides/package-management/2-installation.md
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.