The default installation directory for Shinobi is /home/Shinobi. You should also become root or prefix with sudo to run the following commands.

This article will show you how to switch branches for Shinobi. There are multiple branches but dev and master are the main ones. The dev branch contains all the latest changes that are expected to be stable. The master branch is expected to contain the latest stable build.

1. Navigate to the Shinobi directory.

cd /home/Shinobi

2. Use git to switch. The following commands will show how to switch to dev and then to master.

git checkout dev
git checkout master

If you are getting errors you may need to run the following first.

git reset --hard && git pull

3. Once switched you will need to restart Shinobi for changes to take effect.

pm2 restart all