Distinction between Name vs Slug is unclear

Hello,

I am a bit confused about the naming of Name and Slug.
When I use the sentry-cli and execute sentry-cli projects list I get a table with the following columns: ID, Slug, Team, Name.

On the project settings page I can modify the Name which does not change the Name but the Slug. This can be verified by executing the above command again.

My understanding about slug and name is that the slug is used for url, issue#. Instead I expexted that the name is used only for displaying and within e-mails.
Currently the name is not used and the slug is used everywhere.

The distinction between slug and name would help me because I want to have a very short slug but within the program I want to use the longer projekt name.