ServiceMax Core for China > Configuring the Application > Using Migration Tool > ServiceMax Profile Deployment Using Salesforce CLI
ServiceMax Profile Deployment Using Salesforce CLI
This section explains how to set up Salesforce CLI and deploy ServiceMax profiles to the Salesforce on Alibaba Cloud (SFoA) org.
Prerequisite
Ensure that you have access to the SFoA org
Ensure that the Salesforce CLI installed on the local machine
Ensure that the SFDX profile project available locally
To set up Salesforce CLI and deploy ServiceMax profiles to the SFoA org:
Step 1: Installing the Salesforce CLI
1. Open the Salesforce CLI documentation page: https://developer.salesforce.com/tools/sfdxcli
2. Download the installer for your operating system (Windows, macOS, or Linux).
3. Install Salesforce CLI:
Windows: Run the downloaded .exe file.
macOS: Run the .pkg installer.
Linux: Extract the .tar.xz file and follow the provided instructions.
4. Verify the installation:
Open a terminal and run: sf --version
Confirm that the Salesforce CLI version displays successfully.
Step 2: Downloading the SFDX Profile Project
Download the SFDX profile project to your local machine from the designated source location.
Step 3: Navigating to the Profile Directory
From the project root directory, navigate to the profiles folder:
cd SVMXProfiles/force-app/main/default/profiles
Step 4: Logging In to the SFoA Org
1. Authenticate to the SFoA org using Salesforce CLI. Use a unique alias for the org (for example, alibaba1): sf org login web --client-id <CLIENT_ID> --alias alibaba1 -r https://test.sfcrmproducts.cn
2. When prompted, paste the OAuth authorization code and press Enter.
3. If prompted for an OAuth client secret:
Press Enter if not required.
Otherwise, enter the provided client secret.
Step 5: Deploying ServiceMax Profiles
Deploy the profiles to the SFoA org using the assigned alias: sf project deploy start --manifest package.xml -o alibaba1
Result
The ServiceMax profiles are deployed successfully to the SFoA organization.
Was this helpful?