The VS Code extension for Dagger. Built for developers who use Dagger and VS Code together. Run Dagger commands, edit workflows, and manage projects - without leaving your editor.
- 🌲 Functions Explorer: Browse and execute Dagger functions directly in VS Code. View arguments and details in a tree view.
- ⚡ Function Execution: Run Dagger functions with validated arguments. Output is shown in the integrated terminal.
- 📝 Save as VS Code Tasks: Convert function calls into reusable tasks. Automatically updates
.vscode/tasks.json
. - 🐚 Dagger Shell: Open a terminal with Dagger Shell for interactive command execution.
- 🌐 Expose Services: Automatically expose services from Dagger modules for easy access (with the option to save as a VS Code Task).
- 📤 Export Files and Directories: Save files and directories from Dagger modules to your local workspace (with the option to save as a VS Code Task).
vscode-dagger-function-snippets.mp4
- 🛠️ MCP Module Management: Interactively add a Dagger Module as an MCP server and register with VS Code.
vscode-dagger-ai-docs.mp4
- 🏗️ Project Initialization: Initialize new Dagger projects or work with existing ones. Includes an interactive setup prompt.
- 🛠️ Development Workflow: Use
dagger develop
, install modules, and run commands with proper environment setup from the IDE. - 🌐 GraphQL Server: Automatically start a GraphQL server to explore, allowing you to interact with extending Dagger functionality.
Install, update, or uninstall the Dagger CLI with one click. Supports macOS, Linux, and Windows.
- VS Code 1.101.0 or higher
- Docker Desktop or a container runtime installed and running (e.g., Podman, nerdctl, or other Docker-like systems)
- Install the extension from the VS Code Marketplace.
- Open a workspace folder.
- Follow the installation guide if prompted.
- Open the Dagger panel.
- Initialize a project or browse functions.
- Execute functions with one click.
- Save function calls as tasks for reuse.
- Clear cache using the "Dagger: Clear Cache" command when needed.
Access the following commands from the Command Palette (Ctrl+Shift+P
or Cmd+Shift+P
):
- Dagger: Initialize Project - Create a new Dagger project
- Dagger: Call Function - Execute a Dagger function
- Dagger: Clear Cache - Remove cached function data
- Dagger: View Functions - Browse available functions
- Dagger: Install CLI - Install the Dagger CLI
- Dagger: Update CLI - Update the Dagger CLI to the latest version
- Dagger: Uninstall CLI - Uninstall the Dagger CLI
- Dagger: Add MCP Module - Register a Dagger Module as an MCP server
- Dagger: Develop Local Modules - Start the Dagger development workflow
- Dagger: Save as Task - Save a function call as a reusable VS Code task
- Dagger: Install Module - Install a Dagger module (local or remote)
- Dagger: Open Shell - Open a terminal with Dagger Shell
- Dagger: Start GraphQL Server - Start a GraphQL server for exploring Dagger functionality
- Dagger: Expose Service - Expose a service from a Dagger module
- Dagger: Export File or Directory - Save files from Dagger modules to your local workspace
We welcome contributions! See the Contributing Guide.
# Clone the repository
git clone https://github.com/jasonmccallister/vscode-dagger
cd vscode-dagger
# Install dependencies
yarn install
# Open in VS Code
code .
# Launch Extension Development Host
Press F5
See CHANGELOG.md for release notes.
- Bug Reports: Create an issue
- Feature Requests: Request a feature
- Discussions: Join the conversation
Licensed under the MIT License. See LICENSE.
Made with ❤️ for the Dagger community