Skip to content
Kosh Docs

kosh use

Switch the profile that every other Kosh command operates on.

Switch the profile that every other command operates on.

Terminal window
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 use does not create profiles. Switching to a name that does not exist fails with profile does not exist — create it with kosh profile create first.
  • The choice is written to ~/.kosh/config.json and persists across runs.
  • The picker uses plain substring filtering, not the weighted scorer used by kosh search.
  • Case is ignored. kosh use WORK, kosh use work and kosh use Work all find a profile stored as Work.
  • Surrounding whitespace is ignoredkosh use " work " works.
  • The match is whole-name, not a prefix or substring. kosh use wor fails with profile 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 list and in the (profile) output prefix.
Terminal window
kosh use # pick a profile interactively
kosh use work # switch to an existing profile
kosh profile create work # create a profile, then switch back
kosh use default
  • Profiles — the concept and why profiles are isolated