diff --git a/appinfo/info.xml b/appinfo/info.xml
index 077ff97..25e00d2 100644
--- a/appinfo/info.xml
+++ b/appinfo/info.xml
@@ -17,4 +17,7 @@
mysql
+
+ OCA\GroupfolderTags\Command\Tag
+
\ No newline at end of file
diff --git a/lib/Command/Tag.php b/lib/Command/Tag.php
new file mode 100644
index 0000000..88b9746
--- /dev/null
+++ b/lib/Command/Tag.php
@@ -0,0 +1,50 @@
+setName('groupfolder-tags:update')
+ ->setDescription('Update or add a tag (and optional tag value) to a groupfolder by id')
+ ->addOption(
+ 'groupfolder_id',
+ null,
+ InputOption::VALUE_REQUIRED,
+ 'Add or update tag of the given groupfolder id'
+ )
+ ->addOption(
+ 'tag_key',
+ null,
+ InputOption::VALUE_REQUIRED,
+ 'Set tag key to given value'
+ )
+ ->addOption(
+ 'tag_value',
+ null,
+ InputOption::VALUE_OPTIONAL,
+ 'Set tag value to given value'
+ );
+ }
+
+ protected function execute(InputInterface $input, OutputInterface $output): int {
+ $groupFolderId = $input->getOption('groupfolder_id');
+ $tagKey = $input->getOption('tag_key');
+ $tagValue = $input->getOption('tag_value');
+
+ $output->writeln($groupFolderId . " " . $tagKey . " " . $tagValue);
+ return 0;
+ }
+}
\ No newline at end of file