pelican credentials token setup
Set up a credential file containing tokens for a Pelican namespace
Synopsis
Acquire a token for the specified Pelican namespace and save it to a credential file on disk. The credential file contains the access token, refresh token, and OAuth2 client credentials needed to obtain fresh tokens later without re-authenticating.
By default, the credential file is password-protected. Use —no-password to save the file without encryption, which is useful for non-interactive contexts where password prompts would fail.
Use —credential-file to specify an alternative path for the credential file.
Examples:
Set up credentials for reading from a namespace
pelican credentials token setup —read pelican://federation.example.org/namespace/path
Set up credentials for reading and writing
pelican credentials token setup —write pelican://federation.example.org/namespace/path
Set up credentials without password protection
pelican credentials token setup —no-password —read pelican://federation.example.org/namespace/path
Set up credentials to a specific file
pelican credentials token setup —credential-file /path/to/creds.pem —read pelican://federation.example.org/namespace/path
pelican credentials token setup <pelican-url> [flags]Options
--credential-file string Path to the credential file to write
-h, --help help for setup
--no-password Save the credential file without password protection
-r, --read Request a read token
-w, --write Request a write token (implies read)Options inherited from parent commands
--config string config file (default is $HOME/.config/pelican/pelican.yaml)
-d, --debug Enable debug log messages
-f, --federation string Pelican federation to utilize
--json output results in JSON format
-L, --log string Specified log output file
--version Print the version and exitSEE ALSO
- pelican credentials token - Manage the available tokens