--- title: "Creating OneDrive storage using the CLI" slug: "creating-onedrive-storage-using-the-cli-1" updated: 2026-09-08T21:45:37Z published: 2026-09-08T21:45:37Z canonical: "docs.trellix.com/creating-onedrive-storage-using-the-cli-1" --- > ## Documentation Index > Fetch the complete documentation index at: https://docs.trellix.com/llms.txt > Use this file to discover all available pages before exploring further. # Creating OneDrive storage using the CLI **To create OneDrive storage for the** **File Protect** **appliance using the CLI:** 1. Enable the CLI configuration mode: ``` hostname > enable hostname # configure terminal ``` 2. Generate OneDrive admin consent authorization and paste the URL generated from the `authorize` command into a Web browser. Copy the tenant ID value for Step 3. ``` hostname (config) # fmps o365 authorize Paste the following URL in your browser and approve the app's access. Copy the value of 'tenant=' and use with cli: fmps o365 cvonnect tenant-id* https://login.microsoftonline.com/common/adminconsent?redirect_uri=https%3A%2F%2                                           Fwww.fireeye.com&client_id=49b9606f-50dd-4ee1-b080-70e10cb855d0 ``` Below is a sample of an admin consent containing a `tenant=` property value retrieved from the redirect URL in the Web browser. ![FX_OneDrive_tenant-id_scap.png](https://cdn.us.document360.io/0d453a50-e1da-4d4a-9409-fea7959614d8/Images/Documentation/uuid-559ffb31-20ed-dea5-0863-baaa9ff612dd(2).png?sv=2026-02-06&spr=https&st=2026-11-20T04%3A25%3A19Z&se=2026-11-20T05%3A25%3A19Z&sr=c&sp=r&sig=nzP7emHvee1qJP8FKsv8I%2FqtM4EfW9QClsiDiDgHdLc%3D) 3. Get an access token for API communication for the tenant ID retrieved from Step 2. ``` hostname (config)# fmps o365 connect tenant-id ``` 4. Enter a unique name for the OneDrive storage and the OneDrive quarantine folder location. ``` hostname (config) # fmps storage create o365 name app onedrive email ``` ``` OneDrivestorage connected successfully. ``` 5. View your OneDrive storage configuration. ``` hostname (config) # show fmps storage name MyOneDriveStorage Storage type: o365 Name:             MyOneDriveStorage App:              onedrive Quarantine Email: admin@fireeye.com Status:           Office 365 configured and connected ``` 6. Save your changes. ``` hostname (config) # write memory ``` :