Balance Sheet Components - Schedule of Property and Equipment (Details) - USD ($) $ in Thousands |
Jan. 31, 2021 |
Jan. 31, 2020 |
|---|---|---|
| Property, Plant and Equipment [Line Items] | ||
| Property and equipment, gross | $ 201,879 | $ 84,394 |
| Less: accumulated depreciation and amortization | (51,955) | (27,256) |
| Property and equipment, net | 149,924 | 57,138 |
| Machinery and Equipment | ||
| Property, Plant and Equipment [Line Items] | ||
| Property and equipment, gross | 137,445 | 51,375 |
| Software | ||
| Property, Plant and Equipment [Line Items] | ||
| Property and equipment, gross | 36,216 | 10,855 |
| Leasehold Improvements | ||
| Property, Plant and Equipment [Line Items] | ||
| Property and equipment, gross | 23,593 | 18,215 |
| Furniture and Fixtures | ||
| Property, Plant and Equipment [Line Items] | ||
| Property and equipment, gross | $ 4,625 | $ 3,949 |