Skip to main content

Move account between different machines

In some cases, there is a need to access your namespaces from different machines. Here is a step-by-step instruction on how to retrieve your config files and where to put them on a new CGC installation.

Get your config files​

All the configuration of your CGC account can be found by typing:

cgc context folder

Under this directory, you should see all your config files.

Mode                 LastWriteTime         Length Name
---- ------------- ------ ----
-a---- 19.05.2023 15:11 308 2.json
-a---- 17.07.2023 11:33 311 3.json
-a---- 13.04.2023 14:18 313 cfg.json

The default one is called cfg.json. Files with numbers are created if you have more than one namespace (context) linked to your CGC SDK.

info

If you installed Python from the Microsoft Store, cgc context folder may print an incorrect path.

This is caused by Windows transparently redirecting accesses to /Users/USER/AppData/ to /Users/USER/AppData/Local/Packages/PythonSoftwareFoundation.Python.3.YY_XXXXXXXXXXXXX/LocalCache/ for Microsoft Store apps.

In such a case please look for the config files in the latter directory.

The best way to move your config files​

Basically, the best way to access your namespaces from different machines is to take all the config files and copy them to the destination machine.

  • It is possible to copy config files between Linux, Windows, and Mac.
  • If you don't know the path of the config directory in the new machine, use cgc context folder.
  • If you use more than one context, remember to keep your config files in sync to not overwrite any configuration files.

I've lost access to my config files​

If you've lost access to your config files, you should contact us at ai@comtegra.pl.