Skip to content
Lovelace

ada workspaces

Manage workspaces, the environments that organize agents and tasks

A workspace groups the agents, tasks, and sessions for one project or environment. One workspace is active at a time; commands that take a --workspace option use the active workspace when you omit it. ada workspace is an alias for ada workspaces.

Usage#

bash
ada workspaces <COMMAND> [OPTIONS]

Subcommands#

SubcommandDescription
ada workspaces listList all workspaces
ada workspaces currentShow the active workspace
ada workspaces initCreate a workspace for the current directory
ada workspaces createCreate a workspace
ada workspaces selectSet the active workspace (aliases: switch, use)
ada workspaces updateChange a workspace's name or description
ada workspaces deleteDelete a workspace
ada workspaces syncSync local and remote changes for a workspace
ada workspaces pushPush local workspace changes to the cloud sync target
ada workspaces pullPull remote workspace changes from the cloud sync target

All subcommands accept the global options listed in the command reference.

ada workspaces list#

bash
ada workspaces list
ada workspaces list --status active --format json
ada workspaces list --name api
OptionDescription
--name <NAME>Filter by workspace name
--status <STATUS>Filter by status: active or archived
-f, --format <FORMAT>table (default) or json

ada workspaces current#

bash
ada workspaces current
ada workspaces current --format json
OptionDescription
-f, --format <FORMAT>table (default) or json

ada workspaces init#

Creates a workspace for a project directory. The name defaults to the directory name and the path defaults to the current directory.

bash
cd my-project
ada workspaces init
ada workspaces init --name ecommerce --description "E-commerce platform"
OptionDescription
-n, --name <NAME>Workspace name (defaults to the directory name)
-d, --description <DESCRIPTION>Workspace description
-p, --path <PATH>Workspace path (defaults to the current directory)
-f, --format <FORMAT>table (default) or json

ada workspaces create#

Creates a workspace. --name is required.

bash
ada workspaces create --name client-dashboard
ada workspaces create --name client-dashboard --description "Client analytics" --path ~/code/client-dashboard
OptionDescription
-n, --name <NAME>Workspace name (required)
-d, --description <DESCRIPTION>Workspace description
-p, --path <PATH>Workspace path
-f, --format <FORMAT>table (default) or json

ada workspaces select#

Sets the active workspace by ID. Find IDs with ada workspaces list.

bash
ada workspaces select --id <WORKSPACE_ID>
ada workspaces switch --id <WORKSPACE_ID>
OptionDescription
-i, --id <ID>Workspace ID to activate

ada workspaces update#

bash
ada workspaces update --id <WORKSPACE_ID> --name api-v2 --description "API service, v2"
OptionDescription
-i, --id <ID>Workspace ID to update
--name <NAME>New workspace name
--description <DESCRIPTION>New description
-f, --format <FORMAT>table (default) or json

ada workspaces delete#

Deletes a workspace. Without --yes, the command asks for confirmation.

bash
ada workspaces delete --id <WORKSPACE_ID>
ada workspaces delete --id <WORKSPACE_ID> --yes
OptionDescription
-i, --id <ID>Workspace ID to delete
-y, --yesSkip the confirmation

ada workspaces sync, push, and pull#

sync exchanges local and remote changes, push sends local changes to the cloud sync target, and pull fetches remote changes. All three act on the active workspace unless you pass --workspace.

bash
ada workspaces sync
ada workspaces push --workspace <WORKSPACE_ID>
ada workspaces pull --format json
OptionDescription
--workspace <WORKSPACE>Workspace ID (defaults to the active workspace)
-f, --format <FORMAT>text (default) or json
-v, --verboseShow detailed sync progress

ada sync offers the same operations plus conflict handling (ada sync status, ada sync conflicts, ada sync resolve). Run ada sync --help for details.

Common tasks#

Set up a workspace for a new project and make it active:

bash
cd path/to/project
ada workspaces init
ada workspaces list
ada workspaces select --id <WORKSPACE_ID>
ada workspaces current

Switch between projects:

bash
ada workspaces list
ada workspaces select --id <WORKSPACE_ID>

See the Command Reference for all available commands.