
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@fiale-plus/bls-cli
Advanced tools
Unofficial CLI and TypeScript client for the BLS API (Bureau of Labor Statistics) — designed for AI agents
Unofficial CLI and TypeScript client for the BLS Public Data API v2 (Bureau of Labor Statistics) — designed for AI agents.
fetch and parseArgsjq--format csv or --format table for human workflowsbls cpi, bls unemployment, bls jobs for common seriesBlsClient for programmatic use with full type safetynpm install -g @fiale-plus/bls-cli
export BLS_API_KEY=your-key-here
bls cpi --start-year 2020 --end-year 2024
bls series CUUR0000SA0 LNS14000000
bls unemployment --calculations
Get a free API key at: https://www.bls.gov/developers/home.htm
# Global (CLI usage)
npm install -g @fiale-plus/bls-cli
# Local (library usage)
npm install @fiale-plus/bls-cli
Requires Node.js >= 18.0.0.
bls series <id> [<id2>...] # Get time series data
bls cpi # CPI-U All Items (CUUR0000SA0)
bls unemployment # Unemployment Rate (LNS14000000)
bls jobs # Total Nonfarm Employment (CEU0000000001)
bls popular # 25 most popular series
bls surveys # List all surveys
bls survey <id> # Survey metadata
bls search <text> # Help finding series IDs
| Flag | Description |
|---|---|
--start-year <YYYY> | Start year for data |
--end-year <YYYY> | End year for data |
--catalog | Include catalog metadata (v2 only) |
--calculations | Include net/percent changes (v2 only) |
--annual-average | Include annual averages (v2 only) |
| Flag | Description |
|---|---|
--api-key <key> | API key (or set BLS_API_KEY env var) |
-f, --format <json|csv|table> | Output format (default: json) |
--help | Show help |
--version | Show version |
The BLS API works without a key (v1 mode, limited), but v2 features require registration.
Get a free key at: https://www.bls.gov/developers/home.htm
Set it as an environment variable:
export BLS_API_KEY=your-key-here
Or pass it per-command:
bls cpi --api-key your-key-here
import { BlsClient } from "@fiale-plus/bls-cli";
const bls = new BlsClient(process.env.BLS_API_KEY);
// Get CPI data
const data = await bls.getSeriesData(
["CUUR0000SA0"],
{ startYear: "2020", endYear: "2024", calculations: true },
);
console.log(data.Results.series);
// Get popular series
const popular = await bls.getPopularSeries();
console.log(popular);
// List surveys
const surveys = await bls.getSurveys();
console.log(surveys);
git clone https://github.com/fiale-plus/bls-cli.git
cd bls-cli
npm install
npm run build
npm test
# Dev mode (runs TypeScript directly)
npm run dev -- cpi --start-year 2023 --end-year 2024
npm run dev -- series CUUR0000SA0 LNS14000000
# Integration tests (requires BLS_API_KEY)
BLS_API_KEY=your-key npm run test:integration
This is an unofficial, community-maintained tool. It is not affiliated with, endorsed by, or connected to the Bureau of Labor Statistics, the U.S. Department of Labor, or any government entity.
This tool accesses the publicly available BLS Public Data API. Data retrieved through this tool is sourced from BLS and is provided for informational purposes only. It should not be used as the sole basis for financial or policy decisions. Always verify data against official sources.
This software is provided "AS IS" under the MIT License, without warranty of any kind.
FAQs
Unofficial CLI and TypeScript client for the BLS API (Bureau of Labor Statistics) — designed for AI agents
We found that @fiale-plus/bls-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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.