User guide
Updates
How to update Ninja and installed shurikens.
Updating Ninja
Via GUI
The GUI updater checks for new releases and provides installation prompts.
Manual Installation
- Download the latest release from GitHub
- Install the platform-specific package:
Linux:
# AppImage
chmod +x Ninja-*.AppImage
./Ninja-*.AppImage
# Or tarball
tar -xzf shurikenctl-*.tar.gz
sudo mv shurikenctl /usr/local/bin/Windows: Run the installer .exe
macOS: Install the .dmg
Build from Source
git pull origin main
cargo build --release
sudo cp target/release/shurikenctl /usr/local/bin/Updating Shurikens
Upgrade Process
Install a newer .shuriken package with the same ID:
# Via CLI
shurikenctl install path/to/package-v2.0.0.shuriken
# Via GUI
# Use "Install local file" and select the new packageThe manager validates metadata and replaces existing files.
Backup Before Upgrade
Create backup:
# Backup shuriken state and project files
# (Backup commands vary by shuriken implementation)Restore if needed:
# Restore from backup
# (Restore commands vary by shuriken implementation)Creating Release Packages
Package your shuriken for distribution:
shurikenctl forgeThis creates a signed .shuriken package in ~/.ninja/blacksmith/.
Package Contents
- CBOR metadata (name, ID, version, platform)
- tar.gz archive of files
- SHA-256 signature for verification
Verification
Ninja automatically verifies:
- Magic bytes (
HSRZEG) - Metadata structure (CBOR)
- Archive integrity (SHA-256)
If verification fails, installation is aborted.
Version Management
Check installed versions:
shurikenctl listRollback by uninstalling and reinstalling an older package:
shurikenctl remove {name}
shurikenctl install path/to/old-version.shurikenSee also: Armory, CLI Reference