ReferenceCommand line
rent fix
Most new applications never need this command. Use rent fix when an existing database already has several integer-ID entity types and the application is adopting a shared global-ID space. The order passed to --types permanently determines each type's range.
Preview the safety prompt
rent fix --types users,posts,commentsAssign global ID ranges
This assigns permanent 32-bit ranges to 3 entities.
Continue? [yes/no]Answering no leaves the project unchanged:
Aborted.Apply the mapping interactively
Assign global ID ranges
This assigns permanent 32-bit ranges to 3 entities.
Continue? [yes/no]
yes
Created ./rent/generated/internal/global_id.rs
Next: Run `rent generate` to update the client.Rent writes the stable range map to rent/generated/internal/global_id.rs. Commit that file and preserve the entity order across environments.
Apply in controlled automation
rent fix --types users,posts,comments --yes
rent generateAssign global ID ranges
This assigns permanent 32-bit ranges to 3 entities.
Created ./rent/generated/internal/global_id.rs
Next: Run `rent generate` to update the client.Use --yes only after the exact ordered list has been reviewed. Reordering existing types changes their allocated ranges.