Before using the Graphlit CLI, you need to configure it to your Graphlit organization and project. This only needs to be done once initially, or when changing projects or tenants.

g configure

After configuring Graphlit, you can login to generate a JSON Web Token (JWT). The CLI will expire the token after four hours, after which you will need to login again.

g login

You can also explicitly logout of Graphlit, and clear the active JWT.

g logout


Your project configuration can be found on the Project Settings page. You can copy the Organization ID, Environment ID, and JWT Secret to use in the CLI configuration.

In Windows, the configured CLI defaults are stored in a JSON file, located at C:\Users\{user}\AppData\Roaming\.graphlit\defaults.json. This includes the currently logged-in JWT.

Last updated