# force cli

Command-line interface to Salesforce for managing metadata, executing queries, and deploying code.

## Usage

```bash
# 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_Test
```

## Why 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

## Links

- [GitHub Repository](https://github.com/ForceCLI/force)

## Docs

- [Force CLI reference →](/content/tools/force/docs/force/index.html)
