Skip to main content

create

create accounts

🗃️ Create a new account.

The account is created through checkout: this command returns a payment URL. Open it to add a card and finish setting up billing for the account.

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
{
"basic_details": {
"account_name": "My Account",
"country_code": "US"
},
"plan_id": "00000000-0000-0000-0000-000000000000",
"spherelets": [
{
"code": "FLX",
"qty": 1
}
],
"spherestor": 0
}

Usage​

csph accounts create [flags]

Aliases​

accounts create, accounts new, account create, account new

Options​

Command Specific​

--country <string>
country (required)
--file <string>
specify a payload file [json|yaml], has precedence over other flags
--name <string>
name (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 an account
> csph account create

# create an account with a name and country — account names use lowercase
# letters, numbers, and single hyphens only
> csph account create --name my-account --country "US"

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

# create an account via stdin
> cat /path/to/account.json | csph account create

See also​