File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -24,6 +24,7 @@ import {
2424 getLocalUserInfo ,
2525 getLoggedClientOrThrow ,
2626 outputJobLog ,
27+ printJsonToStdout ,
2728} from '../../lib/utils.js' ;
2829
2930const TEMP_ZIP_FILE_NAME = 'temp_file.zip' ;
@@ -49,6 +50,8 @@ export class ActorsPushCommand extends ApifyCommand<typeof ActorsPushCommand> {
4950 `larger projects upload as ZIP file.\n` +
5051 `Use --force to override newer remote versions.` ;
5152
53+ static override enableJsonFlag = true ;
54+
5255 static override flags = {
5356 version : Flags . string ( {
5457 char : 'v' ,
@@ -331,6 +334,11 @@ Skipping push. Use --force to override.`,
331334
332335 build = ( await apifyClient . build ( build . id ) . get ( ) ) ! ;
333336
337+ if ( this . flags . json ) {
338+ printJsonToStdout ( build ) ;
339+ return ;
340+ }
341+
334342 link ( {
335343 message : 'Actor build detail' ,
336344 url : `https://console.apify.com${ redirectUrlPart } /actors/${ build . actId } #/builds/${ build . buildNumber } ` ,
You can’t perform that action at this time.
0 commit comments