ScriptsApr 15, 2026·3 min read

DevSpace — Developer-First Kubernetes Workflow Tool

CLI that turns any repo into a Kubernetes dev environment: build, deploy, port-forward, file-sync, and log-stream from a single devspace.yaml.

TL;DR
DevSpace reads a single devspace.yaml to build images, deploy to Kubernetes, sync files, port-forward, and stream logs in one command.
§01

What it is

DevSpace is an open-source CLI tool that transforms any code repository into a Kubernetes development environment. It handles image building, deployment, port-forwarding, file synchronization, and log streaming from a single devspace.yaml configuration file.

The tool targets developers who work with Kubernetes daily and want to iterate faster without manually running kubectl commands, rebuilding images, and restarting pods. It supports Helm charts, Kustomize, and raw manifests.

§02

How it saves time or tokens

DevSpace replaces a multi-step workflow of building Docker images, pushing to a registry, updating deployments, setting up port-forwards, and tailing logs with a single devspace dev command. File sync means code changes appear in the running container without a full image rebuild, cutting iteration cycles from minutes to seconds.

The profile system lets you reuse the same configuration across development, staging, and production with environment-specific overrides.

§03

How to use

  1. Install DevSpace with brew install devspace or npm install -g devspace.
  2. Run devspace init in your project to generate a devspace.yaml configuration.
  3. Run devspace dev to start the full development loop: build, deploy, port-forward, sync, and log streaming.
§04

Example

# Install DevSpace
brew install devspace

# Initialize in your project
devspace init

# Start the dev loop
devspace dev

# Open a shell in the running container
devspace enter

# Deploy to production with a profile
devspace deploy -p production

# Clean up resources
devspace purge
§05

Related on TokRepo

§06

Common pitfalls

  • DevSpace requires a running Kubernetes cluster. For local development, use minikube, kind, or Docker Desktop with Kubernetes enabled before running devspace dev.
  • File sync watches for changes and copies files into the container. Large repositories with many files can cause high CPU usage during the initial sync. Use the excludePaths option to skip node_modules, .git, and build artifacts.
  • The devspace init wizard detects your project type automatically, but the generated configuration may need manual tuning for monorepo setups or projects with multiple services.

Frequently Asked Questions

Does DevSpace work with any Kubernetes cluster?+

Yes. DevSpace works with any standard Kubernetes cluster including minikube, kind, EKS, GKE, AKS, and self-managed clusters. It uses your current kubectl context, so point your kubeconfig to the target cluster and DevSpace connects automatically.

How is DevSpace different from Skaffold?+

Both tools automate the build-deploy-watch loop for Kubernetes. DevSpace focuses more on the developer experience with built-in file sync, terminal UI, and profile-based configuration. Skaffold integrates more tightly with Google Cloud. DevSpace supports hot-reloading via file sync without image rebuilds, while Skaffold primarily uses image rebuilds.

Can DevSpace deploy Helm charts?+

Yes. DevSpace natively supports Helm charts, Kustomize overlays, kubectl manifests, and its own component chart format. You specify the deployment method in devspace.yaml and DevSpace handles the rest.

Does file sync work with compiled languages?+

File sync copies source files into the container. For compiled languages like Go or Java, you still need a build step inside the container. DevSpace supports configuring a restart command that triggers after synced files change, so you can automate recompilation.

Can I use DevSpace in CI/CD pipelines?+

Yes. DevSpace has a non-interactive mode suitable for CI/CD. Use `devspace deploy` instead of `devspace dev` in pipelines. The profile system lets you define separate configurations for CI environments with different image tags, registries, and resource limits.

Citations (3)

Discussion

Sign in to join the discussion.
No comments yet. Be the first to share your thoughts.

Related Assets