Skip to content

Installation

Jewel Shikder Jony edited this page Sep 2, 2025 · 20 revisions

⚠️ Prerequisites

To start building AI2 extensions with FAST, ensure that JDK is installed on your system (JDK 8 or JDK 11 is recommended).
To verify the correct JDK version, run java -version in your preferred terminal. The output should look something like this:

java version "1.8.0_391

To install FAST on your system, execute the following commands in the appropriate shell.

🖥️ Windows (PowerShell)

iwr https://raw.githubusercontent.com/jewelshkjony/fast-cli/main/scripts/install/win.ps1 -useb | iex

💻 Linux & MacOS

curl https://raw.githubusercontent.com/jewelshkjony/fast-cli/main/scripts/install/install.sh -fsSL | sh

⚙️🖥️ Manual Setup for Windows

  1. Download the fast.zip from here.
  2. Create a new folder by name Fast.
  3. Unzip the fast.zip to the newly created Fast folder.
  4. Copy the absolute path of the Fast folder.
  5. Create FAST_HOME environment variable with the copied value (Optional).
  6. Set the copied value to path. (mandatory)
  7. You're done.
    Now open the terminal and write fast -v to check the installed version.

Note: This tutorial video might be helpful for you.

⚙️💻 Manual Setup for Linux & MacOS

  1. Download the fast.zip from here.
  2. Create a new folder by name Fast.
  3. Unzip the fast.zip to the newly created Fast folder.
  4. Delete the fast.bat file. (This file is only for Windows)
  5. Copy the absolute path of the Fast folder.
  6. Edit the .bashrc or .zshrc and add below lines:

From JDK 8 to 23:

export FAST_HOME="<absolute path of the Fast folder>"

fast() {
    java -jar "$FAST_HOME/fast.jar" "$@"
}

From JDK 24 and above:

export FAST_HOME="<absolute path of the Fast folder>"

fast() {
    java --enable-native-access=ALL-UNNAMED -jar "$FAST_HOME/fast.jar" "$@"
}
  1. Save it.
  2. You're done.
    Now open the terminal and write fast -v to check the installed version.

Note: This tutorial video might be helpful for you.

⚙️📱 Setup Process for Android Termux

  1. Download and install the MT Manager.apk
  2. Download and install the latest termux-app_vx.x.x+github-debug_arm64-v8a.apk from here.
  3. Open Termux app and run below command and provide storage permission:
termux-setup-storage
  1. Run below command to download and upgrade required resources:
pkg upgrade -y
  1. Add Termux as local storage in MT Manager.apk
  2. Run below command to install OpenJDK 17:
pkg install openjdk-17 -y
  1. If you want to download and configure FAST-CLI automatically, so run below command otherwise skip step no# 7.
    Once done, close the Termux app and open it again, then run fast -v to check the installed version of FAST-CLI.
curl https://raw.githubusercontent.com/jewelshkjony/fast-cli/main/scripts/install/install.sh -fsSL | sh
  1. If you've skipped step no# 7, so download the latest fast.zip from here.
  2. Open MT Manager and navigate to Termux Home directory. Then extract the downloaded fast.zip at $HOME/Fast.
  3. Open the .bashrc file with text editor. If this file is not exists so create a new .bashrc file and open it with text editor.
  4. Paste the below scripts to the .bashrc file and save it.
export FAST_HOME="$HOME/Fast"

fast() {
    java -jar "$FAST_HOME/fast.jar" "$@"
}
  1. Now, open the Termux and run fast -v to check the installed version of FAST-CLI.
  2. You're done.
    Enjoy the FAST-CLI on Android Termux.

Tips: You might like to code with Acode.

Note: This tutorial video might be helpful for you.

🧾 Fast Tree

Fast          1️⃣
  ┣━ lib      2️⃣
  ┣━ fast.bat 3️⃣
  ┣━ fast.jar 4️⃣
  ┗━ icon.png 5️⃣
  ┗━ .license 6️⃣

⁉️ Explanation

  1. Fast directory

    • This is where you install the FAST. Absolute path of this directory will be used as FAST_HOME.
  2. lib directory

    • This directory contains all the required libraries and tools.
  3. fast.bat

    • This file will be used to call the fast.jar globally.
    • This file is only required for Windows user.
  4. fast.jar

    • This is the main executable of FAST-CLI.
  5. icon.png

    • This is the default icon.
    • It'll be used on creating a new extension project.
  6. .license

    • This is a must required license file to unlock Premium features.
    • Once you become a premium member, I'll create a unique license file for you.

Clone this wiki locally