twf office list
List the offices.
twf office list [<pattern>] [options]twf office list lists the offices (companies, administrations) the logged in user has access to, like gh repo list.
In a terminal the offices are a table. In a pipe they are tab-separated lines without a header: code, name, country and company ID.
Arguments
Section titled “Arguments”| Argument | Description |
|---|---|
<pattern> |
Search in code and name: * matches anything, ? one character. Default: *, all offices. Quote the pattern, so your shell does not expand it. |
Options
Section titled “Options”| Option | Description |
|---|---|
-L, --limit=<number> |
The most offices to list. Default: all. |
--json |
Output JSON: a list of objects with code, name, companyId, country, vatPeriod and startingQuarter. |
--profile=<name> |
The login to use, see Profiles. Default: TWINFIELD_PROFILE or default. |
See twf for the options every command takes.
Examples
Section titled “Examples”All offices:
vendor/bin/twf office listCode Name Country Company ID1000 Example B.V. NL FFE2C8B3-E7F0-4793-A059-FFBFE3C154A92000 Example Holding B.V. BE 0a1b2c3d-1111-2222-3333-444455556666Search in code and name:
vendor/bin/twf office list '*Holding*'The first 10 offices:
vendor/bin/twf office list --limit=10Only the codes, in a pipe:
vendor/bin/twf office list | cut -f1As JSON, for example for jq:
vendor/bin/twf office list --json | jq -r '.[].code'The offices of another login:
vendor/bin/twf office list --profile=acmeSee also
Section titled “See also”twf process-xml: takes the code of an office with--office.- Scripting
Twinfield and Wolters Kluwer are trademarks of Wolters Kluwer. Their names and logos are used only to refer to their products.