Files
ocis/docs/cli-commands/create-new-cli-command.md
2025-11-14 10:20:01 +01:00

752 B

title, date, geekdocRepo, geekdocEditPath, geekdocFilePath, weight
title date geekdocRepo geekdocEditPath geekdocFilePath weight
Create a New CLI Command 2025-11-13T00:00:00+00:00 https://github.com/owncloud/ocis edit/master/docs/cli-commands/ create-new-cli-command.md 20

{{< toc >}}

{{< hint info >}} Existing commands should be checked for commonly used options whenever a new CLI command is created, regardless of whether it is embedded in a service or not. For an example you can see the [Service Independent CLI]({{< ref "./service_independent_cli.md" >}}) documentation. {{< /hint >}}

CLI Embedded in a Service

These commands are usually located in the <service-name>/pkg/command subfolder.

CLI Independent of a Service

These commands are located in the ocis/pkg/command subfolder.