Skip to main content
Version: 5.12

Quickstart

This is a 2-minute quickstart guide. For additional details and explanations, see the Getting Started Guide.

1. Download CLI#

DevSpace is a client-only binary. It is super lightweight, does not require any server-side component, and it does not have any dependencies.

npm install -g devspace

Alternatively, you can simply download the binary for your platform from the GitHub Releases page and add this binary to your PATH.

2. Choose a Project#

You can either deploy one of your own projects or alternatively, checkout one of our demo applications using git:

git clone https://github.com/loft-sh/devspace-quickstart-nodejs
cd devspace-quickstart-nodejs

3. Initialize Project#

devspace init

Choose Component Chart and Based on this existing Dockerfile for quickstart projects.

4. Start Development#

devspace use namespace my-namespace # will be created by DevSpace if it does not exist
devspace dev

As soon as the terminal opens up, you can start your application:

npm start
# or: npm run dev
# or: yarn start

Hot Reloading: Now, change a file on your local computer and re-run the application inside the container terminal.

Port Forwarding: You can access your application via localhost:PORT if your port is specified in dev.ports within devspace.yaml.

When you're done testing development, type exit or hit Ctrl-d to exit the container terminal.

5. Deploy Project#

To build your container image and deploy a clean version of this project, run:

devspace use namespace my-namespace # will be created by DevSpace if it does not exist
devspace deploy -p production

6. Cleanup#

To purge your deployment from the cluster, run:

devspace purge