shipnode run
npx shipnode run "node scripts/migrate.js"npx shipnode run "npm run db:seed"npx shipnode run --tty "bash"Runs from the current release directory with the deployment’s environment loaded. Quote the command so it’s passed as a single argument. Useful for database migrations, ad-hoc scripts, and interactive shells.
Aliases
Section titled “Aliases”If your shipnode.config.ts defines .aliases({ ... }), the first word of the command is matched against the alias map and expanded. Anything after it is appended.
.aliases({ migrate: 'pnpm prisma migrate deploy' })npx shipnode run "migrate"# expands to: pnpm prisma migrate deploy
npx shipnode run "migrate --create-only"# expands to: pnpm prisma migrate deploy --create-onlyOptions
Section titled “Options”| Flag | Purpose |
|---|---|
--tty | Force interactive TTY mode (for shells / REPLs). |
--config <path> | Use a non-default config file. |