Skip to content

Profiles

A profile is a stored login with a name. Use a profile for each Twinfield organisation you work with. Without a name, the commands use the profile default.

Terminal window
vendor/bin/twf login --profile=acme

twf status shows all profiles and marks the one in use.

Every command takes --profile:

Terminal window
vendor/bin/twf office list --profile=acme

Or set TWINFIELD_PROFILE for all commands in a shell or a script:

Terminal window
export TWINFIELD_PROFILE=acme
vendor/bin/twf office list

The profile is, in this order: the --profile option, TWINFIELD_PROFILE, default.

use SolveBeam\Twinfield\Cli\Credentials;
use SolveBeam\Twinfield\Twinfield;
$twinfield = Twinfield::create(Credentials::default('acme'));

Without a name, Credentials::default() uses TWINFIELD_PROFILE, else default.

Terminal window
vendor/bin/twf logout --profile=acme
Made by SolveBeam

Twinfield and Wolters Kluwer are trademarks of Wolters Kluwer. Their names and logos are used only to refer to their products.