QuantConnect / lean-cli

CLI for running the LEAN engine locally and in the cloud
https://www.lean.io/cli
Apache License 2.0
191 stars 100 forks source link

Encrypted Projects with Collaborators #381

Closed DerekMelchin closed 7 months ago

DerekMelchin commented 8 months ago

In Cloud Platform docs, we say

Encryption isn’t available for projects that have collaborators.

but we can get around it with the cli

  1. Create a new project in QC Cloud
  2. Add a collaborator
  3. Run these commands
    
    D:\qc\workspaces\quantconnect>lean cloud pull --project "Encryption Collab Test"
    [1/1] Pulling 'Encryption Collab Test'
    Successfully pulled 'Encryption Collab Test/main.py'
    Successfully pulled 'Encryption Collab Test/research.ipynb'

D:\qc\workspaces\quantconnect>lean cloud push --project "Encryption Collab Test" --encrypt --key "C:\Users\derek\Desktop\encryption-file.txt" [1/1] Pushing 'Encryption Collab Test' Successfully updated name, files, libraries, and encryption_key for 'Encryption Collab Test'

rjra2611 commented 7 months ago

Collaboration check added in the API side