Skip to main content

CLI for SAP Commerce HAC (Hybris Administration Console)

Project description

HAC Client CLI

Command-line interface for the SAP Commerce HAC (Hybris Administration Console).

Features

  • Groovy — execute scripts inline or from files, with optional commit mode
  • FlexibleSearch — run queries with CSV, JSON, or table output
  • Impex — import data with configurable validation
  • System updates — list patches, run updates, follow logs
  • Multi-environment — manage multiple HAC instances and endpoints
  • Secure sessions — passwords never stored; token-based session cache

Installation

Native executable (recommended)

Download the latest release for your platform from GitHub Releases.

Platform Download
Linux x86_64 hac-linux-x86_64
macOS Apple Silicon hac-macos-arm64
macOS Intel hac-macos-x86_64
Windows x86_64 hac-windows-x86_64.exe

Linux / macOS:

curl -Lo hac https://github.com/SapCommerceTools/hac-client-cli/releases/latest/download/hac-linux-x86_64
chmod +x hac
sudo mv hac /usr/local/bin/

Windows (PowerShell):

Invoke-WebRequest -Uri "https://github.com/SapCommerceTools/hac-client-cli/releases/latest/download/hac-windows-x86_64.exe" -OutFile "$env:LOCALAPPDATA\hac.exe"

pip (requires Python 3.12+)

pip install hac-client-cli

Quick Start

# 1. Add an environment
hac env add local
hac endpoint add local hac --url https://localhost:9002 --ignore-ssl --set-default

# 2. Authenticate
echo "nimda" | hac session start local --username admin

# 3. Use it
hac groovy "return 'Hello World'"
hac flexsearch "SELECT {pk}, {code} FROM {Product}" --max-count 10
hac impex -f data.impex

Security

  • Passwords are never stored in configuration files
  • Authentication requires explicit hac session start
  • Passwords cleared from memory after use
  • Supports env vars, stdin, and interactive prompt for credentials

Architecture

This CLI is a thin adapter over hac-client-core:

  • Maps command-line arguments to core library calls
  • Handles configuration loading and output formatting
  • No business logic — safe for automation and scripting

Documentation

Full documentation: sapcommercetools.github.io/hac-client-cli

License

MIT

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hac_client_cli-0.3.0.tar.gz (21.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hac_client_cli-0.3.0-py3-none-any.whl (24.6 kB view details)

Uploaded Python 3

File details

Details for the file hac_client_cli-0.3.0.tar.gz.

File metadata

  • Download URL: hac_client_cli-0.3.0.tar.gz
  • Upload date:
  • Size: 21.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hac_client_cli-0.3.0.tar.gz
Algorithm Hash digest
SHA256 232f2a1a3bbb8777d27caf6bea6bca86d8c0bfefa7f62d80cb886e364470cddb
MD5 f59c67a2157c51508c363fb3c81df544
BLAKE2b-256 046a62c4b0a3c64979064d3be5bcd4e60528399d9a157c62d8abe0908d726513

See more details on using hashes here.

Provenance

The following attestation bundles were made for hac_client_cli-0.3.0.tar.gz:

Publisher: release.yml on SapCommerceTools/hac-client-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hac_client_cli-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: hac_client_cli-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 24.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for hac_client_cli-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 9424b166e75e94c88f2f1ebbf4f4bb6a7d6351b6e64cf4c4b8c3aa1617fb7439
MD5 fbdca327c18cf120448c66d2b00b16f9
BLAKE2b-256 f7086c940081990d32df2526c7e4e3d532ab2ae23aa02f4c354b34d3629e4192

See more details on using hashes here.

Provenance

The following attestation bundles were made for hac_client_cli-0.3.0-py3-none-any.whl:

Publisher: release.yml on SapCommerceTools/hac-client-cli

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page