Company CLI
Use company to search company registries and return normalized JSON/YAML/text output.
Invoke the Tool
Prefer the installed binary when it exists:
company search "Acme GmbH" --city Berlin --source handelsregister --format json
If working inside this repository or the binary is not installed, run:
go run ./cmd/company -- search "Acme GmbH" --city Berlin --source handelsregister --format json
Choose Flags
- Use
searchfor registry lookup. - Use
--source handelsregisterfor the official German commercial register. - Use
--source allwhen broader discovery is useful and partial source failures are acceptable. - Use
--cityto disambiguate local companies. - Use
--exactonly when the legal name is known. - Use
--limit 5for agent research unless a larger list is explicitly needed. - Use
--format jsonor--format yamlfor downstream parsing. - Set
OPENCORPORATES_API_TOKENwhen usingopencorporatesorall.
Examples
Official German register lookup:
company search "Kiez Zahnzentrum Berlin" --source handelsregister --city Berlin --format json
Multi-source research:
company search "Acme GmbH" --source all --limit 5 --format yaml
OpenCorporates quota check:
company quota --format text