charmcraft login [options]
Login to Charmhub.
Charmcraft will provide a URL for the Charmhub login. When you have successfully logged in, charmcraft will store a token for ongoing access to Charmhub at the CLI (if
--export option was not used otherwise it will only save the credentials in the indicated file).
charmcraft logout if you want to remove that token from your local system, especially in a shared environment.
If the credentials are exported, they can also be attenuated in several ways specifying their time-to-live (
--ttl), on which channels would work (
--channel), what actions will be able to do (
--permission), and on which packages they will work (using
charmcraft whoami to verify that you are logged in.
||Show this help message and exit|
||Show debug information and be more verbose|
||Only show warnings and errors, not progress|
||Set the verbosity level to ‘quiet’, ‘brief’, ‘verbose’, ‘debug’ or ‘trace’|
||Specify the project’s directory (defaults to current)|
||The file to save the credentials to|
||The charm(s) on which the required credentials would work (this option can be indicated multiple times; defaults to all)|
||The bundle(s) on which the required credentials would work (this option can be indicated multiple times; defaults to all)|
||The channel(s) on which the required credentials would work (this option can be indicated multiple times, defaults to any channel)|
||The permission(s) that the required credentials will have (this option can be indicated multiple times, defaults to all permissions)|
||The time-to-live (in seconds) of the required credentials (defaults to 30 hours)|
Last updated 5 months ago.