Skip to content

Commit 162b7b0

Browse files
authored
Merge pull request #12261 from nextcloud/feat/add-subscription-calendar-occ-command
feat(caldav): create subscriptions via occ
2 parents c0ad730 + b5f0cfd commit 162b7b0

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

admin_manual/occ_command.rst

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -515,6 +515,7 @@ A set of commands to create and manage addressbooks and calendars::
515515
dav
516516
dav:create-addressbook Create a dav addressbook
517517
dav:create-calendar Create a dav calendar
518+
dav:create-subscription Create a dav calendar subscription
518519
dav:delete-calendar Delete a dav calendar
519520
dav:fix-missing-caldav-changes Insert missing calendarchanges rows for existing events
520521
dav:list-calendars List all calendars of a user
@@ -536,6 +537,20 @@ This example creates a new calendar for molly::
536537

537538
Molly will immediately see these in the Calendar and Contacts apps.
538539

540+
The syntax for ``dav:create-subscription`` is
541+
``dav:create-subscription [user] [name] [url] [optional color]``. This example creates the subscription subscription for the lunar
542+
calendar ``Lunar Calendar`` for the user molly::
543+
544+
sudo -u www-data php occ dav:create-subscription molly "Lunar Calendar" webcal://cantonbecker.com/astronomy-calendar/astrocal.ics
545+
546+
Molly will immediately see this new subscription calendar in the Calendar app.
547+
548+
Optionally, a color for the new subscription calendar can be passed as a HEX color code::
549+
550+
sudo -u www-data php occ dav:create-subscription molly "Lunar Calendar" calendar webcal://cantonbecker.com/astronomy-calendar/astrocal.ics "#ff5733"
551+
552+
If not set, the theming default color will be used.
553+
539554
``dav:delete-calendar [--birthday] [-f|--force] <uid> [<name>]`` deletes the
540555
calendar named ``name`` (or the birthday calendar if ``--birthday`` is
541556
specified) of the user ``uid``. You can use the force option ``-f`` or

0 commit comments

Comments
 (0)