Skip to content

--apikey option in addition to setting a local environment variable #1581

Description

@chowsanthony

### Updating the Cache (`update-cache`)

This section only mentions API key as an environment variable. The --apikey option also works. In fact, it takes precedent over the CDISC_LIBRARY_API_KEY variable when supplied.

Powershell command Get-ChildItem Env:CDISC_LIBRARY_API_KEY shows

Name                           Value
----                           -----
CDISC_LIBRARY_API_KEY          1c408c803a754ff2984879xxxxxxxxxx

Where, .\core.exe update-cache --apikey foobar yields

Exception: Request to https://api.library.cdisc.org/api/mdr/ct/packages returned unsuccessful 401 response
[PYI-25112:ERROR] Failed to execute script 'core' due to unhandled exception!

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Fields

Priority

None yet

T-shirt sizing

None yet

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions