Skip to content

Commit 57ae082

Browse files
committed
fix(status): write config file after the alias is set [sb-nuts]
1 parent 71bb2cd commit 57ae082

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/commands/force/org/status.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ export class OrgStatusCommand extends SfdxCommand {
7474
if (this.flags.setalias) {
7575
const stateAggregator = await StateAggregator.getInstance();
7676
stateAggregator.aliases.set(this.flags.setalias, results.sandboxRes.authUserName);
77+
await stateAggregator.aliases.write();
7778
this.logger.debug('Set Alias: %s result: %s', this.flags.setalias, results.sandboxRes.authUserName);
7879
}
7980
if (this.flags.setdefaultusername) {

0 commit comments

Comments
 (0)