Command Line Tool

DevSpace CLI v1.0

Deploy, manage, and monitor your applications in the cloud with ease. Deploy any project to a containerized environment in seconds, without complex configuration.

Updated recently 20 min read CLI Tool

Introduction

One-Command Deploy
Deploy any project with a single command — no complex configuration needed.
Auto-Detection
Automatically detects language, framework, and selects the right Docker image.
Real-Time Monitoring
View logs, stats, and execute commands inside your running containers.

📦 DevSpace CLI — A powerful command-line tool that lets you deploy, manage, and monitor your applications in the cloud with ease. DevSpace automatically detects your project type, selects the appropriate Docker image, and handles the entire deployment process.

Installation

Install DevSpace CLI with a single command. The installation script will download the binary and make it globally accessible.

Quick Install (Linux/Unix)
curl -fsSL https://shulker.in/devspace/install.sh | sed 's/\r$//' | sudo bash

✅ What this does — Downloads the DevSpace binary from the official CDN, installs it to /usr/local/bin/devspace, and makes it globally accessible.

Verify Installation

Terminal
devspace version

Authentication

Before deploying your first project, authenticate with your Shulker account. Credentials are stored locally with secure permissions.

Terminal
devspace authenticate [email protected] mypassword

# Aliases
devspace auth [email protected] mypassword
devspace login [email protected] mypassword

🔐 Credential Storage — Credentials are stored in ~/devspace-core/config.json with secure file permissions (0600). You only need to authenticate once per machine.

Deployment

Deploy your project to the cloud with automatic language detection and Docker image selection.

Basic Deploy
devspace deploy

# Deploy specific directory
devspace deploy ./my-app

# Deploy with custom server name
devspace deploy ./my-app my-server

# Deploy for a team
devspace deploy --team-id=123
ParameterDescriptionDefault
directoryPath to your project directorycurrent directory
server-nameCustom name for your DevSpace serverauto-generated
imageDocker image to use for the containerauto-detected
team-idTeam ID for team deployment (higher quota)individual

Management

devspace list
List all your deployments with status
devspace info <server-name>
View detailed server information
devspace logs <server-name>
View container logs (default: 100 lines)
devspace ports <server-name>
Shows port mappings and forwarded URLs
devspace stats <server-name>
Real-time CPU, memory, and I/O statistics

Command Execution

Execute Command
devspace execute my-server ls -la /project
devspace exec my-server npm install
devspace cmd my-server python app.py

# Aliases: exec, cmd

⚡ Real-time Output — The execute command streams output in real-time as the command runs, providing live feedback from your container.

Container Control

devspace start <server-name>
Starts a stopped container
devspace stop <server-name>
Stops a running container
devspace restart <server-name>
Restarts a container
devspace delete <server-name>
Permanently deletes a DevSpace (aliases: remove, rm)

⚠️ Deletion Confirmation — The delete command requires confirmation. You must type yes to proceed. This action is permanent and cannot be undone.

Limits & Quotas

Individual Users
4 deployments/day
Team Accounts
20 deployments/day

📊 Quota Reset — All daily deployment quotas reset at midnight UTC. Project size limit: 500 MB (compressed). Directories like node_modules, .git, and __pycache__ are automatically excluded.

Supported Languages

Node.js
node:18-alpine
Python
python:3.11-alpine
Go
golang:1.21-alpine
Rust
rust:1.71-alpine
PHP
php:8.2-apache
Java
openjdk:17-alpine

📦 Custom Docker Images — Don't see your stack? Specify any Docker image: devspace deploy ./my-app my-server custom-image:latest

Quick Reference

devspace authenticate <email> <password>
Authenticate with your account
devspace deploy
Deploy current directory to cloud
devspace list
List all deployments
devspace info <server-name>
View detailed server information
devspace logs <server-name>
View container logs
devspace execute <server-name> <command>
Execute command in container
devspace start/stop/restart <server-name>
Control container lifecycle
devspace delete <server-name>
Delete a deployment
devspace version
Show CLI version
devspace help
Show help and usage information

Important Notes

📁 Excluded Directories — Automatically excluded: node_modules, .git, __pycache__, vendor, target

🔌 Port Forwarding — Port 8080 is automatically forwarded and made accessible via a public URL. The URL is displayed after successful deployment.

📂 Project Directory — Your project files are uploaded to /project inside the container. Use this path when executing commands.