---
id: organization-set-default-index
title: set-default
sidebar_position: 2033
---
# 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.

:::tip 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

```bash
sos organization set-default [options]
```

## Options

| Option               | Description               |
| -------------------- | ------------------------- |
| `--organization-uid` | Organization UID (string) |

## Examples

```bash
# 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:

| Option | Alias | Description |
|--------|-------|-------------|
| `--help` | `-h` | Display help information for any command |
| `--version` | `-v` | Display the installed version of the CLI |
| `--api-url` | `-u` | Override the API URL for REST requests |
| `--profile` | | Use a specific profile from ~/.sosrc config |

### Examples

```bash
# 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
```
