How to pass environment variables

Hi @claudiomadureira :wave:,

First of all, welcome to the community forum. Tuist Projects supports what the docs refer to as dynamic configuration, which solves your need.

Any variable passed with the prefix TUIST_ can then be read from the manifest files. In your particular case, you could do:

TUIST_SWIFT_VERSION=6.0 tuist generate

And then from the manifest:

func swiftVersion() -> String {
    if case let .string(environmentSwiftVersion) = Environment.swiftVersion {
        return environmentSwiftVersion
    } else {
        return "6.0" // Default value
    }
}

Let me know if that helps.