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).

No Python required — download a single native executable for your platform.


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

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

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

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.1.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.1.0-py3-none-any.whl (25.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: hac_client_cli-0.1.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.1.0.tar.gz
Algorithm Hash digest
SHA256 46d68228a874e28b4c8470853d7b3ba84a2469bd912a65446a1acd3ecc271e16
MD5 23a320e8eca0c82679e43e6dce6c8b33
BLAKE2b-256 cec76fb349b33c22fa5497b47bee839e1a6534708b644f9d8ae7de5ca24eb221

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: hac_client_cli-0.1.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.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 5d9bb91b7d863ba16b0a351ecfa42998bc095fe0a53a0917a0588b26f86bda84
MD5 07b646973f51e837b7e695f61eb1e884
BLAKE2b-256 5923e9094c0c1cafcef1d58f1ab4c5630d45d334b6dead25108f048d7abf0b7c

See more details on using hashes here.

Provenance

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