Credentials

This command suite manages locally saved credentials. When accessing a remote, credentials are selected by longest matching prefix. For example, when a remote with url https://some-repo/a/b/c is accessed and there are credentials for https://some-repo/a and https://some-repo/a/b, then the latter will be selected for being the longest match.

wrgl credentials authenticate

Authenticate for one or more remotes with email/password.

wrgl credentials authenticate { REMOTE_URI | REMOTE_NAME } [flags]

If REMOTE_NAME is given, login and save credentials for that remote. If REMOTE_URI is given, login at REMOTE_URI/authenticate/ and save credentials for all remotes that have REMOTE_URI as prefix.

Flags

-h, --help

help for authenticate

Inherited flags

--badger-log

set Badger log level, valid options are "error", "warning", "debug", and "info" (defaults to "error")

--cpuprofile

write cpu profile to file

--debug-file

output debug logs to a file

--heapprofile

write heap profile to file

--wrgl-dir

parent directory of repo, default to current working directory.

Examples

# authenticate for origin
wrgl credentials authenticate origin

# authenticate for all repositories on wrgl hub
wrgl credentials authenticate https://hub.wrgl.co/api

wrgl credentials list

List saved credentials by URI prefix.

wrgl credentials list [flags]

Flags

-h, --help

help for list

Inherited flags

--badger-log

set Badger log level, valid options are "error", "warning", "debug", and "info" (defaults to "error")

--cpuprofile

write cpu profile to file

--debug-file

output debug logs to a file

--heapprofile

write heap profile to file

--wrgl-dir

parent directory of repo, default to current working directory.

wrgl credentials remove

Remove credentials matching URIs

wrgl credentials remove URI... [flags]

Flags

-h, --help

help for remove

Inherited flags

--badger-log

set Badger log level, valid options are "error", "warning", "debug", and "info" (defaults to "error")

--cpuprofile

write cpu profile to file

--debug-file

output debug logs to a file

--heapprofile

write heap profile to file

--wrgl-dir

parent directory of repo, default to current working directory.