Skip to content

Add an optional keyFilename flag to specify credentials file#37

Open
digitalWestie wants to merge 1 commit intoJigsaw-Code:mainfrom
CoslaDigital:file-credentials
Open

Add an optional keyFilename flag to specify credentials file#37
digitalWestie wants to merge 1 commit intoJigsaw-Code:mainfrom
CoslaDigital:file-credentials

Conversation

@digitalWestie
Copy link

This PR introduces a -k or --keyFilename flag so that you can use a service account key file instead of using the Gcloud CLI to authenticate when using the command line runners.

E.g.

npx ts-node ./library/runner-cli/categorization_runner.ts --vertexProject "myproject-466109" --outputFile glasgow-categorized.csv --inputFile ./../glasgowslaverycsv.csv --additionalContext "Comments about Glasgow's historical connections to slavery and how the city should address this legacy" --keyFilename /path/to/account-key.json 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant