Skip to content

Commit

Permalink
Update to org create scratch
Browse files Browse the repository at this point in the history
  • Loading branch information
Stian-Schikora committed Feb 19, 2024
1 parent 02b1eee commit 2fd5682
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,10 @@ All notable changes to the "dxmate" extension will be documented in this file.

The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/)

## [2.0.0] - TBD
## [2.0.9] - TBD
## Changed
- Converted package dependency install to use sf powerscripts instead of deprecated sfpowerkit
- Updated scratch create to new sf org create scratch syntax

## [2.0.8] - 2023-12-14
## Changed
Expand Down
8 changes: 4 additions & 4 deletions src/commands/commands.ts
Original file line number Diff line number Diff line change
Expand Up @@ -46,11 +46,11 @@ function handleExistingAliases(scratchName: string, parentJob: Job) {
}

export function createScratchOrgJob(scratchName: string, durationDays: string) {
const cmd = 'sf force org create ' +
const cmd = 'sf org create scratch ' +
"-f ./config/project-scratch-def.json " +
"--setalias " + scratchName +
" --durationdays " + durationDays +
" --setdefaultusername";
"--alias " + scratchName +
" --duration-days " + durationDays +
" --set-default";

let shellJob = new Job('Create New Scratch Org');
const onHandlingFinished = () => {
Expand Down

0 comments on commit 2fd5682

Please sign in to comment.