diff --git a/cmd/goat/blob.go b/cmd/goat/blob.go index e9422089..dc10cc73 100644 --- a/cmd/goat/blob.go +++ b/cmd/goat/blob.go @@ -28,6 +28,10 @@ var cmdBlob = &cli.Command{ Aliases: []string{"o"}, Usage: "directory to store blobs in", }, + &cli.StringFlag{ + Name: "pds-host", + Usage: "URL of the PDS to export blobs from (overrides DID doc)", + }, }, Action: runBlobExport, }, @@ -73,9 +77,14 @@ func runBlobExport(cctx *cli.Context) error { return err } + pdsHost := cctx.String("pds-host") + if pdsHost == "" { + pdsHost = ident.PDSEndpoint() + } + // create a new API client to connect to the account's PDS xrpcc := xrpc.Client{ - Host: ident.PDSEndpoint(), + Host: pdsHost, } if xrpcc.Host == "" { return fmt.Errorf("no PDS endpoint for identity")