How to scale/size an object after it has been created?

This probably has a simple answer, but I cannot for the life of me find it. I’ve searched online, and I’ve found some methods that are seemingly deprecated.

obj = bpy.ops.mesh.primitive_cube_add    obj(location = [cursorPos.x, cursorPos.y, cursorPos.z])

I want to add a cube, and then resize it. I’ve got it to generate at the right position, but I don’t know how to scale it.

Does anyone know?