Skip to content

Commit f24abb6

Browse files
committed
feat: Adding self-hosted to project init
1 parent 471fc85 commit f24abb6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

templates/cli/lib/commands/init.js.twig

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ const { accountGet } = require("./account");
2323
const { loginCommand } = require("./generic");
2424
const { sdkForConsole } = require("../sdks");
2525

26-
const initProject = async ({ organizationId, projectId, projectName } = {}) => {
26+
const initProject = async ({ organizationId, projectId, projectName, selfHosted } = {}) => {
2727
let response = {};
2828

2929
try {
@@ -38,7 +38,7 @@ const initProject = async ({ organizationId, projectId, projectName } = {}) => {
3838
});
3939
} catch (e) {
4040
log('You must login first')
41-
await loginCommand();
41+
await loginCommand({selfHosted});
4242
}
4343
let answers = {};
4444

@@ -269,6 +269,7 @@ const init = new Command("init")
269269
.option("--organizationId <organizationId>", "{{ spec.title|caseUcfirst }} organization ID")
270270
.option("--projectId <projectId>", "{{ spec.title|caseUcfirst }} project ID")
271271
.option("--projectName <projectName>", "{{ spec.title|caseUcfirst }} project ID")
272+
.option(`-sh, --self-hosted`, `Flag for enabling custom endpoint for self hosted instances for non-logged in users`)
272273
.action(actionRunner(initProject));
273274

274275
init

0 commit comments

Comments
 (0)