51 lines
1.4 KiB
JavaScript
51 lines
1.4 KiB
JavaScript
const Command = require("../structures/Command")
|
|
const { CommandWords } = require("../constants")
|
|
const { init } = require("./init")
|
|
const { start } = require("./start")
|
|
const { stop } = require("./stop")
|
|
const { status } = require("./status")
|
|
const { update } = require("./update")
|
|
const { generateUser } = require("./genUser")
|
|
const { watchPlugins } = require("./watch")
|
|
|
|
const command = new Command(`${CommandWords.HOSTING}`)
|
|
.addHelp("Controls self hosting on the Budibase platform.")
|
|
.addSubOption(
|
|
"--init [type]",
|
|
"Configure a self hosted platform in current directory, type can be unspecified, 'quick' or 'single'.",
|
|
init
|
|
)
|
|
.addSubOption(
|
|
"--start",
|
|
"Start the configured platform in current directory.",
|
|
start
|
|
)
|
|
.addSubOption(
|
|
"--status",
|
|
"Check the status of currently running services.",
|
|
status
|
|
)
|
|
.addSubOption(
|
|
"--stop",
|
|
"Stop the configured platform in the current directory.",
|
|
stop
|
|
)
|
|
.addSubOption(
|
|
"--update",
|
|
"Update the Budibase images to the latest version.",
|
|
update
|
|
)
|
|
.addSubOption(
|
|
"--watch-plugin-dir [directory]",
|
|
"Add plugin directory watching to a Budibase install.",
|
|
watchPlugins
|
|
)
|
|
.addSubOption(
|
|
"--gen-user",
|
|
"Create an admin user automatically as part of first start.",
|
|
generateUser
|
|
)
|
|
.addSubOption("--single", "Specify this with init to use the single image.")
|
|
|
|
exports.command = command
|