- 5 September 2021
- Project build system changed from Maven to Gradle.
- Installation Method changed
- 2 November 2020
- Objects of Kode and Java are separated out, for clarity and security.
To install and run Kode, your development environment must meet these minimum requirements:
- Operating Systems:
- Tools: Kode depends on these org.edumate.kode.Tools being available in your environment.
- Java SE Development Kit 11 or newer
-
Download the following installation bundle to get the latest stable release of the Kode SDK:
-
Extract the zip file and place the contained
Kode
in the desired installation location for the Kode SDK.
⚠️ Warning: Do not install Kode in a directory likeC:\Program Files\
that requires elevated privileges.
If you want to install using GitHub, you can get the source code from the Kode repo on GitHub, and change branches or tags as needed. For example:
C:\src> git clone https://github.com/Kode-Devs/Kode.git -b stable
You are now ready to run Kode.
If you wish to run Kode org.edumate.kode.Tools.commands in the regular Windows console, take these steps to add Kode to the PATH
environment
variable:
- From the Start search bar, enter ‘env’ and select Edit environment variables for your account.
- Under User variables check if there is an entry called Path:
- If the entry exists, append the full path to
Kode\bin
using;
as a separator from existing values. - If the entry doesn't exist, create a new user variable named
Path
with the full path toKode\bin
as its value.
- If the entry exists, append the full path to
You have to close and reopen any existing console windows for these changes to take effect.
The following command tells you whether the Kode SDK is properly associated with your PATH
variable and hence
ready to use.
C:\>where.exe kode
C:\path-to-kode-sdk\bin\kode
C:\path-to-kode-sdk\bin\kode.bat
You’ll probably want to update this variable permanently, so you can run Kode in any terminal session.
The steps for modifying this variable permanently for all terminal sessions are machine-specific. Typically, you add a line to a file that is executed whenever you open a new window. For example:
-
Determine the path of your clone of the Kode SDK. You need this in Step 3.
-
Open (or create) the
rc
file for your shell. For example, Linux uses the Bash shell by default, so edit$HOME/.bashrc
. If you are using a different shell, the file path and filename will be different on your machine. -
Add the following line and change
[PATH_OF_KODE_GIT_DIRECTORY]
to be the path of your clone of the Kode git repo:export PATH="$PATH:[PATH_OF_KODE_GIT_DIRECTORY]/bin"
-
Run
source $HOME/.<rc file>
to refresh the current window, or open a new terminal window to automatically source the file. -
Verify that the
Kode/bin
directory is now in yourPATH
by running:echo $PATH
Verify that the
kode
command is available by running:which kode
In some cases, your distribution may not permanently acquire the path when using the above directions. When this occurs, you can change the environment variables file directly. These instructions require administrator privileges:
-
Determine the path of your clone of the Kode SDK.
-
Locate the
etc
directory at the root of the system, and open theprofile
file with root privileges.sudo nano /etc/profile
-
Update the PATH string with the location of your Kode SDK directory.
if [ "`id -u`" -eq 0 ]; then PATH="..." else PATH="/usr/local/bin:...:[PATH_OF_KODE_GIT_DIRECTORY]/bin" fi export PATH
-
End the current session or reboot your system.
-
Once you start a new session, verify that the
kode
command is available by running:which kode
You’ll probably want to update this variable permanently, so you can run Kode in any terminal session.
The steps for modifying this variable permanently for all terminal sessions are machine-specific. Typically, you add a line to a file that is executed whenever you open a new window. For example:
-
Determine the path of your clone of the Kode SDK. You need this in Step 3.
-
Open (or create) the
rc
file for your shell. Typingecho $SHELL
in your Terminal tells you which shell you’re using. If you’re using Bash, edit$HOME/.bash_profile
or$HOME/.bashrc
. If you’re using Z shell, edit$HOME/.zshrc
. If you’re using a different shell, the file path and filename will be different on your machine. -
Add the following line and change
[PATH_OF_KODE_GIT_DIRECTORY]
to be the path of your clone of the Kode git repo:export PATH="$PATH:[PATH_OF_KODE_GIT_DIRECTORY]/bin"
-
Run
source $HOME/.<rc file>
to refresh the current window, or open a new terminal window to automatically source the file. -
Verify that the
Kode/bin
directory is now in yourPATH
by running:echo $PATH
Verify that the
kode
command is available by running:which kode