To see help information and a list of all flags for any command, simply use the
The project-specific commands require that your project is already initialized, i.e. there is a
devspace.yaml config file.
This command deploys the project and then starts the development mode:
This command deploys the project to Kubernetes:
Run this command to just build, tag and push all images to a registry without deploying the project:
To get a list of all ports that are being forwarded as defined in
This command lists all available command:
Use this command to run one of the custom commands:
This command lists all available profiles:
Use this command to switch to a different profile:
-p flag to just run a single command with a different profile without switching it permanently:
Use this command to print the config after a profile has been applied:
This command lists all variables as well as their values:
To change the value of a variable, run:
Use this command to reset all variables, i.e. delete variable values from the variable cache:
Use this command to print the config after all variables have been replaced:
Use this command to update git-based dependencies:
This command performs a
git fetch && git pull for all git-based dependencies.
Use this command to clear the dependencies cache:
This command opens the current project in the browser:
Must be deployed
This command requires that the project has already been deployed.
This command opens the localhost development UI:
The localhost development UI starts automatically in the background when running:
This command streams logs of a container:
This command opens an interactive terminal session for a container:
To run just a single command inside a container, use:
This command starts an on-demand file synchronization between localhost and a container:
If file sync is configured in your project, it automatically starts when running:
This command sets a different namespace as default namespace for the current kube-context/cluster:
Not for Spaces
devspace use namespace does not work for Loft spaces. Use
devspace use space instead.
This command creates a new space using Loft:
This command switches to a different spaces:
This command switches to a different kube-context/cluster:
When using Docker for image building, disk space on your local computer can get sparse after a lot of Docker builds. DevSpace provides a convenient command to clean up all images that were built with your local Docker daemon using DevSpace. This command does not remove any pushed images remotely and just clears local images and space.
In order to clean up all created images locally, simply run the following command in your project folder:
In addition, it also makes sense to prune your Docker environment to free additional space with the following command:
This command will remove:
- all stopped containers
- all networks not used by at least one container
- all dangling images
- all build cache
These commands should free up a lot of space for new image builds to come.