Skip to content

Latest commit

 

History

History
177 lines (124 loc) · 4.66 KB

workspaces.md

File metadata and controls

177 lines (124 loc) · 4.66 KB

Workspaces

An Adios Workspace is an editable, source-backed development environment. The CLI can create a workspace from a deployed project, synchronize files in both directions, start a preview runtime, produce a production build, and deploy a linked workload.

Create a workspace

Deploy the project once so its manifest has an application identity, then run:

adios workspace create --name orders-api .

Pass a subproject directory or manifest to open only that project:

adios workspace create --name api ./api
adios workspace create --name web ./web/adios.yaml

The CLI resolves the project's app_id or name and links the new workspace to that workload. You can also be explicit:

adios workspace create --name orders-api --app <app-id> --branch main

To create a standalone workspace that is not yet linked to a workload, omit the project path and --app:

adios workspace create --name scratch --repo git@github.com:example/app.git

If another active workspace uses the same internal repository and branch on an overlapping path, interactive creation asks for confirmation. Automation must pass --allow-branch-conflict explicitly. Prefer separate branches when two workspaces may edit the same files.

Inspect workspaces

adios workspace list
adios workspace get <workspace-id>
adios workspace list --status active --json

workspace, workspaces, and ws are aliases for the same command group.

Push local files

From a project whose manifest contains workspace_id:

adios sync

Or name the workspace and local directory explicitly:

adios sync <workspace-id> ./path/to/project

Preview the operation before changing remote files:

adios sync <workspace-id> . --dry-run

By default, sync creates and updates files but does not remove anything. Add --delete only when the workspace should mirror the local tree exactly:

adios sync <workspace-id> . --delete

That flag deletes remote files that are absent locally. Review a dry run first.

Use --target to place the local source beneath a workspace subdirectory, and repeat --exclude for invocation-specific exclusions:

adios sync <workspace-id> ./api \
  --target services/api \
  --exclude '*.local' \
  --exclude 'fixtures/'

Sync respects Git ignore rules and excludes common generated or dependency directories. Files larger than 25 MiB are skipped by default; adjust the limit with --max-file-mb when the workspace genuinely needs a larger source file.

Pull workspace files

Pull remote changes into a local directory with --pull:

adios sync <workspace-id> . --pull --dry-run
adios sync <workspace-id> . --pull

Adding --delete to a pull removes local files that do not exist in the workspace. Treat that as a destructive mirror operation and inspect the dry run first.

If no workspace ID is supplied, the CLI checks workspace_id in the manifest and then searches for workspaces linked to its application. When several workspaces match, an interactive terminal asks you to choose one.

Start and inspect a preview

adios workspace run start <workspace-id> --wait
adios workspace run status <workspace-id>

The status output includes the preview state and URL when available. Assign a friendly preview alias with:

adios workspace run rename <workspace-id> <preview-name>

Restart or stop the runtime as needed:

adios workspace run restart <workspace-id> --wait
adios workspace run stop <workspace-id> --wait

Without --wait, runtime actions return after they are accepted. Use --json for automation.

Build and deploy

Build the current workspace source into a production artifact:

adios workspace build <workspace-id>

The command waits for completion by default. Queue it without polling when a separate process will inspect the result:

adios workspace build <workspace-id> --no-wait --json
adios workspace build-status <workspace-id> <command-id>

A workspace must be linked to an application before production deployment:

adios workspace link <workspace-id> <app-id>
adios workspace deploy <workspace-id>

Deploy a previously completed workspace build without rebuilding:

adios workspace deploy <workspace-id> --build-id <build-id>

Workspace creation or import does not itself publish the application to production. adios workspace deploy is the explicit production step.

Delete a workspace

adios workspace delete <workspace-id>

Confirm the ID with adios workspace get before deleting it. Workspace deletion and application deletion are separate operations.

Back to the documentation index