
Security News
Ruby's Bundler 4.0.18 Extends Cooldown to bundle lock and bundle cache
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.
@humanform/cli
Advanced tools
Command-line interface for the Humanform anthropometric prediction API. Run predictions, percentile ranges, country comparisons, and measurement search from your terminal or CI pipelines.
npx without installing:npm install -g @humanform/cli
npx @humanform/cli --help
humanform login
This stores your key in ~/.humanform/config.json (file mode 600). To remove it:
humanform logout
For CI and scripting, set HUMANFORM_API_KEY instead of using login. The environment variable takes precedence over the stored config.
Optional: override the API base URL (defaults to https://api.humanform.app):
export HUMANFORM_API_URL="https://api.humanform.app"
| Command | API | Description |
|---|---|---|
predict | POST /v1/predict | Forward lookup: percentile → measurement value |
range | POST /v1/predict/range | Multiple percentiles for one measurement |
compare | POST /v1/predict/compare | One percentile across multiple countries |
measurements search | GET /v1/measurements/search | Fuzzy search measurement names (no API key required) |
percentile-lookup | POST /v1/percentile-lookup | Reverse lookup: measured value → percentile |
humanform predict \
--measurement Stature \
--gender Female \
--age 34 \
--percentile 50 \
--country US \
--unit cm
humanform range \
--measurement PoplitealHeight \
--gender Female \
--age 34 \
--country US \
--percentiles 5,50,95 \
--unit cm
humanform compare \
--measurement PoplitealHeight \
--gender Female \
--age 34 \
--percentile 50 \
--countries US,UK,JP \
--unit cm
humanform measurements search grip
humanform percentile-lookup \
--measurement PoplitealHeight \
--gender Female \
--age 34 \
--country US \
--unit cm \
--value 43.1
--jsonAdd --json to any command for machine-readable output suitable for piping into jq or other tools:
humanform predict \
--measurement Stature \
--gender Male \
--age 30 \
--percentile 50 \
--country US \
--unit cm \
--json
In CI, pass the API key via environment variable:
HUMANFORM_API_KEY="hf_live_..." humanform predict --measurement Stature ...
API errors (401, 402, 404, 422, 429, etc.) are printed to stderr with non-zero exit codes for scripting.
For contributors working in the humanform-api monorepo:
pnpm --filter @humanform/api-client build
pnpm --filter @humanform/cli build
pnpm --filter @humanform/cli test:smoke
Run against a local build:
pnpm --filter @humanform/cli build
node apps/cli/dist/index.js predict --measurement Stature --gender Male --age 30 --percentile 50 --country US --unit cm
Or during development:
pnpm dev:cli
FAQs
Command-line interface for the Humanform anthropometric prediction API
The npm package @humanform/cli receives a total of 1 weekly downloads. As such, @humanform/cli popularity was classified as not popular.
We found that @humanform/cli demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.

Company News
Socket is now in the AWS Security Hub Extended plan. Adopt it through AWS, apply committed spend, and block malicious open source packages.