Docs · CLI

npx pagerless connect

One command reads your repo, finds what to watch, and shows the exact changes. Nothing changes until you approve.

npx pagerless connect

What happens

  1. Sign in

    It prints a sign-in link and a code and opens your browser. Check the page shows the same code, then allow with your passkey.

  2. Pick the app

    It uses your repo's folder name (or --project) and creates the app if needed.

  3. Find what to watch

    Services, scheduled jobs and AWS alarms, listed with the files it will touch.

  4. Show the diff

    Every edit is an insertion, shown in full. It asks "Apply these changes?"

  5. Apply

    Writes the edits, creates one ingest key and stores it in the right place, installs the package, and prints what to run next.

What it detects

Detected in your repo
StackFound byChange it makes
JavaScript frameworksNext.js, Nuxt, SvelteKit, Astro, Remix, React Router (Shopify apps too), NestJS, Express, Fastify, Koa, Hono, tRPCAdds that framework's Pagerless hook (see its integration page)
Mobile and desktopExpo, React Native, ElectronAdds the Pagerless init for that runtime
Vite single-page appsreact, vue, svelte, solid-js or preact with ViteBrowser init with VITE_PAGERLESS_KEY
Denodeno.jsonimport "npm:pagerless@^0.2.0/auto"
Cloudflare Workerswrangler.toml / .json / .jsonc with mainexport default withPagerless(...)
Cloudflare Pagespages_build_output_dir or a functions/ folderCreates or chains functions/_middleware
Goeach func main run by a Dockerfile; Gin, Echo, Fiber, chi, gorilla/mux, gRPC, Temporalpagerless.Init, defer pagerless.Close, and that framework's adapter or pagerless.Middleware(h)
AWS (Terraform)SNS topics, CloudWatch alarms, ECS, Lambda, schedulersSNS subscription to Pagerless, ECS key from SSM
Scheduled jobsWrangler crons, EventBridge, AWS Scheduler, TemporalA check-in line per job
Other monitoring toolsAlertmanager (incl. AlertmanagerConfig), Grafana provisioning or Terraform, Datadog Terraform, SentryPrints the receiver, contact point or webhook to add; for tools set up in their own UI, points you to the URL in the app
PythonLambda runtimes in TerraformNothing yet: add the Python SDK by hand

Flags

Command-line flags
FlagWhat it does
--dry-runShows the plan and diff, changes nothing, needs no sign-in.
--yes, -ySkips the confirm prompt (CI). The browser approval is still needed.
--project <name>App name. Default: the repo folder name.
--aws-profile <p>AWS profile for SNS and SSM commands.
--no-installDon't run the package install.
--no-openPrint the sign-in link instead of opening a browser.

Undo access

To let Pagerless undo a bad deploy, connect offers a Cloudflare API token page prefilled with Workers Scripts edit and Pages edit, or an AWS CloudFormation quick-create link for a pagerless-undo role with an external ID. You can skip both.

Updated .

Free for you and one backup · 3 apps · no card

Sleep through the small stuff.

Run one command in your repo. Pagerless shows every change before it makes it.

npx pagerless connect