# Apps and files Last validated: Oct 23, 2026 The `app` and `files` commands act on the project the current token belongs to, or the one `-project` names. Installing, uninstalling, starting and stopping take the operator, as they do in the portal. ## The apps a project has ```sh gko app list gko app show nextcloud ``` `list` prints each app's id, status, version and URL. An app with a job running shows the job beside its status. `show` prints one app's name, chart, release, URL and job as well. ## Installing ```sh gko app install nextcloud gko app install -set adminPassword= -wait nextcloud ``` `-set name=value` passes an install setting from the app's chart, and can be repeated. `-wait` follows the install until the app is running, for up to ten minutes. Without it, the command returns as soon as the install is accepted and `gko app list` shows the status. `-onlyoffice` installs Nextcloud with OnlyOffice. `-fresh ` starts a volume a previous install left empty instead of bringing its files back, and can be repeated. ## Starting and stopping ```sh gko app stop nextcloud gko app start -wait nextcloud ``` Stopping keeps everything the app has: its files, its database and its snapshots. Starting it again brings the same data back. Both accept `-wait` and follow the app until it reaches the wanted state. ## Changing an installed app ```sh gko app restart nextcloud gko app set forgejo token= gko app updates nextcloud hold gko app direct-ports forgejo open gko app onlyoffice nextcloud on ``` These are the app page's actions. `restart` restarts the app's workloads and keeps everything it has. `set` changes the answers to the app's settings by name; the others keep theirs, and an answer the app refuses is printed with the reason. `updates hold` keeps the app on the minor it runs; `updates follow` lets it follow the catalog again and starts the next step at once. `direct-ports open` opens the ports an app such as Forgejo serves outside the web, and `close` shuts them. `app ports forgejo` then says whether each one answers from outside. `onlyoffice on` gives Nextcloud OnlyOffice, and `off` takes it away. ```sh gko app collection forgejo runners > runners.json gko app collection forgejo runners runners.json gko app libraries jellyfin > libraries.json gko app libraries jellyfin libraries.json ``` Some apps have lists of their own, such as Forgejo's Actions runners, and media players have libraries. Without a file, `collection` and `libraries` print them as JSON. With a file, or `-` for stdin, they replace them with what it holds. A library without an `id` is a new one. A library left out is removed, and so are its files. ```sh gko app domain wordpress blog.example.org gko app redirects wordpress add www.example.org gko app redirects wordpress remove www.example.org gko app domain wordpress "" ``` `app records wordpress blog.example.org www.example.org` lists the records those names need and whether each one points here. Without names, it checks the app's own. `app domain` gives an app a custom domain once its records point at the install, and `""` puts it back on the platform's address. `app redirects` adds or removes names that redirect to that domain; each must point at the install first. `app show` prints both. To move an app to a new name and rewrite the URLs it stored, use `rename-domain` below. ## Moving an app to a new hostname ```sh gko app rename-domain -wait nextcloud cloud.example.org ``` A rename runs as a Job on the install. It stops the app, snapshots it, rewrites the URLs the app stored, and starts it again. `-wait` follows the Job; without it the app reads as renaming in `gko app list` until the Job finishes. A rename interrupted on this machine carries on on the install. Only apps whose chart knows how to rewrite its stored URLs can be renamed; the command names the ones that can when it refuses. The new hostname is a hostname you point at the install. It cannot be the portal's address, the sign-in server's, a name under the install's app domain, or a name already used by another project. `-keep-down` leaves the app stopped once the URLs are rewritten. ## Removing an app ```sh gko app uninstall nextcloud ``` This deletes the app and its data: its files, their snapshots and its database. Unless `-yes` is given, it asks you to type the app's name back before it starts, as `files delete` does. There is no option that keeps the data. ## Connecting apps ```sh gko app grant nextcloud forgejo/data gko app grant nextcloud forgejo/data:ro immich/photos ``` `app grant` sets, all at once, the other apps' volumes this app mounts. Each argument is `/`, with `:ro` for a read-only mount. An empty list takes every grant away. The app must be able to take that kind of volume, and the other app must export it. The app's release is updated to mount them. ## Managers ```sh gko app managers radarr theo gko app managers radarr ``` `app managers` sets, all at once, the people who manage this app beside the owner, by username. A manager starts, stops and restarts the app, holds or follows its updates, changes its settings, and looks after its volumes on the Files page. Its domain, what it mounts, who manages it and uninstalling it stay the owner's. An empty list leaves the owner alone. `app show` lists the managers. ## Files ```sh gko files list gko files delete nextcloud gko files delete nextcloud data ``` `files list` prints the project's storage ceiling, what it uses, and every volume with the app it belongs to. A kept volume — one an uninstall left behind — is marked as having no app installed. `files delete` removes a kept volume for good. With no volume name it takes every volume that app kept. Like `app uninstall`, it asks for the name (`nextcloud` or `nextcloud/data`) to be typed back unless `-yes` is given. ```sh gko files ls nextcloud data photos gko files get nextcloud data photos/2026/a.jpg > a.jpg gko files backup immich thumbs off gko files snapshots nextcloud data measure gko files empty app-plex/plex-cache gko files delete-database nextcloud ``` `files ls` reads one folder and `files get` writes one file to stdout, through a reader the install starts on the volume's machine; the first read waits for it. `files backup off` leaves a volume out of the offsite copy, and `on` takes it back in. `files snapshots` measures what a volume's snapshots hold, or with `free` deletes them, which waits while the offsite pass reads them. `files empty` empties a cache or a workspace, and nothing else: the app stops while it runs. `files delete-database` deletes the database an uninstalled app left.