Skip to main content

sos organization set-default

Set a default organization for CLI operations

Description

Sets a default organization that will be used automatically in subsequent CLI commands that require an organization context. This eliminates the need to specify the organization UID for each command. The default organization is stored in the ~/.sosrc configuration file.

Remarks

The default organization can be overridden using the SOS_ORGANIZATION_UID environment variable or by using the --organization-uid flag in individual commands.

Usage

sos organization set-default [options]

Options

OptionTypeDescriptionDefault
--organization-uidstringOrganization UID

Examples

# Interactive selection of default organization
sos organization set-default

# Set specific organization as default
sos organization set-default --organization-uid abc123

Since

1.0.0

Global Options

All commands support the following global options:

OptionAliasDescription
--help-hDisplay help information for any command
--version-vDisplay the installed version of the CLI
--api-url-uOverride the API URL for REST requests
--profileUse a specific profile from ~/.sosrc config

Examples

# Show version
sos --version

# Get help for any command
sos applet --help
sos applet upload --help

# Use custom API endpoint
sos --api-url https://api.example.com applet upload

# Use specific profile
sos --profile production organization list