Configuration
Last updated
Last updated
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.
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.
You can also explicitly logout of Graphlit, and clear the active JWT.
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.