Skip to main content

create

create services

⚙️ Create a new service.

This command supports reading input from a file. Files can be supplied via the --file flag or piped into the command.

Example of file structure
{
"name": "Demo Service",
"plan_id": "FLX",
"project_id": "00000000-0000-0000-0000-000000000000",
"type": "deploy_app"
}

Usage​

csph services create [flags]

Aliases​

services create, services new, service create, service new, svc create, svc new, svcs create, svcs new

Options​

Command Specific​

--file <string>
specify a payload file [json|yaml], has precedence over other flags (required)

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 session to create a service
> csph service create

# create a service from a file
> csph service create --file /path/to/service.yaml

# create a service via stdin
> cat /path/to/service.json | csph service create

See also​