jf stats
Return statistics for a specific product on a given server. Requires authentication.
Synopsis
jf stats <product-name> [options]Aliases: jf st
Arguments
| Argument | Required | Description |
|---|---|---|
<product-name> | Yes | Product name. Supported: artifactory or rt |
Options
| Flag | Short | Default | Description |
|---|---|---|---|
--format | — | table | Output format: table, json, simple-json, or sarif |
--access-token | — | — | Access token. Default uses the logged-in user token |
--server-id | — | — | Server ID from jf config |
Examples
Get Artifactory Statistics
jf stats artifactoryUse artifactory or rt as the product name. Authentication is required.
Output as JSON
jf st rt --format=jsonUse a Specific Server
jf stats artifactory --server-id=<your-server-id>When to Use
Use jf stats to retrieve server-level statistics for monitoring, dashboards, or health checks. Common scenarios:
- Monitoring scripts: Periodically check Artifactory statistics and alert on anomalies
- Capacity planning: Review storage and artifact counts for infrastructure decisions
- CI/CD health checks: Verify the server is healthy before starting builds
Expected Output
$ jf stats artifactory
Product: Artifactory
Version: 7.77.5
Revision: 77700900
Addons: build,docker,npm,maven,...
Storage: 45.2 GB used / 100 GB total
Use --format=json for machine-readable output suitable for scripts:
jf st rt --format=json | jq '.version'Updated about 1 month ago
