From the console, it is possible to activate lambda integration with x-ray through the following steps: From your function in the console > Configuration tab > Advanced dropdown/section > check Enable Active Tracing checkbox > Save.
I couldn't find documentation on how to get the above result in command line so I can easily apply that to all my lambdas instead of going to the individual ones in the console.