File: metadata.md

package info (click to toggle)
azure-cli 2.82.0-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 2,359,416 kB
  • sloc: python: 1,910,381; sh: 1,343; makefile: 406; cs: 145; javascript: 74; sql: 37; xml: 21
file content (61 lines) | stat: -rw-r--r-- 1,482 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
Extension Metadata
==================

Additional metadata can be added to your extension.

This is useful if you want to:
- Specify a version contract for your extension and the CLI.
- etc.


How To
------

Create the file `azext_metadata.json` under your extension.

For example `azext_*/azext_metadata.json`.

In your `setup.py`, include the following:
``` python
package_data={'azext_*': ['azext_metadata.json']}
```

Now, the CLI will be able to read your extension metadata.

Note: Replace `*` with your module name.

Python documentation - [Installing Package Data](https://docs.python.org/2/distutils/setupscript.html#installing-package-data)


Metadata Format
---------------

This documents the known metadata entries.

Note: You can optionally extend this with your own metadata by adding your own namespace. We use the `azext` namespace.

### azext.minCliCoreVersion
Description: The minimum CLI core version required (inclusive).
Exclude to not specify a minimum.

Type: `string`

Example: `"azext.minCliCoreVersion": "2.0.10"`

### azext.maxCliCoreVersion
Description: The maximum CLI core version required (inclusive).
Exclude to not specify a maximum.

Type: `string`

Example: `"azext.maxCliCoreVersion": "2.0.15"`

### azext.isPreview
Description: Indicate that the extension is in preview.

### azext.isExperimental
Description: Indicate that the extension is experimental and not covered by customer support.

Type: `boolean`

Example: `"azext.isPreview": true`