@@ -270,6 +270,7 @@ function createCli(): Command {
270270 . option ( "--debug" , "Show debug output including API requests/responses" )
271271 . option ( "--local" , "Use local Tinybird container" )
272272 . option ( "--branch" , "Use Tinybird cloud with branches" )
273+ . option ( "--last-partition" , "Copy the last partition of production data when creating a branch" )
273274 . action ( async ( options ) => {
274275 if ( options . debug ) {
275276 process . env . TINYBIRD_DEBUG = "1" ;
@@ -286,6 +287,7 @@ function createCli(): Command {
286287 const result = await runBuild ( {
287288 dryRun : options . dryRun ,
288289 devModeOverride,
290+ lastPartition : options . lastPartition ,
289291 } ) ;
290292
291293 const { build, deploy, branchInfo } = result ;
@@ -677,6 +679,7 @@ function createCli(): Command {
677679 . description ( "Watch for changes and sync with Tinybird" )
678680 . option ( "--local" , "Use local Tinybird container" )
679681 . option ( "--branch" , "Use Tinybird cloud with branches" )
682+ . option ( "--last-partition" , "Copy the last partition of production data when creating a branch" )
680683 . action ( async ( options ) => {
681684 // Determine devMode override
682685 let devModeOverride : DevMode | undefined ;
@@ -689,6 +692,7 @@ function createCli(): Command {
689692 try {
690693 const controller = await runDev ( {
691694 devModeOverride,
695+ lastPartition : options . lastPartition ,
692696 onLoginComplete : ( info ) => {
693697 console . log ( "\nAuthentication successful!" ) ;
694698 if ( info . workspaceName ) {
0 commit comments