set-resource-architectures

Set the architectures for a resource revision in Charmhub.

Each resource revision is tagged with one or more architectures. If a revision is incorrectly tagged, this command can modify the architecture tags for that resource revision.

For example:

$ charmcraft resource-revisions my-charm my-resource Revision Created at Size Architectures 1 2020-11-15 T11:13:15Z 183151 riscv64 $ charmcraft set-resource-architectures my-charm my-resource –revision=1 arm64,armhf Revision 1 of ‘my-resource’ on charm ‘my-charm’ set to architectures: arm64,armhf $ charmcraft resource-revisions my-charm my-resource Revision Created at Size Architectures 1 2020-11-15 T11:13:15Z 183151 arm64,armhf

Usage

charmcraft set-resource-architectures [options] <None> <charm-name> <resource-name> <None>

Required

None

Comma-separated list of architectures.

charm-name

The name of the charm.

resource-name

The resource name.

None

A revision to update.

Options

--format

Produce the result in the specified format (currently only ‘json’).

Global options

-h or --help

Show this help message and exit.

-q or --quiet

Only show warnings and errors, not progress.

-v or --verbose

Show debug information and be more verbose.

--verbosity

Set the verbosity level to ‘quiet’, ‘brief’, ‘verbose’, ‘debug’ or ‘trace’.

-V or --version

Show the application version and exit.