> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fkapi.sunr4y.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Management Commands Overview

> Overview of Django management commands available in FKApi

FKApi includes a comprehensive set of Django management commands to help you scrape football kit data, maintain the database, and optimize performance.

## Command Categories

### Scraping Commands

Commands for fetching football kit data from external sources:

* **scrape\_latest** - Scrape the latest kits across multiple pages
* **scrape\_club\_details** - Scrape club logos and details for clubs missing data
* **scrape\_kit\_by\_slug** - Scrape a specific kit by its slug identifier
* **scrape\_whole\_club** - Scrape all kits for all clubs in the database
* **scrape\_brand** - Scrape brand logos and details for brands missing data
* **scrape\_user** - Scrape user collections from FootballKitArchive

See [Scraping Commands](/commands/scraping) for detailed usage.

### Maintenance Commands

Commands for database maintenance and optimization:

* **categorize\_type\_k** - Categorize and order kit types for proper search result sorting
* **clean\_double\_slash\_urls** - Fix malformed URLs containing double slashes
* **update\_last\_season** - Update kit photos from recent seasons (2025, 2026, 2025-26)
* **warm\_cache** - Pre-populate the cache with frequently accessed data

See [Maintenance Commands](/commands/maintenance) for detailed usage.

## Running Commands

All management commands are run using Django's `manage.py`:

```bash theme={null}
python manage.py <command_name> [options]
```

## Common Options

Many commands support common options:

* `--help` - Display help information for the command
* `--dry-run` - Preview changes without saving (where applicable)
* `--force` - Force operation even if data already exists
* `--workers N` - Set number of concurrent worker threads

## Getting Help

For detailed help on any command:

```bash theme={null}
python manage.py <command_name> --help
```
