Organization Sites
Deploy and manage sites under your organization
Sites deployed under an organization use a different URL format and share the organization's storage and site limits.
URL format
Organization sites are served at:
https://{siteSlug}--{orgSlug}.sample.appFor example, if your organization slug is acme and you deploy a site with slug dashboard, the URL is:
https://dashboard--acme.sample.appDeploying via the dashboard
- Switch to your organization using the OrgSwitcher dropdown
- Click New Site and follow the deploy flow
- The site is created under the organization automatically
Deploying via the CLI
One-time setup
Run samplex init with the --org flag to save your organization context:
samplex init --org <organizationId>This writes the organization ID to .samplex.config.json. All subsequent deploys from this directory go to the organization.
Deploy
samplex deploy ./distIf you've run samplex init --org previously, the CLI uses the saved organization ID automatically.
Deploy with a flag
Skip the init step and pass the organization directly:
samplex deploy --org <organizationId> ./distDeploy with an organization API key
Organization API keys automatically scope deploys to the correct organization:
SAMPLEX_API_KEY=org_xxx samplex deploy ./distNo --org flag or init step needed — the key determines the organization.
Find your Organization ID on the Keys page in your organization dashboard.
Site ownership
The deployer is recorded on every site, but the organization owns the site. This means:
- Members can delete their own sites
- Admins and owners can delete any site in the organization
- If a member is removed, their sites remain in the organization
Limits per plan
| Plan | Sites | Storage per site |
|---|---|---|
| Free | 3 | 15 MB |
| Pro | 50 | 500 MB |
| Enterprise | Unlimited | Unlimited |

