docs(app_development): add occ commands guide#14853
Merged
Merged
Conversation
Contributor
📖 Documentation Preview📄 2 changed documentation pagesLast updated: Fri, 15 May 2026 17:10:02 GMT |
09fc5a7 to
a603b83
Compare
6 tasks
nickvergessen
requested changes
May 15, 2026
Closes #5460 Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
a603b83 to
6cfa659
Compare
nickvergessen
approved these changes
May 15, 2026
The `occ` label is defined in the admin manual which is a separate Sphinx build, causing an undefined label warning. Replace with an absolute URL per the cross-manual linking convention. Also fix the style guide which incorrectly documented `/latest/` instead of `/server/latest/` as the cross-manual URL pattern. Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com> Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
7cf9fd7 to
c08ad18
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adds a new page to the App development section documenting how to implement
occcommands in Nextcloud apps.Covers:
OC\Core\Command\Baseextends Symfony Console and adds bash completion supportappinfo/info.xml<commands>element with automatic DI container wiringappid:command-name, optional grouping withappid:group:command-name)InputArgument/InputOptionconstants)self::SUCCESS,self::FAILURE,self::INVALID)$input->isInteractive())🖼️ Screenshots
✅ Checklist
codespellor similar and addressed any spelling issues