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#
ada workspaces <COMMAND> [OPTIONS]
Subcommands#
| Subcommand | Description |
|---|---|
ada workspaces list | List all workspaces |
ada workspaces current | Show the active workspace |
ada workspaces init | Create a workspace for the current directory |
ada workspaces create | Create a workspace |
ada workspaces select | Set the active workspace (aliases: switch, use) |
ada workspaces update | Change a workspace's name or description |
ada workspaces delete | Delete a workspace |
ada workspaces sync | Sync local and remote changes for a workspace |
ada workspaces push | Push local workspace changes to the cloud sync target |
ada workspaces pull | Pull remote workspace changes from the cloud sync target |
All subcommands accept the global options listed in the command reference.
ada workspaces list#
ada workspaces list
ada workspaces list --status active --format json
ada workspaces list --name api
| Option | Description |
|---|---|
--name <NAME> | Filter by workspace name |
--status <STATUS> | Filter by status: active or archived |
-f, --format <FORMAT> | table (default) or json |
ada workspaces current#
ada workspaces current
ada workspaces current --format json
| Option | Description |
|---|---|
-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.
cd my-project
ada workspaces init
ada workspaces init --name ecommerce --description "E-commerce platform"
| Option | Description |
|---|---|
-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.
ada workspaces create --name client-dashboard
ada workspaces create --name client-dashboard --description "Client analytics" --path ~/code/client-dashboard
| Option | Description |
|---|---|
-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.
ada workspaces select --id <WORKSPACE_ID>
ada workspaces switch --id <WORKSPACE_ID>
| Option | Description |
|---|---|
-i, --id <ID> | Workspace ID to activate |
ada workspaces update#
ada workspaces update --id <WORKSPACE_ID> --name api-v2 --description "API service, v2"
| Option | Description |
|---|---|
-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.
ada workspaces delete --id <WORKSPACE_ID>
ada workspaces delete --id <WORKSPACE_ID> --yes
| Option | Description |
|---|---|
-i, --id <ID> | Workspace ID to delete |
-y, --yes | Skip 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.
ada workspaces sync
ada workspaces push --workspace <WORKSPACE_ID>
ada workspaces pull --format json
| Option | Description |
|---|---|
--workspace <WORKSPACE> | Workspace ID (defaults to the active workspace) |
-f, --format <FORMAT> | text (default) or json |
-v, --verbose | Show 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:
cd path/to/project
ada workspaces init
ada workspaces list
ada workspaces select --id <WORKSPACE_ID>
ada workspaces current
Switch between projects:
ada workspaces list
ada workspaces select --id <WORKSPACE_ID>
Related Commands#
- ada agents - Agents run in the active workspace unless you pass
--workspace - ada sessions - Session history
- ada chat - Start a conversation
Related Guides#
See the Command Reference for all available commands.