Skip to main content

csph services update

update service

⚙️ Rename a service or change its spherelet size.

Renaming keeps the service's URL and custom domains: a name is a label, and the service keeps its ID. If a computesphere.yaml names the service, update it to the new name before you apply it again; applying the old name is refused.

Pull request previews are off for a new project. Turn them on for a project with csph project update <id> --pr-previews on, or for one service with csph service update <id> --pr-previews on; --pr-previews inherit makes a service follow its project again.

Usage​

csph services update <service-id> [flags]

Aliases​

services update, services edit, service update, service edit, svc update, svc edit, svcs update, svcs edit

Options​

Command Specific​

--name <string>
name
--plan <string>
plan ID or code [FLX|MAX|PWR]
--pr-previews <on|off|inherit>
Turn pull request previews on or off for this service, or follow the project's setting (inherit).

Inherited​

--config <string>
config file (default is $HOME/.config/computesphere/configuration.yaml)
--debug
enable debug logging

-h, --help

show this help message

-i, --interactive

run interactively (prompts, pickers, table browser)
--log-level <string>
log level: [trace|debug|info|warn|error|fatal|panic|disabled||api]
--no-color
disable color output
--no-input
disable interactive mode

Examples​

# start an interactive prompt to update a service
> csph service update

# start an interactive prompt to update a service with the given ID
> csph service update <service-id>

# rename a service
> csph service update <service-id> --name api

# change a service's spherelet size
# plan id or code — see 'csph plan list'
> csph service update <service-id> --plan MAX

# turn pull request previews off for one service
> csph service update <service-id> --pr-previews off

# make a service follow its project's pull request previews setting again
> csph service update <service-id> --pr-previews inherit

See also​