Skip to content

Commit be5d2dd

Browse files
committed
Updated stream/setup wrangler output to reflect pipelines binding now points to stream id
1 parent ffc808f commit be5d2dd

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

packages/wrangler/src/pipelines/cli/sinks/create.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,11 @@ export const pipelinesSinksCreateCommand = createCommand({
127127
"--catalog-token is required for r2-data-catalog sinks"
128128
);
129129
}
130+
if (args.format === "json") {
131+
throw new CommandLineArgsError(
132+
"r2-data-catalog sinks only support parquet format, not JSON"
133+
);
134+
}
130135
}
131136
},
132137
async handler(args, { config }) {

packages/wrangler/src/pipelines/cli/streams/utils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,7 +222,7 @@ export async function displayUsageExamples(
222222
(customBindingName) => ({
223223
pipelines: [
224224
{
225-
pipeline: stream.name,
225+
pipeline: stream.id,
226226
binding: customBindingName ?? bindingName,
227227
},
228228
],

0 commit comments

Comments
 (0)