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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hac_client_cli-0.2.0.tar.gz.
File metadata
- Download URL: hac_client_cli-0.2.0.tar.gz
- Upload date:
- Size: 22.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7dbf6b10eb825715a16bae504d1a0f0c58f9c684037f48e2f04b777d24b60e3f
|
|
| MD5 |
8751b855cecddd382adcdc8d89f5043a
|
|
| BLAKE2b-256 |
5e03f864e6137b51c8c181f004e62a61d1a87f5cec23ac1980e924cde86f7ae0
|
Provenance
The following attestation bundles were made for hac_client_cli-0.2.0.tar.gz:
Publisher:
release.yml on SapCommerceTools/hac-client-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hac_client_cli-0.2.0.tar.gz -
Subject digest:
7dbf6b10eb825715a16bae504d1a0f0c58f9c684037f48e2f04b777d24b60e3f - Sigstore transparency entry: 927295905
- Sigstore integration time:
-
Permalink:
SapCommerceTools/hac-client-cli@b486e9ae928e9f0e0b1cd41b3e9a2cbd5ab22167 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/SapCommerceTools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b486e9ae928e9f0e0b1cd41b3e9a2cbd5ab22167 -
Trigger Event:
release
-
Statement type:
File details
Details for the file hac_client_cli-0.2.0-py3-none-any.whl.
File metadata
- Download URL: hac_client_cli-0.2.0-py3-none-any.whl
- Upload date:
- Size: 25.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42a87295deff17383411e17532e3a2b898a7860cfab622eb043d27fec29b72ca
|
|
| MD5 |
e9a0245717c6b5c22f8b7eb734d91d01
|
|
| BLAKE2b-256 |
225ea3508d50192c6a5bf7c266fed10383fdc056a14b445adbd8340b8c50856b
|
Provenance
The following attestation bundles were made for hac_client_cli-0.2.0-py3-none-any.whl:
Publisher:
release.yml on SapCommerceTools/hac-client-cli
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
hac_client_cli-0.2.0-py3-none-any.whl -
Subject digest:
42a87295deff17383411e17532e3a2b898a7860cfab622eb043d27fec29b72ca - Sigstore transparency entry: 927295906
- Sigstore integration time:
-
Permalink:
SapCommerceTools/hac-client-cli@b486e9ae928e9f0e0b1cd41b3e9a2cbd5ab22167 -
Branch / Tag:
refs/tags/v0.2.0 - Owner: https://github.com/SapCommerceTools
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@b486e9ae928e9f0e0b1cd41b3e9a2cbd5ab22167 -
Trigger Event:
release
-
Statement type: