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
--permission), and on which packages they will work
charmcraft whoami to verify that you are logged in.
-h, --help: Show this help message and exit -v, --verbose: Show debug information and be more verbose -q, --quiet: Only show warnings and errors, not progress -t, --trace: Show all information needed to trace internal behaviour -p, --project-dir: Specify the project's directory (defaults to current) --export: The file to save the credentials to --charm: The charm(s) on which the required credentials would work (this option can be indicated multiple times; defaults to all) --bundle: The bundle(s) on which the required credentials would work (this option can be indicated multiple times; defaults to all) --channel: The channel(s) on which the required credentials would work (this option can be indicated multiple times, defaults to any channel) --permission: The permission(s) that the required credentials will have (this option can be indicated multiple times, defaults to all permissions) --ttl: The time-to-live (in seconds) of the required credentials (defaults to 30 hours)
close create-lib fetch-lib list-lib logout names publish-lib register register-bundle release resource-revisions resources revisions status upload upload-resource whoami
For a summary of all commands, run
charmcraft help --all.
Last updated a month ago.