Skip to main content

JFrog Artifactory

v0.1.4

JFrog Artifactory ops reads — health, version, license, storage usage, repository listings, artifact info and download stats, background tasks. Read-only. Auth via an access token or Basic credentials on the runner host.

8 allowed by default
Pack ID
artifactory
Vendor
emisar
OS
linux
Actions
8
Required binaries. Install these binaries on the runner host before using the pack.
curl

Install

New to emisar? Follow the quickstart to connect your host and AI agent, then install this pack below. Agents can use its actions through the CLI or MCP.

emisar pack install downloads and checks the pack, then compares its content hash with the --hash below before copying it into the runner's packs directory. The hash identifies the exact pack shown on this page. If the download was changed, the command rejects it. It also reloads a running runner, so you do not need to restart it yourself.

on the runner host
sudo emisar pack install artifactory --hash sha256:6320f0eb42b768f5e88d5443498c9127f8043210d5f3cc7522e6cb582d42c13a

Setup

Every action calls the Artifactory REST API under $ARTIFACTORY_URL via curl. Set $ARTIFACTORY_TOKEN for bearer authentication with an access token, or $ARTIFACTORY_USER and $ARTIFACTORY_PASSWORD for Basic authentication.

Environment

Set these on the runner host, then add each name to execution.inherit_env so the value reaches the action.

  • ARTIFACTORY_URL default http://127.0.0.1:8082

    JFrog platform base URL (scheme + host + port, no trailing path) — actions append /artifactory/api/... themselves. Defaults to the local platform router.

  • ARTIFACTORY_TOKEN

    Access token sent as the Bearer credential.

  • ARTIFACTORY_USER

    User for Basic authentication. Takes precedence over ARTIFACTORY_TOKEN .

  • ARTIFACTORY_PASSWORD

    Password paired with ARTIFACTORY_USER .

Notes

  • Any Artifactory env var you set must also be allowlisted in the runner's execution.inherit_env — the action env is scrubbed to PATH/LANG/LC_ALL/TERM by default, so an env present on the host but not allowlisted is silently dropped (the action falls back to its local default or fails auth).
  • System, storage, and task reads need an admin-scoped identity; repository and artifact reads work with read permission on the target repository.
  • Every action here works on every edition, OSS included. Repository administration and user listing are Artifactory Pro APIs, so this pack does not ship them.

Verify it works

Runs artifactory.ping, a low-risk read that confirms the pack can reach its target. Run it on the host once the pack is installed; pack install runs it for you.

on the runner host
sudo emisar pack verify artifactory

Install and configure a pack walks through the whole sequence on a host.

Actions 8 total

View on GitHub
  • artifactory.file_info script low Low: read-only or trivially reversible

    GET /artifactory/api/storage/<repo>/<path>

    Show one artifact or folder — size, checksums, created/modified times, and for folders the direct children.

    Arguments
    Name Type Required
    repo string Yes
    path string Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • artifactory.file_stats script low Low: read-only or trivially reversible

    GET /artifactory/api/storage/<repo>/<path>?stats

    Show download stats for one artifact — download count, last downloaded time, and who downloaded it last.

    Arguments
    Name Type Required
    repo string Yes
    path string Yes

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • artifactory.license script low Low: read-only or trivially reversible

    GET /artifactory/api/system/license

    Show license type, expiry, and licensed-to (never the license key itself).

    Link to this action View source on GitHub
  • artifactory.ping script low Low: read-only or trivially reversible

    GET /artifactory/api/system/ping

    Check Artifactory liveness (returns OK when healthy).

    Link to this action View source on GitHub
  • artifactory.repositories script low Low: read-only or trivially reversible

    GET /artifactory/api/repositories

    List repositories (key, type, package type, URL), optionally filtered by repository class or package type.

    Arguments
    Name Type Required
    type string No
    package_type string No

    See the action source for defaults, validation, and limits.

    Link to this action View source on GitHub
  • artifactory.storage_summary script low Low: read-only or trivially reversible

    GET /artifactory/api/storageinfo

    Show filestore usage totals and the per-repository storage breakdown (size, file and folder counts).

    Link to this action View source on GitHub
  • artifactory.tasks script low Low: read-only or trivially reversible

    GET /artifactory/api/tasks

    List background tasks (indexing, garbage collection, replication) with their type, state, and schedule.

    Link to this action View source on GitHub
  • artifactory.version script low Low: read-only or trivially reversible

    GET /artifactory/api/system/version

    Show Artifactory version, revision, and enabled addons.

    Link to this action View source on GitHub