capabilities.work

Update a file-based stack

One step with Portainer. We can help you get access.

Get something done

Update a file-based stack

Works with AI assistants

Use Portainer: its PortainerCE Stacks API lets you update a file-based stack in a single step (PUT /stacks/{id}). Portainer also has an MCP server, so an AI assistant like Claude or ChatGPT can do it for you. capabilities.work can help you get signed up and connected.

  • How do I redeploy a file-based stack with a new Compose file?
  • Can I prune services when updating a stack?
Say it to your AI assistant
  • Update stack {id} on endpoint {endpointId} with file {StackFileContent}.
  • Redeploy file-based stack {id} on {endpointId} with Prune {Prune}.
For your developer

PUT /stacks/{id} in PortainerCE Stacks API. Full spec on APIs.io.