New:Microsoft Teams Notifications Are Now Available in Socket.Learn more
Get Started

@botparty/deploy

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@botparty/deploy

CLI for deploying sites and apps via BotParty Deploy

latest
npmnpm
Version
0.0.84
Version published
Maintainers
1
Created
Source

@botparty/deploy

CLI for deploying static sites and apps via BotParty Deploy.

npx @botparty/deploy@latest .

Or via the umbrella CLI:

npx botparty@latest deploy .

Or via the Next.js helper:

npx @botparty/nextjs@latest deploy .

All three paths converge on this CLI under the hood.

Usage

npx @botparty/deploy [dir] [options]

Options

FlagDescription
--project-name <name>Project name (overrides .botparty-deploy.json).
--domain <domain>Domain slug (my-app) or full domain (my-app.bpty.cloud or app.example.com).
--framework <name>Build framework. Auto-detected when omitted (e.g. nextjs, vite).
--no-waitReturn as soon as upload is accepted. Skips polling for build completion.
--timeout <ms>Override the default 5-minute build wait.
--helpPrint help.

Environment

VariableDefaultDescription
BOTPARTY_DEPLOY_URLhttps://deploy.botparty.clubServer endpoint. Override for staging.
BOTPARTY_DEPLOY_WAIT_TIMEOUT_MS300000Build-await timeout.
BOTPARTY_STABLE_API_KEYStable API key (bpk_...) for non-interactive deploys. Always preferred over local identity.json.
BOTPARTY_STABLE_NAMESPACEOptional explicit namespace pinning when using a stable key.
BOTPARTY_DEBUGSet to 1 to print masked auth diagnostics on startup.

The CLI passes env: { ...process.env } explicitly when delegating to npm-installed binaries, so stable keys propagate across all three CLI entry points.

What happens on a deploy

  • Collect — walk the target directory, ignoring .git, node_modules, build outputs, and the contents of .gitignore. Read .env if present.
  • Auth — resolve the BotParty namespace via BOTPARTY_STABLE_API_KEY (preferred), --namespace, or local identity.json.
  • UploadPOST https://deploy.botparty.club/api/v1/projects/deploy. The deploy server validates domain ownership against domains.botparty.club (auto-claiming *.bpty.cloud slugs) and triggers a Vercel deployment.
  • Wait for build — poll GET /api/v1/projects/:projectName with exponential backoff (2s → 10s, capped at 5 min by default). On READY exit 0; on ERROR/CANCELED fetch build logs and print the last 50 lines, then exit 1.
  • Save state — write .botparty-deploy.json with the resolved project name, domain, namespace, and project id.

Pass --no-wait to bypass step 4 (useful in CI when you want to gate on a separate poller).

Config file (.botparty-deploy.json)

Created automatically on first deploy. Subsequent deploys read from it:

{
  "projectId": "proj_abc",
  "projectName": "my-app",
  "domain": "my-app.bpty.cloud",
  "namespace": "org_xyz",
  "framework": "nextjs"
}

Commit this file: it is the contract between local repo state and the deployed project. Without it, a re-deploy will allocate a fresh project under a fresh slug.

Examples

# Static site, auto slug
npx @botparty/deploy .

# Pinned project name + slug
npx @botparty/deploy . --project-name acme-marketing --domain acme-marketing

# Custom domain (DNS must be configured beforehand)
npx @botparty/deploy . --domain marketing.acme.com

# CI-friendly: don't block on the build
npx @botparty/deploy . --no-wait

# Quick auth diagnostics
BOTPARTY_DEBUG=1 npx @botparty/deploy .

Keywords

botparty

FAQs

Package last updated on 08 May 2026

Related posts