You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
inspect Display details of a specific feature, template, or collection
22
+
list Overview of collections
23
+
search Text search the `id`, `keywords`, and `description` fields of templates or features
24
+
help Print this message or the help of the given subcommand(s)
25
+
26
+
Options:
27
+
-p, --pull-index Pull the index of features & templates
28
+
-v, --verbose... More output per occurrence
29
+
-q, --quiet... Less output per occurrence
30
+
-h, --help Print help
31
+
-V, --version Print version
14
32
```
15
33
16
34
All of the commands depend on a local copy of the _generated_[collection index](https://github.com/devcontainers/devcontainers.github.io/blob/gh-pages/_data/collection-index.yml).
17
35
18
36
```shell
19
-
$ tyedev --pull-index
37
+
$ tyedev --pull-index --verbose
38
+
[2023-11-23T15:28:33.056Z INFO tyedev] Saved to /home/vscode/.local/share/tyedev/devcontainer-index.json
20
39
```
21
40
22
41
### Features
23
42
24
-
...
43
+
The `tyedev` application is organized into sub-commands.
25
44
26
45
#### tyedev init
27
46
28
-
Use to start a new project. Provide no arguments for the default interactive experience. Use `--help` to learn what can be provided as arguments.
47
+
Use to start a new project. Provide no arguments for the default interactive experience.
48
+
49
+
```shell
50
+
$ tyedev init --help
51
+
Create new devcontainer
52
+
53
+
Usage: tyedev init [OPTIONS]
54
+
55
+
Options:
56
+
-z, --non-interactive Avoid interactive prompts
57
+
-s, --attempt-single-file Write to ".devcontainer.json" when using an `image`type template
58
+
-v, --verbose... More output per occurrence
59
+
-q, --quiet... Less output per occurrence
60
+
-r, --remove-comments Strip comments from the generated devcontainer.json
61
+
-t, --template-id <OCI_REF> Reference to a Template in a supported OCI registry
62
+
-f, --include-features <OCI_REF> Add the given features, may specify more than once
63
+
--include-deprecated Include deprecated results when searching
64
+
-w, --workspace-folder <DIRECTORY> Target workspace for the devcontainer configuration
65
+
-h, --help Print help
66
+
```
29
67
30
68
Note that `--remove-comments` is not yet actually supported. A better `jsonc` library would be helpful. May need to write my own.
31
69
32
70
#### tyedev inspect
33
71
34
-
Describe all details of a specific template or feature. The `id` is a required argument. Use as an aid when editing an existing `devcontainer.json`.
72
+
Describe all details of a specific template or feature. Use as an aid when editing an existing `devcontainer.json`.
73
+
74
+
```shell
75
+
$ tyedev inspect --help
76
+
Display details of a specific feature, template, or collection
77
+
78
+
Usage: tyedev inspect [OPTIONS] <OCI_REF>
79
+
80
+
Arguments:
81
+
<OCI_REF> The `id` to inspect
82
+
83
+
Options:
84
+
-d, --display-as <FORMAT> Format for displaying the configuration [default: table] [possible values: table, json,
85
+
none]
86
+
--install-sh Read the `install.sh` script of a given feature
87
+
-v, --verbose... More output per occurrence
88
+
-q, --quiet... Less output per occurrence
89
+
--show-files List the filenames of a given feature or template
90
+
-h, --help Print help
91
+
```
92
+
93
+
The `--show-files` option exists to assist authors with debugging a missing file problem.
94
+
95
+
The `--install-sh` option exists for debugging container creation failures.
35
96
36
97
#### tyedev list
37
98
38
-
List collections overview. With `--collection-id` option display all features or templates for the given collection.
99
+
List collections overview. Akin to [containers.dev/collections](https://containers.dev/collections).
100
+
101
+
```shell
102
+
$ tyedev list --help
103
+
Overview of collections
104
+
105
+
Usage: tyedev list [OPTIONS]
106
+
107
+
Options:
108
+
-C, --collection-id <OCI_REF> Display a given collection, including features and templates
109
+
-v, --verbose... More output per occurrence
110
+
-q, --quiet... Less output per occurrence
111
+
-h, --help Print help
112
+
```
113
+
114
+
With `--collection-id` option display all features or templates for the given collection.
0 commit comments