Sample.app
Organizations

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.app

For example, if your organization slug is acme and you deploy a site with slug dashboard, the URL is:

https://dashboard--acme.sample.app

Deploying via the dashboard

  1. Switch to your organization using the OrgSwitcher dropdown
  2. Click New Site and follow the deploy flow
  3. 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 ./dist

If 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> ./dist

Deploy with an organization API key

Organization API keys automatically scope deploys to the correct organization:

SAMPLEX_API_KEY=org_xxx samplex deploy ./dist

No --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

PlanSitesStorage per site
Free315 MB
Pro50500 MB
EnterpriseUnlimitedUnlimited

On this page