kosh use
Switch the profile that every other Kosh command operates on.
Switch the profile that every other command operates on.
kosh use [profile]Arguments: zero or one.
| Form | Behaviour |
|---|---|
kosh use |
Interactive picker — type to filter, enter to select, esc to cancel |
kosh use <profile> |
Switch directly, failing if the profile does not exist |
- No master password is required.
kosh usedoes not create profiles. Switching to a name that does not exist fails withprofile does not exist— create it withkosh profile createfirst.- The choice is written to
~/.kosh/config.jsonand persists across runs. - The picker uses plain substring filtering, not the weighted scorer used by
kosh search.
Name matching
Section titled “Name matching”- Case is ignored.
kosh use WORK,kosh use workandkosh use Workall find a profile stored asWork. - Surrounding whitespace is ignored —
kosh use " work "works. - The match is whole-name, not a prefix or substring.
kosh use worfails withprofile does not exist. - Whatever spelling you type, Kosh switches to the profile under the name it is stored as, and
that is the name shown in
kosh profile listand in the(profile)output prefix.
Examples
Section titled “Examples”kosh use # pick a profile interactivelykosh use work # switch to an existing profile
kosh profile create work # create a profile, then switch backkosh use defaultSee also
Section titled “See also”- Profiles — the concept and why profiles are isolated