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.
Log in to a profile
Section titled “Log in to a profile”vendor/bin/twf login --profile=acmetwf status shows all profiles and marks the one in use.
Choose a profile
Section titled “Choose a profile”Every command takes --profile:
vendor/bin/twf office list --profile=acmeOr set TWINFIELD_PROFILE for all commands in a shell or a script:
export TWINFIELD_PROFILE=acme
vendor/bin/twf office listThe profile is, in this order: the --profile option, TWINFIELD_PROFILE, default.
In PHP
Section titled “In PHP”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.
Remove a profile
Section titled “Remove a profile”vendor/bin/twf logout --profile=acmeTwinfield and Wolters Kluwer are trademarks of Wolters Kluwer. Their names and logos are used only to refer to their products.