force cli
force cli
Command-line interface to Salesforce for managing metadata, executing queries, and deploying code.
Usage
# Log in to Salesforce
force login
# Log in to sandbox
force login -i example.sandbox.my.salesforce.com
# Push metadata
force push -t ApexClass -n MyClass
# Execute SOQL query
force query "SELECT Id, Name FROM Account LIMIT 5"
# Run Apex tests
force test MyClass_TestWhy use force cli?
- Fast deployment: Quick metadata push/pull operations
- Multi-org support: Manage multiple Salesforce environments
- Automation-ready: Script your Salesforce operations
- Metadata management: Create objects, fields, and other metadata from command line
Price
Free - Open source