Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@W-15803283@ - BREAKING CHANGE: Migrating from sfdx to sf #316

Merged
merged 18 commits into from
Jun 4, 2024
Merged
Show file tree
Hide file tree
Changes from 6 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
47 changes: 23 additions & 24 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ $ npm install -g @salesforce/commerce
$ sfdx COMMAND
running command...
$ sfdx (-v|--version|version)
@salesforce/commerce/250.1.0 darwin-x64 node-v18.16.1
@salesforce/commerce/250.1.0 darwin-arm64 node-v18.20.1
$ sfdx --help [COMMAND]
USAGE
$ sfdx COMMAND
Expand Down Expand Up @@ -177,7 +177,7 @@ OPTIONS
this command invocation

EXAMPLE
sfdx commerce:examples:convert -f store-scratch-def.json
sf commerce:examples:convert -f store-scratch-def.json
```

_See code: [src/commands/commerce/examples/convert.ts](https://github.com/forcedotcom/commerce-on-lightning/blob/v250.1.0/src/commands/commerce/examples/convert.ts)_
Expand Down Expand Up @@ -211,8 +211,8 @@ OPTIONS
this command invocation

EXAMPLES
sfdx commerce:extension:map --registered-extension-name test-extension-name --store-name test-store-name
sfdx commerce:extension:map --registered-extension-name test-extension-name --store-id test-store-id
sf commerce:extension:map --registered-extension-name test-extension-name --store-name test-store-name
sf commerce:extension:map --registered-extension-name test-extension-name --store-id test-store-id
```

