@@ -32,6 +32,7 @@ const DevCommandOptions = CommonCommandOptions.extend({
3232 debugOtel : z . boolean ( ) . default ( false ) ,
3333 config : z . string ( ) . optional ( ) ,
3434 projectRef : z . string ( ) . optional ( ) ,
35+ branch : z . string ( ) . optional ( ) . default ( "branch" ) ,
3536 skipUpdateCheck : z . boolean ( ) . default ( false ) ,
3637 skipPlatformNotifications : z . boolean ( ) . default ( false ) ,
3738 envFile : z . string ( ) . optional ( ) ,
@@ -57,6 +58,11 @@ export function configureDevCommand(program: Command) {
5758 "-p, --project-ref <project ref>" ,
5859 "The project ref. Required if there is no config file."
5960 )
61+ . option (
62+ "-b, --branch <branch>" ,
63+ "The dev branch to use. If not provided, we'll use the default branch."
64+ "default" ,
65+ )
6066 . option (
6167 "--env-file <env file>" ,
6268 "Path to the .env file to use for the dev session. Defaults to .env in the project directory."
@@ -164,8 +170,7 @@ export async function devCommand(options: DevCommandOptions) {
164170 ) ;
165171 } else {
166172 logger . log (
167- `${ chalkError ( "X Error:" ) } You must login first. Use the \`login\` CLI command.\n\n${
168- authorization . error
173+ `${ chalkError ( "X Error:" ) } You must login first. Use the \`login\` CLI command.\n\n${ authorization . error
169174 } `
170175 ) ;
171176 }
@@ -201,9 +206,9 @@ async function startDev(options: StartDevOptions) {
201206 const notificationPromise = options . skipPlatformNotifications
202207 ? undefined
203208 : fetchPlatformNotification ( {
204- apiClient : new CliApiClient ( options . login . auth . apiUrl , options . login . auth . accessToken ) ,
205- projectRef : options . projectRef ,
206- } ) ;
209+ apiClient : new CliApiClient ( options . login . auth . apiUrl , options . login . auth . accessToken ) ,
210+ projectRef : options . projectRef ,
211+ } ) ;
207212
208213 await printStandloneInitialBanner ( true , options . profile ) ;
209214
@@ -274,7 +279,7 @@ async function startDev(options: StartDevOptions) {
274279
275280 devInstance = await bootDevSession ( watcher . config ) ;
276281
277- const waitUntilExit = async ( ) => { } ;
282+ const waitUntilExit = async ( ) => { } ;
278283
279284 return {
280285 watcher,
0 commit comments