ReVanced CLI
This guide expands on the official ReVanced CLI installation/Patch process.
Make sure to get APK from APKMirror and always download the nodpi package. And only get STABLE patches and CLI .
Windows
Preparation:
- Install a terminal emulator like Windows Terminal [Optional].
Steps:
- Create a folder named "Revanced_CLI" on desktop.
- Download ReVanced CLI and move it to the "Revanced_CLI" folder.
- Download ReVanced Patches and move it to the "Revanced_CLI" folder.
- Install Java by running
winget install -e --id EclipseAdoptium.Temurin.21.JREin your terminal (restart it afterward). - Download the app you want to patch and place it in the "Revanced_CLI" folder.
- Open a terminal in the "Revanced_CLI" folder (right-click > "Open terminal here").
- Patch the app:
- Default patches:
java -jar revanced-cli.jar patch -p revanced-patches.rvp your.apk
in my case itsjava -jar revanced-cli-5.0.0-all.jar patch -p patches-5.2.0.rvp YouTube.apk
Use the exact name ofRevanced CLI,Revanced patches, andAPKyou want to patch.
This command will patch the app using the default patches for the App - Custom patches: Refer to the official documentation.
- Default patches:
Linux
Debian & Debian based distro (Using APT)
Follow steps 1, 2, 3, 5, 6, and 7 from Windows. For Java installation:
apt-get install temurin-21-jdk
Arch & Arch based distro (Using Pacman & yay)
Follow steps 1, 2, 3, 5, 6, and 7 from Windows. For Java installation:
- First install yay
sudo pacman -S yay - Install java using yay
yay -S jdk21-temurin
Android
Here's how to set up ReVanced CLI on Android:
- Install Termux, get it from the trusted sources: F-Droid or GitHub (links in the guide).
- Open Termux and run this command
apt update && apt upgradeto ensure you have the latest packages. - Use your preferred file manager to create a folder named "revanced" inside your Downloads folder.
- Download ReVanced CLI and ReVanced patches from their respective GitHub repositories.
- Move the downloaded CLI and patches to the "revanced" folder you created.
- Get the app you want to patch (e.g., YouTube) and place it in the "revanced" folder.
- Open Termux and run
pkg install openjdk-21to install Java, a requirement for ReVanced CLI. - In Termux, navigate to the "revanced" folder using
cd /storage/emulated/0/downloads/revanced(adjust the path if needed). - Now you can patch! below is default command:
java -jar revanced-cli.jar patch -p revanced-patches.rvp your.apk
in my case itsjava -jar revanced-cli-5.0.0-all.jar patch -p patches-5.2.0.rvp YouTube.apk
Stuck? Join the Revanced Discord for help.