Mon installation Discourse cassée empêche l'import de thème

You could do it on the rails console. Take a look at the code for the theme importer to see how:

To import a new theme, I think it would be as simple as

RemoteTheme.update_tgz_theme("/path/to/theme.tar.gz", user: Discourse.system_user)