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

Method Startup Requires Python Best for
pipx ~100 ms Yes (3.12+) Daily use, best performance
Native binary ~290 ms No Quick start, CI, no Python available
pip ~100 ms Yes (3.12+) Integrating into Python projects

pipx — recommended for daily use

Installs in an isolated environment, manages PATH automatically, ~100 ms startup:

pipx install hac-client-cli

Don't have pipx? See the full installation guide for step-by-step setup on Linux, macOS, and Windows.

Native binary — zero dependencies

No Python required. Download → run. Startup is ~290 ms (the binary unpacks a bundled Python runtime on each launch).

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/

pip

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.2.tar.gz (22.1 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.2-py3-none-any.whl (25.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hac_client_cli-0.3.2.tar.gz
  • Upload date:
  • Size: 22.1 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.2.tar.gz
Algorithm Hash digest
SHA256 6404b3eabdd0ed26a8119db67fc7a0e29c2a1e0fb60e00305d80e574aa080db9
MD5 23e5da8c781dd5ed7faeb4970513cb56
BLAKE2b-256 8bed9afd2354e4d74e43d632a2031e4fce8d8ec86ad09e91dfce5385db99d361

See more details on using hashes here.

Provenance

The following attestation bundles were made for hac_client_cli-0.3.2.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.2-py3-none-any.whl.

File metadata

  • Download URL: hac_client_cli-0.3.2-py3-none-any.whl
  • Upload date:
  • Size: 25.2 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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 b6c9f3f74f23e2823602913fd83720696460f8fa759f2f12926e1ec0ac48ac69
MD5 e55ee0fef8365c20665a931d5d06aa96
BLAKE2b-256 fd4725d33b3ca5aa54d243a7dceee5d19e44633049bd1311107b6f8f7c7f6e08

See more details on using hashes here.

Provenance

The following attestation bundles were made for hac_client_cli-0.3.2-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