Skip to Content
CLI ReferenceDeploy & Manage

Deploy & Manage

espacetech init

Initialize a new project in the current directory. Auto-detects your framework and creates espacetech.json.

espacetech init

Output:

Detected framework: nextjs Created espacetech.json

espacetech.json Configuration

{ "name": "my-app", "framework": "nextjs", "build_command": "npm run build", "start_command": "npm start", "port": 3000 }
FieldDescriptionDefault
nameProject name (used in URL)Directory name
frameworkFramework typeAuto-detected
build_commandBuild commandFramework default
start_commandStart commandFramework default
portPort your app listens on3000

Supported Frameworks

FrameworkAuto-detectedDefault BuildDefault Start
Next.jsnext.config.*npm run buildnpm start
Expressexpress in depsnpm run buildnode index.js
Nuxtnuxt.config.*npm run buildnpm start
Djangomanage.pypip install -r requirements.txtgunicorn
Gogo.modgo build./app
Staticindex.htmlServed via nginx

espacetech deploy

Deploy the current project. Packages source code, uploads it, builds a container, and starts it.

espacetech deploy

Options:

# Deploy a specific directory espacetech deploy --dir ./my-app # Deploy without build cache espacetech deploy --no-cache

What happens during deploy:

Package

Source code is compressed into a tar.gz archive

Upload

Archive is uploaded to the Espace-Tech API

Build

A Docker container is built using Kaniko (secure, rootless builds)

Deploy

Container is deployed to Kubernetes with zero-downtime rolling update

Route

Traffic is routed to your-project.app.espace-tech.com

espacetech logs

View real-time logs from your running application.

# Last 100 lines (default) espacetech logs # Last N lines espacetech logs --lines 500 # Follow (stream) logs espacetech logs --follow

espacetech rollback

Roll back to a previous deployment.

# Roll back to the previous deployment espacetech rollback # Roll back to a specific deployment ID espacetech rollback --deployment abc123

espacetech delete

Delete a project and all its resources.

espacetech delete

This permanently deletes the project, all deployments, and associated resources. This action cannot be undone.