Skip to content

Commit 62144b6

Browse files
authored
Merge pull request #917 from appwrite/fix-init-bugs
Fix: CLI init project
2 parents 954f3d6 + 5a8d80b commit 62144b6

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,7 @@ const initProject = async ({ organizationId, projectId, projectName } = {}) => {
110110
answers = await inquirer.prompt(questionsInitProjectAutopull);
111111
if(answers.autopull) {
112112
cliConfig.all = true;
113+
cliConfig.force = true;
113114
await pullResources();
114115
} else {
115116
log("You can run 'appwrite pull all' to synchronize all of your existing resources.");

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ const pullResources = async () => {
2727
if (cliConfig.all) {
2828
for (let action of Object.values(actions)) {
2929
cliConfig.all = true;
30-
await action({});
30+
await action({ returnOnZero: true });
3131
}
3232
} else {
3333
const answers = await inquirer.prompt(questionsPullResources[0]);

0 commit comments

Comments
 (0)