From 774a5c9b1e3b96041aabf413b5bdcf0a8492ffcc Mon Sep 17 00:00:00 2001 From: rad-ci-bot Date: Tue, 14 Jan 2025 02:16:11 +0000 Subject: [PATCH] Autogenerate reference docs Signed-off-by: rad-ci-bot --- .../reference/cli/rad_resource-type.md | 1 + .../reference/cli/rad_resource-type_create.md | 58 +++++++++++++++++++ 2 files changed, 59 insertions(+) create mode 100644 docs/content/reference/cli/rad_resource-type_create.md diff --git a/docs/content/reference/cli/rad_resource-type.md b/docs/content/reference/cli/rad_resource-type.md index 4a832051b..d08572992 100644 --- a/docs/content/reference/cli/rad_resource-type.md +++ b/docs/content/reference/cli/rad_resource-type.md @@ -31,6 +31,7 @@ Manage resource types ### SEE ALSO * [rad]({{< ref rad.md >}}) - Radius CLI +* [rad resource-type create]({{< ref rad_resource-type_create.md >}}) - Create or update a resource type * [rad resource-type delete]({{< ref rad_resource-type_delete.md >}}) - Delete resource provider * [rad resource-type list]({{< ref rad_resource-type_list.md >}}) - List resource resource types * [rad resource-type show]({{< ref rad_resource-type_show.md >}}) - Show resource resource type diff --git a/docs/content/reference/cli/rad_resource-type_create.md b/docs/content/reference/cli/rad_resource-type_create.md new file mode 100644 index 000000000..609e81cc9 --- /dev/null +++ b/docs/content/reference/cli/rad_resource-type_create.md @@ -0,0 +1,58 @@ +--- +type: docs +title: "rad resource-type create CLI reference" +linkTitle: "rad resource-type create" +slug: rad_resource-type_create +url: /reference/cli/rad_resource-type_create/ +description: "Details on the rad resource-type create Radius CLI command" +--- +## rad resource-type create + +Create or update a resource type + +### Synopsis + +Create or update a resource type from a resource provider manifest. + + Resource types are user defined types such as 'Mycompany.Messaging/plaid'. + + Creating a resource type defines a new type that can be used in applications. + + Input can be passed in using a JSON or YAML file using the --from-file option. + + +``` +rad resource-type create [input] [flags] +``` + +### Examples + +``` + +# Create a resource type from YAML file +rad resource-type create myType --from-file /path/to/input.yaml + +# Create a resource type from JSON file +rad resource-type create myType --from-file /path/to/input.json + +``` + +### Options + +``` + -f, --from-file string The input file. May be an absolute path or a path relative to the current working directory + -h, --help help for create + -o, --output string output format (supported formats are json, table) (default "table") + -w, --workspace string The workspace name +``` + +### Options inherited from parent commands + +``` + --config string config file (default "$HOME/.rad/config.yaml") +``` + +### SEE ALSO + +* [rad resource-type]({{< ref rad_resource-type.md >}}) - Manage resource types +