Budibase is an open-source low-code platform for creating internal apps in minutes. Supports PostgreSQL, MySQL, MSSQL, MongoDB, Rest API, Docker, K8s 🚀
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

41 lines
1.2 KiB

const handler = require("./initHandler")
module.exports = {
command: "init [dir] [database] [clientId] [couchDbUrl]",
desc: "Initialise Budibase. Run this first to setup your local Budibase",
builder: yargs => {
yargs.positional("dir", {
type: "string",
describe:
"your apps directory - directory will be created if it does not exist",
default: "~/.budibase",
alias: "d",
})
yargs.positional("database", {
type: "string",
describe: "use a local (PouchDB) or remote (CouchDB) database",
alias: "b",
default: "local",
choices: ["local", "remote"],
})
yargs.positional("clientId", {
type: "string",
describe: "used to determine the name of the global databse",
alias: "c",
default: "new",
})
yargs.positional("couchDbUrl", {
type: "string",
describe: "connection string for couch db, format: https://username:password@localhost:5984",
alias: "x",
default: "",
})
yargs.positional("quiet", {
type: "boolean",
describe: "flag - if set, then run in quiet mode - use all defaults",
alias: "q",
default: false,
})
},
handler,
}