Retrieve statistics for a JFrog product
The jf stats command returns usage and capacity statistics for a given product on a configured JFrog server. You must be authenticated. Full output (including JPD and Project sections) requires admin privileges; non-admin users still receive partial results.
Synopsis
jf stats <product-name> [--format=<format>] [--access-token=<access-token>] [--server-id=<server-id>]Where:
<product-name>— Product to query:artifactoryorrt.<format>— Optional. Output format:table(default) orjson.<access-token>— Optional. Access token to use instead of the configured user token.<server-id>— Optional. Server ID fromjf configwhen not using the default server.
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 or json |
--access-token | — | — | Access token. Default uses the logged-in user token |
--server-id | — | — | Server ID from jf config |
Prerequisites
To run jf stats successfully:
- JFrog CLI configured with at least one server (
jf config add) - Authenticated user token or
--access-tokenflag - Admin privileges required for complete output. Non-admin users will see partial results — JPD and Project sections will show
Error: need admin privilegesbut the command will still exit successfully with the available data.
Known issue
On some installations,
jf statsmay print plugin-related error lines before the output:[Error] jfrog cli plugins: failed getting signature from plugin: 'rt-fs'. Skiping... [Error] Error was: signal: killedThese errors are non-fatal — the command still exits 0 and produces correct statistics output. They indicate a problem with the local
rt-fsplugin binary (for example, a permission or signature verification failure). To resolve, delete the plugin directory at~/.jfrog/plugins/rt-fs/and re-install the plugin, or contact your administrator.
Examples
Get Artifactory Statistics
To get statistics in table format:
- Run (use
artifactoryorrtas the product name):
jf stats artifactoryOutput as JSON
To print statistics as JSON:
- Run:
jf st rt --format=jsonUse a Specific Server
To query a non-default configured server:
jf stats <product-name> --server-id=<server-id>Where:
<product-name>—artifactoryorrt.<server-id>— Value fromjf config show.
Example:
jf stats artifactory --server-id=acme-rt-serverWhen 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
[Info] Getting all repositories ...
--- Artifactory Statistics ---
Total Projects: 0
Total No of Binaries: 134,763
Total Binaries Size: 1,019.22 GB
Total No of Artifacts: 234,871
Total Artifacts Size: 10.75 TB
Storage Type: s3-storage-v3-direct
--- Repositories Details ---
LOCAL : 1227
REMOTE : 546
VIRTUAL : 337
FEDERATED : 87
--- JPDs ---
Error: need admin privileges
--- Release Bundles ---
Repository Key: acme-release-bundles-v2
Release Bundle Name: my-bundle
Project Key: acme
...and N more release bundles. Use --format=json to retrieve the complete list.
--- PROJECTS ---
Error: need admin privileges
Note
In table format, the Release Bundles list is truncated when there are many entries. Use
--format=jsonto retrieve the full list.
JSON Output
To capture machine-readable statistics:
- Run:
jf st rt --format=jsonThe command emits multiple JSON objects — one per data category.
Example output:
{
"ProjectsCount": 0,
"TotalBinariesCount": "134,763",
"TotalBinariesSize": "1,019.22 GB",
"TotalArtifactsCount": "234,871",
"TotalArtifactsSize": "10.75 TB",
"StorageType": "s3-storage-v3-direct"
}
{
"release_bundles": [
{
"repository_key": "acme-release-bundles-v2",
"release_bundle_name": "my-bundle",
"project_key": "acme"
}
]
}To extract a specific field using jq:
- Run (uses
-sto slurp the stream into an array):
jf st rt --format=json | jq -s '.[0].TotalBinariesSize'Updated 13 days ago
