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.2.0.tar.gz (22.3 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.2.0-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

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

Hashes for hac_client_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 7dbf6b10eb825715a16bae504d1a0f0c58f9c684037f48e2f04b777d24b60e3f
MD5 8751b855cecddd382adcdc8d89f5043a
BLAKE2b-256 5e03f864e6137b51c8c181f004e62a61d1a87f5cec23ac1980e924cde86f7ae0

See more details on using hashes here.

Provenance

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

Hashes for hac_client_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 42a87295deff17383411e17532e3a2b898a7860cfab622eb043d27fec29b72ca
MD5 e9a0245717c6b5c22f8b7eb734d91d01
BLAKE2b-256 225ea3508d50192c6a5bf7c266fed10383fdc056a14b445adbd8340b8c50856b

See more details on using hashes here.

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

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