Skip to main content

create

create teams

👥 Create a team.

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
{
"account_id": "00000000-0000-0000-0000-000000000000",
"description": "My Team Description",
"name": "My Team"
}

Usage​

csph teams create [flags]

Aliases​

teams create, teams new, team create, team new

Options​

Command Specific​

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

Formatting​

For more information about formatting options, see Formatting.

--fields <strings>
output JSON with the specified fields
--jq <string>
filter JSON output with jq expression

-o, --output <string>

output format: [table|plain|csv|json|yaml]
--template <string>
format JSON using a Go template

Available Fields​

account_id, created_at, description, id, members, name, object, owner_id, updated_at

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 create a team
> csph team create

# create a team with the name "dev"
> csph team create --name dev

# create a team with the name "dev" for a specific account
> csph team create --name dev --account <account-id>

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

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

See also​