{"id":19303410,"url":"https://github.com/woudsma/workspaces-cli","last_synced_at":"2025-04-22T11:32:05.184Z","repository":{"id":106018091,"uuid":"243567528","full_name":"woudsma/workspaces-cli","owner":"woudsma","description":"A small command-line tool to easily list and open all your VS Code Workspaces","archived":false,"fork":false,"pushed_at":"2020-02-28T23:10:48.000Z","size":1419,"stargazers_count":15,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-11T17:45:44.784Z","etag":null,"topics":["cli","code","list","select","studio","virtual","vs-code","vscode","workspace","workspaces"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/woudsma.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-27T16:50:09.000Z","updated_at":"2023-11-19T05:17:27.000Z","dependencies_parsed_at":"2023-12-14T09:00:22.222Z","dependency_job_id":null,"html_url":"https://github.com/woudsma/workspaces-cli","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woudsma%2Fworkspaces-cli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woudsma%2Fworkspaces-cli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woudsma%2Fworkspaces-cli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/woudsma%2Fworkspaces-cli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/woudsma","download_url":"https://codeload.github.com/woudsma/workspaces-cli/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250232197,"owners_count":21396589,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","code","list","select","studio","virtual","vs-code","vscode","workspace","workspaces"],"created_at":"2024-11-09T23:26:17.383Z","updated_at":"2025-04-22T11:32:05.142Z","avatar_url":"https://github.com/woudsma.png","language":"JavaScript","readme":"# Workspaces CLI  \n![Publish to npm](https://github.com/woudsma/workspaces-cli/workflows/Publish%20to%20npm/badge.svg?branch=master)  \n\nA small command-line tool to easily list all your different VS Code Workspaces.  \n\n`ws` searches for all `.code-workspace` files in a user-specified root directory.  \nBy default, `ws` searches only 1 level deep to prevent traversing folders like `node-modules`, `vendor`, etc.\n\n![workspaces-cli-demo](assets/workspace-cli-demo.gif)\n\n---\n## Installation  \n```sh\nnpm i -g @woudsma/workspaces-cli\n```\n\n## Requirements  \n- Node.js version \u003e= 8\n- Make sure you have installed the `code` command in your `$PATH` - [How to](https://code.visualstudio.com/docs/setup/mac#_launching-from-the-command-line)\n\n## Usage  \n#### Create a workspace\nCreate a workspace by opening a project in VS Code, optionally add more projects to your current workspace.  \nSave the workspace with:  \n```\nFile -\u003e Save Workspace As...\n```\n#### Run `ws`\nI've made a `_workspaces` folder in my personal projects folder, where I keep workspaces that include multiple projects. Other workspaces are usually stored in their own project folder. `ws` searches 1 level deep.  \nMore info on [Multi-root workspaces](https://github.com/microsoft/vscode-docs/blob/master/docs/editor/multi-root-workspaces.md).  \nExample:\n```\n$ ws\nWorkspaces root directory: /Users/woudsma/Projects\n? Select workspace …\n❯ _workspaces/hasura-test\n  _workspaces/kirby-react-test\n  _workspaces/mount-spaces\n  workspaces-cli/workspaces-cli\n```\nThe workspace for this project is saved at `/Users/woudsma/Projects/workspaces-cli/workspaces-cli.code-workspace` for example.  \n\n#### CLI\n```\n$ ws [-h|--help]\n```\n`ws` is an alias of `workspaces`.  \n\n## First time configuration  \n`ws` reads your workspaces root directory from `~/.workspacesrc`.  \nIf no configuration can be found, `ws` will try to create a `~/.workspacesrc` file with the workspaces root directory that you've provided.  \n```\n$ ws\nNo configuration found in /Users/woudsma/.workspacesrc\nCreating /Users/woudsma/.workspacesrc\n? Enter workspaces root directory, e.g. ~/Projects › ~/\n```\n## Configuration  \nMultiple root directories can be specified by adding them to `WORKSPACES_ROOT_DIR` in `~/.workspacesrc`, seperated by comma.  \nExample:\n```sh\n# in ~/.workspacesrc\nWORKSPACES_ROOT_DIR=/Users/woudsma/Projects,/Users/woudsma/Company/clients\n```\n\nTurn off the subshell when selecting a workspace.\n```sh\n# USE_SUBSHELL=true (default)\necho USE_SUBSHELL=false \u003e\u003e ~/.workspacesrc\n```\nThe default search depth can be changed by adding `READDIR_DEPTH=\u003cdepth\u003e` to `~/.workspacesrc`.\n```sh\n# READDIR_DEPTH=1 (default)\necho READDIR_DEPTH=2 \u003e\u003e ~/.workspacesrc\n```\n---\nPull requests are welcome!\n\n---\n## License  \n\nMIT.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoudsma%2Fworkspaces-cli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwoudsma%2Fworkspaces-cli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwoudsma%2Fworkspaces-cli/lists"}