balena-cli
Version:
The official balena Command Line Interface
54 lines (50 loc) • 2.06 kB
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
const core_1 = require("@oclif/core");
const lazy_1 = require("../../utils/lazy");
class FleetCreateCmd extends core_1.Command {
async run() {
const { args: params, flags: options } = await this.parse(FleetCreateCmd);
await (await Promise.resolve().then(() => require('../../utils/application-create'))).applicationCreateBase('fleet', options, params);
}
}
FleetCreateCmd.description = (0, lazy_1.stripIndent) `
Create a fleet.
Create a new balena fleet.
You can specify the organization the fleet should belong to using
the \`--organization\` option. The organization's handle, not its name,
should be provided. Organization handles can be listed with the
\`balena organization list\` command.
The fleet's default device type is specified with the \`--type\` option.
The \`balena device-type list\` command can be used to list the available
device types.
Interactive dropdowns will be shown for selection if no device type or
organization is specified and there are multiple options to choose from.
If there is a single option to choose from, it will be chosen automatically.
This interactive behavior can be disabled by explicitly specifying a device
type and organization.
`;
FleetCreateCmd.examples = [
'$ balena fleet create MyFleet',
'$ balena fleet create MyFleet --organization mmyorg',
'$ balena fleet create MyFleet -o myorg --type raspberry-pi',
];
FleetCreateCmd.args = {
name: core_1.Args.string({
description: 'fleet name',
required: true,
}),
};
FleetCreateCmd.flags = {
organization: core_1.Flags.string({
char: 'o',
description: 'handle of the organization the fleet should belong to',
}),
type: core_1.Flags.string({
char: 't',
description: 'fleet device type (Check available types with `balena device-type list`)',
}),
};
FleetCreateCmd.authenticated = true;
exports.default = FleetCreateCmd;
//# sourceMappingURL=create.js.map
;