Skip to content

Existing Astro Site

From the root of your Astro project:

Terminal window
npx @kenresoft-cms/create astro --cms-url https://your-cms-api.example.com

The command detects the Astro project and version (Astro 5 or newer), installs @kenresoft-cms/astro, creates the managed files, sets the CMS URL in your environment configuration, records what it wrote, and reports anything you must do by hand.

src/pages/cms/[...path].ts same-origin proxy
src/lib/kenresoft.ts client helpers
.kenresoft/integration.json record of managed files

It never rewrites your pages, layouts, components, styles or business logic, and it does not change your CMS deployment. It does not edit your CMS CORS_ORIGINS or your Wrangler config; it reports the required manual steps instead.

Terminal window
npx @kenresoft-cms/create astro --no-install # skip installing dependencies
npx @kenresoft-cms/create astro --help

Running it again is safe: managed files that already match are kept, and files you own are not replaced.

Update later with npx @kenresoft-cms/create astro --update: see Astro deployment.