diff --git a/cumulusci/tasks/salesforce/tests/test_check_components.py b/cumulusci/tasks/salesforce/tests/test_check_components.py index 330ea5c194..549275be99 100644 --- a/cumulusci/tasks/salesforce/tests/test_check_components.py +++ b/cumulusci/tasks/salesforce/tests/test_check_components.py @@ -99,7 +99,7 @@ def test_collect_components_from_paths( assert components is not None assert "ApexClass" not in components sfdx.assert_called_once_with( - "force:source:convert", + "project convert source", args=["-d", ANY, "-r", "force-app/main/default"], capture_output=True, check_return=True, diff --git a/cumulusci/tasks/tests/test_sfdx.py b/cumulusci/tasks/tests/test_sfdx.py index 513793cc08..a2b5a46a81 100644 --- a/cumulusci/tasks/tests/test_sfdx.py +++ b/cumulusci/tasks/tests/test_sfdx.py @@ -52,7 +52,7 @@ def test_base_task(self): def test_keychain_org_creds(self): """Keychain org creds are passed by env var""" - self.task_config.config["options"] = {"command": "force:org --help"} + self.task_config.config["options"] = {"command": "org --help"} access_token = "00d123" org_config = OrgConfig( { diff --git a/cumulusci/tasks/vlocity/tests/test_vlocity.py b/cumulusci/tasks/vlocity/tests/test_vlocity.py index e30be94ab2..03c0fbe3b4 100644 --- a/cumulusci/tasks/vlocity/tests/test_vlocity.py +++ b/cumulusci/tasks/vlocity/tests/test_vlocity.py @@ -247,7 +247,7 @@ def test_deploy_omni_studio_site_settings( # The frequent error is: # # "name": "NoOrgFound", -# "action": "Run the \"sfdx force:auth\" commands with --target-org to connect to an org and set it as your default org.\nRun \"org create scratch\" with --target-org to create a scratch org and set it as your default org.\nRun \"sf config set target-org=\" to set your default username." +# "action": "Run the \"sf auth\" commands with --target-org to connect to an org and set it as your default org.\nRun \"org create scratch\" with --target-org to create a scratch org and set it as your default org.\nRun \"sf config set target-org=\" to set your default username." # } diff --git a/docs/cookbook.md b/docs/cookbook.md index 3b175a169e..3ed54f35e1 100644 --- a/docs/cookbook.md +++ b/docs/cookbook.md @@ -43,7 +43,7 @@ run_custom_command: The `dx` task lets you run an arbitrary `sfdx` command. You can perform this with `cci` on a terminal: - $ cci task run dx -o command 'force:api:limits:display' + $ cci task run dx -o command 'limits api display' Or you can utilize the same `class_path` as the `dx` task and make a custom task that can be executed by itself or as a step in a flow. @@ -54,7 +54,7 @@ dx_limits: class_path: cumulusci.tasks.sfdx.SFDXBaseTask group: dx options: - command: sfdx force:limits:api:display + command: sf limits api display ``` In this case, we actually utilize `SFDXBaseTask`, if you would like to @@ -64,7 +64,7 @@ instead. ### Custom Deploy It is often useful to be able to define multiple custom deployment tasks -that deployg a specific subset of your projects metadata. This is +that deploy a specific subset of your projects metadata. This is particularly true when working with [unpackaged Metadata](unpackaged). Here is a custom task that is defined to only deploy only the metadata diff --git a/docs/unlocked-package.md b/docs/unlocked-package.md index b4e770131f..553478e087 100644 --- a/docs/unlocked-package.md +++ b/docs/unlocked-package.md @@ -168,7 +168,7 @@ the GitHub release operations: $ cci task run promote_package_version --version_id 04t000000000000 --promote_dependencies True ``` -Alternatively, you can use the `sfdx force:package:version:promote` +Alternatively, you can use the `sf package version promote` command to promote a 2GP package. ### Promote Dependencies