---
name: "buf-dep-prune"
section: "1"
platform: "linux"
package: "buf"
version: "1.75.0-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux"]
url: "https://new.carta.tech/buf-dep-prune"
---

# buf-dep-prune(1)

Prune unused dependencies from a buf.lock

## NAME

buf-dep-prune - Prune unused dependencies from a buf.lock

## SYNOPSIS

**buf dep prune  \[flags\]**

## DESCRIPTION

The first argument is the directory of your buf.yaml configuration file. Defaults to "." if no argument is specified.

## OPTIONS

**-h**, **--help**\[=false\]\
 	help for prune

## OPTIONS INHERITED FROM PARENT COMMANDS

**--debug**\[=false\]\
 	Turn on debug logging (env BUF\_DEBUG)

**--log-format**="color"\
 	The log format text,color,json ⟨env BUF\_LOG\_FORMAT⟩

**--timeout**=0s\
 	The duration until timing out, setting it to 0 means no timeout (env BUF\_TIMEOUT)

## SEE ALSO

**[buf-dep(1)](/buf-dep/1.md)**

## HISTORY

2026-10-22 Auto generated by spf13/cobra