_See code: [src/commands/commerce/extension/map.ts](https://github.com/forcedotcom/commerce-on-lightning/blob/v250.1.0/src/commands/commerce/extension/map.ts)_
Expand All @@ -239,7 +239,7 @@ OPTIONS
this command invocation

EXAMPLE
sfdx commerce:extension:getEPN
sf commerce:extension:getEPN
```

_See code: [src/commands/commerce/extension/points/list.ts](https://github.com/forcedotcom/commerce-on-lightning/blob/v250.1.0/src/commands/commerce/extension/points/list.ts)_
Expand Down Expand Up @@ -290,7 +290,7 @@ OPTIONS
[default: warn] logging level for this command invocation

EXAMPLE
sfdx commerce:extension:register --registered-extension-name test-extension-name --extension-point-name test-epn
sf commerce:extension:register --registered-extension-name test-extension-name --extension-point-name test-epn
--apex-class-name test-apex-class
```

Expand Down Expand Up @@ -325,8 +325,8 @@ OPTIONS
this command invocation

EXAMPLES
sfdx commerce:extension:unmap --registered-extension-name test-extension-name --store-name test-store-name
sfdx commerce:extension:unmap --registered-extension-name test-extension-name --store-id test-store-id
sf commerce:extension:unmap --registered-extension-name test-extension-name --store-name test-store-name
sf commerce:extension:unmap --registered-extension-name test-extension-name --store-id test-store-id
```

_See code: [src/commands/commerce/extension/unmap.ts](https://github.com/forcedotcom/commerce-on-lightning/blob/v250.1.0/src/commands/commerce/extension/unmap.ts)_
Expand Down Expand Up @@ -362,12 +362,12 @@ OPTIONS
this command invocation

EXAMPLES
sfdx commerce:files:copy -y --copySourcePath "~/myexamplefilesdirectory" --filestocopy "file1.txt,file2.txt"
sf commerce:files:copy -y --copySourcePath "~/myexamplefilesdirectory" --filestocopy "file1.txt,file2.txt"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

With sf commands, the convention is to not use colons (sf commerce files copy)

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes, but as the sf command is taking care of this conversion haven't updated the commands as we might have to also update the structure at the file level.

--dirstocopy "dir1,dir2,dir3"
sfdx commerce:files:copy --prompt --copySourcePath "~/myexamplefilesdirectory" --filestocopy "file1.txt,file2.txt"
sf commerce:files:copy --prompt --copySourcePath "~/myexamplefilesdirectory" --filestocopy "file1.txt,file2.txt"
--dirstocopy "dir1,dir2,dir3"
sfdx commerce:files:copy --copySourcePath "~/myexamplefilesdirectory" --filestocopy "file1.txt,file2.txt" --dirstocopy
"dir1,dir2,dir3"
sf commerce:files:copy --copySourcePath "~/myexamplefilesdirectory" --filestocopy "file1.txt,file2.txt" --dirstocopy
"dir1,dir2,dir3"
```

_See code: [src/commands/commerce/files/copy.ts](https://github.com/forcedotcom/commerce-on-lightning/blob/v250.1.0/src/commands/commerce/files/copy.ts)_
Expand Down Expand Up @@ -398,7 +398,7 @@ OPTIONS
this command invocation

EXAMPLE
sfdx commerce:ordermanagement:quickstart:setup
sf commerce:ordermanagement:quickstart:setup
```

_See code: [src/commands/commerce/ordermanagement/quickstart/setup.ts](https://github.com/forcedotcom/commerce-on-lightning/blob/v250.1.0/src/commands/commerce/ordermanagement/quickstart/setup.ts)_
Expand Down Expand Up @@ -430,7 +430,7 @@ OPTIONS
this command invocation

EXAMPLE
sfdx commerce:payments:quickstart:setup -p Stripe -n 1commerce
sf commerce:payments:quickstart:setup -p Stripe -n 1commerce
```

_See code: [src/commands/commerce/payments/quickstart/setup.ts](https://github.com/forcedotcom/commerce-on-lightning/blob/v250.1.0/src/commands/commerce/payments/quickstart/setup.ts)_
Expand Down Expand Up @@ -481,7 +481,7 @@ OPTIONS
this command invocation

EXAMPLE
sfdx commerce:products:import --store-name test-store
sf commerce:products:import --store-name test-store
```

_See code: [src/commands/commerce/products/import.ts](https://github.com/forcedotcom/commerce-on-lightning/blob/v250.1.0/src/commands/commerce/products/import.ts)_
Expand Down Expand Up @@ -526,7 +526,7 @@ OPTIONS
this command invocation

EXAMPLE
sfdx commerce:scratchorg:create --username [email protected] --targetdevhubusername [email protected]
sf commerce:scratchorg:create --username [email protected] --targetdevhubusername [email protected]
```

_See code: [src/commands/commerce/scratchorg/create.ts](https://github.com/forcedotcom/commerce-on-lightning/blob/v250.1.0/src/commands/commerce/scratchorg/create.ts)_
Expand Down Expand Up @@ -556,7 +556,7 @@ OPTIONS
this command invocation

EXAMPLE
sfdx commerce:store:search:start -n storeName
sf commerce:store:search:start -n storeName
// Finds a store and indexes it
```

Expand Down Expand Up @@ -609,7 +609,7 @@ OPTIONS
[default: warn] logging level for this command invocation

EXAMPLE
sfdx commerce:store:create --store-name test-store
sf commerce:store:create --store-name test-store
```

_See code: [src/commands/commerce/store/create.ts](https://github.com/forcedotcom/commerce-on-lightning/blob/v250.1.0/src/commands/commerce/store/create.ts)_
Expand Down Expand Up @@ -650,7 +650,7 @@ OPTIONS
this command invocation

EXAMPLE
sfdx commerce:store:display --store-name test-store
sf commerce:store:display --store-name test-store
```

_See code: [src/commands/commerce/store/display.ts](https://github.com/forcedotcom/commerce-on-lightning/blob/v250.1.0/src/commands/commerce/store/display.ts)_
Expand All @@ -674,8 +674,7 @@ OPTIONS
-v, --targetdevhubusername=targetdevhubusername username or alias for the dev hub
org; overrides default dev hub org

--all View All stores using sfdx
force:org:open
--all View All stores using sf org open
_ui/networks/setup/SetupNetworksPage
page

Expand All @@ -688,7 +687,7 @@ OPTIONS
this command invocation

EXAMPLES
sfdx commerce:store:open --store-name test-store
sf commerce:store:open --store-name test-store
sfdx commerce:store:open --all
```

Expand Down Expand Up @@ -724,7 +723,7 @@ OPTIONS
[default: warn] logging level for this command invocation

EXAMPLE
sfdx commerce:store:quickstart:create --templatename 'b2c-lite-storefront'
sf commerce:store:quickstart:create --templatename 'b2c-lite-storefront'
```

_See code: [src/commands/commerce/store/quickstart/create.ts](https://github.com/forcedotcom/commerce-on-lightning/blob/v250.1.0/src/commands/commerce/store/quickstart/create.ts)_
Expand Down Expand Up @@ -769,7 +768,7 @@ OPTIONS
[default: warn] logging level for this command invocation

EXAMPLE
sfdx commerce:store:quickstart:setup --definitionfile store-scratch-def.json
sf commerce:store:quickstart:setup --definitionfile store-scratch-def.json
```

_See code: [src/commands/commerce/store/quickstart/setup.ts](https://github.com/forcedotcom/commerce-on-lightning/blob/v250.1.0/src/commands/commerce/store/quickstart/setup.ts)_
Expand Down
2 changes: 1 addition & 1 deletion messages/extension.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"nonexistent": "Can't find extension with registered extension name:",
"previousEPN": "Unmapped the extension",
"undefinedName": "Undefined webstore ID and webstore name. Enter either '-i <webstoreId>' or '-n <webstoreName>'.",
"errMultipleStoreWithSameName": "More than one webstore found with the given name. To see all the webstores with the given name, run [sfdx force:data:soql:query -q SELECT ID, NAME FROM WEBSTORE WHERE NAME = '<webstoreName>' --json] and use '-i <storeId>' to specify a specific webstore."
"errMultipleStoreWithSameName": "More than one webstore found with the given name. To see all the webstores with the given name, run [sf data query -q SELECT ID, NAME FROM WEBSTORE WHERE NAME = '<webstoreName>' --json] and use '-i <storeId>' to specify a specific webstore."
},
"unmap": {
"cmdDescription": "Unmaps an extension from a store",
Expand Down
Loading
Loading