| name | apify-upgrade-migration |
| description | Upgrade Apify SDK, apify-client, and Crawlee versions safely.
Use when migrating between SDK versions, handling breaking changes,
or updating from Apify SDK v2 to v3 (Crawlee split).
Trigger: "upgrade apify", "apify migration", "apify breaking changes",
"update apify SDK", "crawlee upgrade", "apify v2 to v3".
|
| allowed-tools | Read, Write, Edit, Bash(npm:*), Bash(npx:*), Bash(git:*), Grep |
| version | 1.0.0 |
| license | MIT |
| author | Jeremy Longshore <jeremy@intentsolutions.io> |
| tags | ["saas","scraping","automation","apify"] |
| compatible-with | claude-code |
Apify Upgrade & Migration
Overview
Guide for upgrading apify, apify-client, and crawlee packages. The biggest migration in Apify's history was SDK v2 to v3, which split crawling functionality into the crawlee package. This skill covers that migration plus general upgrade procedures.
Prerequisites
- Git branch for the upgrade
- Test suite available
- Current versions documented
Instructions
Step 1: Check Current Versions
npm list apify apify-client crawlee 2>/dev/null
npm view apify version
npm view apify-client version
npm view crawlee version
npm outdated apify apify-client crawlee
Step 2: Create Upgrade Branch
git checkout -b upgrade/apify-packages
Step 3: Upgrade Packages
npm install apify@latest crawlee@latest apify-client@latest
npm install apify@3.2.0 crawlee@3.11.0
npm ls 2>&1 | grep "ERESOLVE\|peer dep"
Step 4: Run Tests and Fix Issues
npm test
npm run build
Major Migration: Apify SDK v2 to v3 (Crawlee Split)
This is the most common migration. In v3, crawling code moved to crawlee.
Import Changes
import Apify from 'apify';
const { CheerioCrawler, PlaywrightCrawler, log } = Apify;
import { } ;
{ , , log } ;