The nself frontend command manages frontend applications integrated with ɳSelf backends. Track deployments, manage environment variables, and integrate with deployment providers like Vercel and Netlify.
nself frontend <subcommand> [options]Show frontend deployment status.
nself frontend # Show all frontends
nself frontend status # Same as aboveList configured frontend apps.
nself frontend list # List names
nself frontend list --json # JSON outputAdd a new frontend application.
nself frontend add <name> [options]
# Options:
# --port <port> Development port
# --route <route> Subdomain route
# Examples
nself frontend add webapp --port 3000
nself frontend add admin --port 3001 --route admin-uiRemove a frontend application.
nself frontend remove <name>
# Example
nself frontend remove webappDeploy frontend (Vercel/Netlify integration).
nself frontend deploy <name> [options]
# Options:
# --env <env> Target environment (default: staging)
# Examples
nself frontend deploy webapp # Deploy to staging
nself frontend deploy webapp --env prod # Deploy to productionView frontend build/deploy logs.
nself frontend logs <name> [options]
# Options:
# --limit <n> Number of entries (default: 20)
# Examples
nself frontend logs webapp # Recent logs
nself frontend logs webapp --limit 50 # Last 50 entriesShow environment variables for frontend.
nself frontend env <name> [options]
# Options:
# --json Output as JSON
# Examples
nself frontend env webapp # Show env vars
nself frontend env webapp --json # JSON output| Option | Description | Default |
|---|---|---|
--port N | Frontend port | 3000 |
--route PATH | Route prefix | app name |
--provider NAME | Deployment provider | auto-detect |
--env NAME | Target environment | production |
--limit N | Log entries to show | 20 |
--json | Output in JSON format | false |
Frontends are configured in .env:
# Frontend Apps
FRONTEND_APP_1_NAME=webapp
FRONTEND_APP_1_PORT=3000
FRONTEND_APP_1_ROUTE=app
FRONTEND_APP_2_NAME=admin
FRONTEND_APP_2_PORT=3001
FRONTEND_APP_2_ROUTE=adminThe env subcommand generates framework-specific variables:
NEXT_PUBLIC_GRAPHQL_URL=https://api.local.nself.org/v1/graphql
NEXT_PUBLIC_AUTH_URL=https://auth.local.nself.org
NEXT_PUBLIC_STORAGE_URL=https://minio.local.nself.orgVITE_GRAPHQL_URL=https://api.local.nself.org/v1/graphql
VITE_AUTH_URL=https://auth.local.nself.orgREACT_APP_GRAPHQL_URL=https://api.local.nself.org/v1/graphql
REACT_APP_AUTH_URL=https://auth.local.nself.orgIf vercel.json or .vercel/ directory exists:
nself frontend deploy webapp # Deploy preview
nself frontend deploy webapp --env prod # Deploy productionRequires: vercel CLI (npm i -g vercel)
If netlify.toml or .netlify/ directory exists:
nself frontend deploy webapp # Deploy preview
nself frontend deploy webapp --env prod # Deploy productionRequires: netlify CLI (npm i -g netlify-cli)
➞ Frontend Applications
Name Port Route Status URL
---- ---- ----- ------ ---
webapp 3000 app running https://app.local.nself.org
admin 3001 admin stopped https://admin.local.nself.org
➞ Deployment Integrations
✓ Vercel configured