@@ -453,8 +453,9 @@ blueprint
453453 } ) ;
454454
455455blueprint
456- . command ( "create <name> " )
456+ . command ( "create" )
457457 . description ( "Create a new blueprint" )
458+ . requiredOption ( "--name <name>" , "Blueprint name (required)" )
458459 . option ( "--dockerfile <content>" , "Dockerfile contents" )
459460 . option ( "--dockerfile-path <path>" , "Dockerfile path" )
460461 . option ( "--system-setup-commands <commands...>" , "System setup commands" )
@@ -470,33 +471,9 @@ blueprint
470471 "-o, --output [format]" ,
471472 "Output format: text|json|yaml (default: text)" ,
472473 )
473- . action ( async ( name , options ) => {
474+ . action ( async ( options ) => {
474475 const { createBlueprint } = await import ( "./commands/blueprint/create.js" ) ;
475- await createBlueprint ( { name, ...options } ) ;
476- } ) ;
477-
478- blueprint
479- . command ( "preview <name>" )
480- . description ( "Preview blueprint before creation" )
481- . option ( "--dockerfile <content>" , "Dockerfile contents" )
482- . option ( "--system-setup-commands <commands...>" , "System setup commands" )
483- . option (
484- "--resources <size>" ,
485- "Resource size (X_SMALL, SMALL, MEDIUM, LARGE, X_LARGE, XX_LARGE)" ,
486- )
487- . option ( "--architecture <arch>" , "Architecture (arm64, x86_64)" )
488- . option ( "--available-ports <ports...>" , "Available ports" )
489- . option ( "--root" , "Run as root" )
490- . option ( "--user <user:uid>" , "Run as this user (format: username:uid)" )
491- . option (
492- "-o, --output [format]" ,
493- "Output format: text|json|yaml (default: text)" ,
494- )
495- . action ( async ( name , options ) => {
496- const { previewBlueprint } = await import (
497- "./commands/blueprint/preview.js"
498- ) ;
499- await previewBlueprint ( { name, ...options } ) ;
476+ await createBlueprint ( options ) ;
500477 } ) ;
501478
502479blueprint
0 commit comments