---
name: ulk-spip
description: "Manage SPIP CMS installations using SPIP-Cli. Use for SPIP download, install, plugin management, cache, SQL dumps, and multisite operations. Critical for analyze:spip and ranma agents."
---

# SPIP-Cli

## Prerequisite
Verify: `command -v spip`
If absent: see https://contrib.spip.net/SPIP-Cli

Install:
```bash
sudo git clone https://git.spip.net/spip-contrib-outils/spip-cli.git /opt/spip-cli
cd /opt/spip-cli && sudo composer install
sudo ln -s /opt/spip-cli/bin/spip /usr/local/bin/spip
```

Requires Composer (`command -v composer`).

## Installation & Download
```bash
spip dl                          # Download latest SPIP
spip install                     # Interactive install
```

## Plugin Management
```bash
spip plugins:lister              # List installed plugins
spip plugins:activer <prefix>    # Activate a plugin
spip plugins:desactiver <prefix> # Deactivate a plugin
```

## Cache
```bash
spip cache:vider                 # Clear all caches
```

## SQL Operations
```bash
spip sql:dump:create             # Create SQL dump
spip sql:dump:restore dump.sql   # Restore from dump
```

## Core Update
```bash
spip core:mettreajour            # Update SPIP core
```

## Multisite (spipmu)
For mutualized SPIP installations, use `spipmu` instead of `spip`:
```bash
spipmu '*' plugins:lister        # List plugins on all sites
spipmu 'site1,site2' cache:vider # Clear cache on specific sites
spipmu '*' core:mettreajour      # Update core on all sites
```

The `spipmu` command wraps `spip` and iterates over all mutualized sites.
