Hi team - We use graphite in our company, and have...
# how-do-i
s
Hi team - We use graphite in our company, and have set up Graphite CLI with an auth token for
sumeet@work-domain.com
I wanna use graphite for my OSS project contribution using
sumeet@personal-account.com
. How do I set up Graphite CLI to support multiple accounts on the same machine?
👀 1
p
(If applicable) To help us more clearly understand what you're trying to do, please provide additional details about: - Screenshots / debug logs / list of commands you've tried to run so far - Your workflow - Current state
Hey Sumeet! This is pretty roughly supported, but in your graphite/user_config, you can set alternative profiles with separate auth tokens, then use
GRAPHITE_PROFILE=personal gt sync
Copy code
cat ~/.config/graphite/user_config
{
  "alternativeProfiles": [
    {
      "name": "prod",
      "hostPrefix": "",
      "authToken": "xxxx"
    },
    {
      "name": "default",
      "hostPrefix": "stg",
      "authToken": "xxxx"
    }
  ],
  "gtiConfigs": [
    {
      "key": "gti.install-uuid",
      "value": "xxxx"
    },
    {
      "key": "gti.is-onboarded",
      "value": "true"
    }
  ]
}%
s
Got it - thanks