Why CS2 console commands don't persist after you quit

Check whether a value resets when the map changes or the game restarts, and see whether it can be saved.

Identify what resets

Enter the variable name without a value and note the result. Change it and check again after a map change and after a full restart. A one-time action such as echo has no setting to save.

Tell client settings from server settings

The archive flag in CS2's variable list indicates a saved setting. Server variables depend on the current server, and protected variables can reset when practice cheats are turned off. Check those values after loading a local map you host.

Check the order settings run in

If a saved value changes on every launch, look for that variable in your CFG files and launch options. Back up your files and test with the custom file temporarily disabled. If that fixes it, edit the line that restores the unwanted value.

Sources

Find your next skin