Skip to content

aerostack migrate

Migrate an existing Cloudflare Worker project to Aerostack. The command detects your wrangler.toml, generates an aerostack.toml, and uses AI to suggest code changes for compatibility.

Terminal window
aerostack migrate

Run this from the root of your existing Cloudflare Worker project.

  1. Detects and reads your existing wrangler.toml
  2. Generates a compatible aerostack.toml
  3. Maps your existing D1, KV, R2, and Queue bindings
  4. Uses AI to analyze your Worker code and suggest Aerostack SDK integrations
  5. Lists any incompatible patterns that need manual review
Terminal window
# From your existing Worker project directory
aerostack migrate
# Review the generated aerostack.toml
cat aerostack.toml
# Start the dev server to test
aerostack dev
  • Your original wrangler.toml is preserved (not deleted)
  • aerostack.toml references the same D1/KV/R2 IDs
  • The AI suggestions are comments in your code — review and apply manually

After migration, you can deploy via Aerostack or continue using Wrangler directly — the two configs coexist. When you’re confident in the Aerostack setup, you can remove wrangler.toml.