@winccoa-tools-pack/npm-winccoa-install-info
v0.1.0
Published
CLI to get basic information about installed WinCC OA versions and registered projects
Downloads
6
Readme
npm-winccoa-install-info
CLI (and thin library helpers) for WinCC OA installation and registered-project introspection.
Detection of installed versions and the project registry lives in
@winccoa-tools-pack/npm-winccoa-core.
This package is a small, scriptable facade — not a second discovery stack.
See docs/VISION.md for scope and JSON shapes.
Install
npm install -g @winccoa-tools-pack/npm-winccoa-install-infoOr run without a global install:
npx @winccoa-tools-pack/npm-winccoa-install-info --helpCLI
winccoa-install-info versions [--json|--no-json] [--result-file <path>]
winccoa-install-info projects [--json|--no-json] [--result-file <path>]JSON is the default (best for scripts/CI). Use --no-json for a simple TSV table.
Core may print diagnostic logs to the console. For automation, prefer
--result-file so the clean payload is written to a file (stdout is not used
for the payload in that mode).
Examples
winccoa-install-info versions --json
winccoa-install-info projects --json
winccoa-install-info projects --result-file projects.json
winccoa-install-info versions --no-json --result-file versions.txtExample projects item:
{
"id": "MyPlant",
"name": "MyPlant",
"runnable": true,
"installationPath": "D:/WinCC_OA_Proj/MyPlant",
"winccOaVersion": "3.20",
"currentProject": false
}Optional fields when present in the registry: company, description,
invalidReason.
Exit codes
| Code | Meaning | | ------ | --------- | | 0 | Success | | 1 | Usage / help | | 2 | Runtime failure |
Library
import {
listVersions,
listProjects,
} from '@winccoa-tools-pack/npm-winccoa-install-info';
const versions = listVersions();
const projects = listProjects();For programmatic access inside Node apps, prefer core APIs directly when you do not need the CLI.
Related packages
| Package | Role |
| --------- | ------ |
| npm-winccoa-core | Install, version, component, and project-registry APIs |
| npm-winccoa-install-info | This CLI (+ thin helpers) |
| npm-winccoa-register-project | Register / unregister projects |
Development
npm ci
npm run build
npm run test:unit
npm run test:integrationRequires Node.js 20+.
Try the CLI against your machine
After a build, run the compiled entry (no global install needed):
node dist/cjs/cli.js --help
node dist/cjs/cli.js versions
node dist/cjs/cli.js projects
node dist/cjs/cli.js versions --no-jsonOptional: npm link so winccoa-install-info is on your PATH, or use
npx tsx src/cli.ts … without rebuilding.
Full contributor workflow (link/unlink, exit codes, empty-host behavior): see CONTRIBUTING.md.
Docs index
| Doc | Contents |
| --- | -------- |
| docs/VISION.md | Product scope |
| docs/automation/CI-INTEGRATION.md | Package CI knobs; workflows are source of truth |
| docs/automation/GITFLOW_WORKFLOW.md | Short pointers to APM git-flow / related skills |
Org process lives in APM skills (apm install → .github/skills/), not duplicated long template docs.
