-
Notifications
You must be signed in to change notification settings - Fork 0
Quick Start
Deploy an application with the dashboard, AI App Builder, CLI, or an MCP client. This guide starts with the CLI because it is repeatable and maps directly to the dashboard and API workflows.
- Create an account at nexusai.run/register.
- Verify your email and complete organization setup.
- Install Node.js 18 or later if you use the npm installation path.
- For private repositories, add an appropriate source-control credential to the Secrets Vault.
- For AI Builder workflows, configure an AI provider in AI Providers. Availability varies by plan.
You do not need to connect AWS, Google Cloud, or Azure to use the NEXUS AI container runtime.
curl -fsSL https://nexusai.run/install-mac.sh | bashcurl -fsSL https://nexusai.run/install.sh | bashnpm install -g nexusapp-cli@latestVerify and sign in:
nexus --version
nexus auth login
nexus auth whoamiFor CI, create a scoped access token in Access Tokens and set it as NEXUSAI_TOKEN instead of running an interactive login.
The smallest source deployment is:
nexus deploy source \
--repo https://github.com/you/your-app.git \
--name your-app \
--provider docker \
--waitNEXUS AI detects common frameworks and build commands. Override detection only when your repository needs it:
nexus deploy source \
--repo https://github.com/you/your-app.git \
--name your-app \
--provider docker \
--framework node \
--install-command "npm ci" \
--build-command "npm run build" \
--start-command "npm start" \
--environment PRODUCTION \
--waitYour process must listen on 0.0.0.0 and the configured service port. Read the PORT environment variable when possible.
On the NEXUS AI container runtime, --services creates database or cache sidecars and injects connection variables into the app and worker containers.
nexus deploy source \
--repo https://github.com/you/your-app.git \
--name your-full-stack-app \
--provider docker \
--services postgresql,redis \
--worker-command "npm run worker" \
--environment PRODUCTION \
--waitSupported sidecar service types include PostgreSQL, MySQL, MongoDB, and Redis. The dashboard shows each service and its connection details on the deployment's Databases tab.
Cloud Run, App Runner, and Container Apps do not run Compose-style sidecars. For those providers, --create-db postgres, --create-db mysql, or --managed-db <id> attaches a supported managed database.
nexus volume create app-data
nexus volume list
nexus volume attach <volume-id> <deployment-id> --mount /data
nexus deploy redeploy <deployment-id> --waitAttaching changes desired configuration. Redeploy is required before the running container receives the mount.
nexus bucket create user-uploads
nexus bucket attach <bucket-id> <deployment-id>
nexus deploy redeploy <deployment-id> --waitThe redeployed app receives scoped S3_* variables. Buckets can attach to multiple deployments; volumes attach to one deployment at a time.
nexus deploy status your-full-stack-app
nexus deploy logs your-full-stack-app --follow
nexus deploy scale your-full-stack-app 3
nexus deploy auto-destroy your-full-stack-app --in 4hCommon lifecycle commands:
nexus deploy stop your-full-stack-app
nexus deploy start your-full-stack-app
nexus deploy redeploy your-full-stack-app --wait
nexus deploy rollback your-full-stack-appStop is a soft stop. Persistent services and storage are managed separately; deletion is the destructive operation.
Discover the service ID, then create and download a backup:
nexus db services your-full-stack-app
nexus db backup <service-id>
nexus db backups <service-id>
nexus db backup-download <service-id> <backup-id> --out ./backup.dumpRestore to the same service or seed another compatible service:
nexus db restore <service-id> <backup-id> --yes
nexus db restore-to <target-service-id> <backup-id> --yesTake a fresh backup before migrations or other destructive schema changes.
- Open a project and choose Build with AI.
- Describe the application.
- Review the browser-local live preview.
- Iterate with chat, direct code edits, screenshots, or click-to-edit.
- Use the version menu to restore an earlier checkpoint if necessary.
- Click Deploy, choose a provider and region, and follow the live status.
Full-stack Next.js + Prisma projects use mock data in preview and receive a real managed Postgres database when deployed.
Connect https://mcp.nexusai.run/mcp, complete OAuth, then ask the agent to run a workflow such as:
Deploy this repository to NEXUS AI with PostgreSQL and Redis, wait for it to become healthy, then show me the public URL and the last 100 runtime log lines.
The agent can call nexusai_deploy_source, nexusai_deploy_status, and nexusai_deploy_logs with the scopes you approved.
- The app listens on
0.0.0.0, not onlylocalhost. - The service port matches the application port.
- Required secrets exist in the correct environment.
- Private repository credentials are stored as secrets, not embedded in the URL.
- The health endpoint returns a successful response after startup.
- Database migrations run intentionally and have a backup/rollback plan.
- Volume or bucket attachments are followed by a redeploy.