fleet: Add --fields and --json options

Change-type: minor
Signed-off-by: Matthew Yarmolinsky <matthew-timothy@balena.io>
This commit is contained in:
Matthew Yarmolinsky 2022-07-20 13:45:39 +00:00
parent 6ee8d8a899
commit efe6fd22ce
2 changed files with 9 additions and 2 deletions

View File

@ -367,6 +367,14 @@ fleet name, slug (preferred), or numeric ID (deprecated)
open fleet dashboard page
#### --fields FIELDS
only show provided fields (comma-separated)
#### -j, --json
output in json format
## fleet create &#60;name&#62;
Create a new balena fleet.

View File

@ -24,7 +24,6 @@ import * as cf from '../../utils/common-flags';
import * as ca from '../../utils/common-args';
import { getBalenaSdk, stripIndent } from '../../utils/lazy';
import { applicationIdInfo } from '../../utils/messages';
import { isV14 } from '../../utils/version';
import type { DataOutputOptions } from '../../framework';
interface FlagsDef extends DataOutputOptions {
@ -60,7 +59,7 @@ export default class FleetCmd extends Command {
default: false,
description: 'open fleet dashboard page',
}),
...(isV14() ? cf.dataOutputFlags : {}),
...cf.dataOutputFlags,
};
public static authenticated = true;