vercel-account-manager 0.1.0 → 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +47 -7
  3. package/package.json +4 -2
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 breadoncee
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md CHANGED
@@ -1,23 +1,55 @@
1
+ <img src="https://raw.githubusercontent.com/breadoncee/vercel-account-manager/main/assets/logo.svg" width="64" height="64" alt="vcm pixel logo">
2
+
1
3
  # vcm
2
4
 
3
- `vcm` is a small account and team manager for the [Vercel CLI](https://vercel.com/docs/cli). It gives separate Vercel logins names, remembers a global default account, and can pin an account and team to a project.
5
+ Manage multiple [Vercel CLI](https://vercel.com/docs/cli) accounts and teams. Set a global default, or pin an account and team to a project with `.vcmrc`.
6
+
7
+ [npm](https://www.npmjs.com/package/vercel-account-manager) · [Releases](https://github.com/breadoncee/vercel-account-manager/releases) · [MIT license](LICENSE)
4
8
 
5
- ## Install with npm
9
+ ## Quick start
6
10
 
7
- Install the [Vercel CLI](https://vercel.com/docs/cli) first, then install `vcm` from npm:
11
+ Install the Vercel CLI and [`vercel-account-manager` from npm](https://www.npmjs.com/package/vercel-account-manager):
8
12
 
9
13
  ```sh
10
14
  npm install -g vercel
11
15
  npm install -g vercel-account-manager
12
16
  ```
13
17
 
14
- The package exposes the `vcm` command on macOS and Linux. You can also install directly from [GitHub](https://github.com/breadoncee/vercel-account-manager) with `npm install -g github:breadoncee/vercel-account-manager`.
18
+ If you are already logged in to Vercel, keep that login as `personal`. Add a second account with a one-time login, then choose the default and pin a team to a project:
19
+
20
+ ```sh
21
+ vcm add personal --default
22
+ vcm add work
23
+ vcm use --global personal
24
+
25
+ cd my-project
26
+ vcm use work my-team
27
+ vcm status
28
+ vcm deploy
29
+ ```
30
+
31
+ The package exposes `vcm` on macOS and Linux. Replace `work`, `my-team`, and `my-project` with your names.
32
+
33
+ ![Terminal example showing global account selection, a project account and team, and status](https://raw.githubusercontent.com/breadoncee/vercel-account-manager/main/assets/demo.gif)
34
+
35
+ The project selection lives in `.vcmrc`. Other projects keep using your global default.
36
+
37
+ ## How selection works
38
+
39
+ | Where you run a command | Account and team used |
40
+ | --- | --- |
41
+ | In a project with `.vcmrc` | The account and optional team in the closest `.vcmrc` |
42
+ | Elsewhere | The global default account and that account's Vercel CLI default team |
43
+
44
+ An explicit `--scope` or `--team` on a Vercel command takes precedence over a project's team setting.
15
45
 
16
46
  ## Install from a clone
17
47
 
18
48
  Clone this repository and run:
19
49
 
20
50
  ```sh
51
+ git clone https://github.com/breadoncee/vercel-account-manager.git
52
+ cd vercel-account-manager
21
53
  ./install.sh
22
54
  ```
23
55
 
@@ -29,7 +61,7 @@ export PATH="$HOME/.local/bin:$PATH"
29
61
 
30
62
  To update a previous installation after pulling changes, run `./install.sh --force`. Set `VCM_INSTALL_DIR` to an absolute path if you prefer a different installation directory.
31
63
 
32
- ## Add accounts
64
+ ## Manage accounts
33
65
 
34
66
  If you are already logged in with the Vercel CLI, register that login without authenticating again:
35
67
 
@@ -51,7 +83,7 @@ vcm add work "$HOME/.config/vercel-work"
51
83
 
52
84
  Use `vcm login work` if you need to refresh that account's login later.
53
85
 
54
- ## Use an account and team for a project
86
+ ## Pin an account and team to a project
55
87
 
56
88
  From the project directory, run:
57
89
 
@@ -72,7 +104,7 @@ Commands run in that directory or its subdirectories use this account and team a
72
104
 
73
105
  Remove the project's `.vcmrc` when you want it to use the global fallback again.
74
106
 
75
- Project team selection is passed to Vercel as `--scope` for each command, so it does not change the account's global team. Explicit `--scope` or `--team` flags on a command take precedence. An account can also be pinned without a team using `vcm use work`; in that case Vercel's default team for that account applies.
107
+ Project team selection is passed to Vercel as `--scope` for each command, so it does not change the account's global team. An account can also be pinned without a team using `vcm use work`; in that case Vercel's default team for that account applies.
76
108
 
77
109
  ## Set the global fallback
78
110
 
@@ -119,3 +151,11 @@ sh tests/run.sh
119
151
  ```
120
152
 
121
153
  The test uses a fake `vercel` command; it does not access your accounts.
154
+
155
+ ## Contributing
156
+
157
+ Bug reports and pull requests are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for setup, tests, and contribution guidelines.
158
+
159
+ ## License
160
+
161
+ MIT. See [LICENSE](LICENSE).
package/package.json CHANGED
@@ -1,7 +1,8 @@
1
1
  {
2
2
  "name": "vercel-account-manager",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "description": "Switch Vercel CLI accounts and teams with project-specific defaults",
5
+ "license": "MIT",
5
6
  "repository": {
6
7
  "type": "git",
7
8
  "url": "git+https://github.com/breadoncee/vercel-account-manager.git"
@@ -16,7 +17,8 @@
16
17
  },
17
18
  "files": [
18
19
  "bin/vcm",
19
- "README.md"
20
+ "README.md",
21
+ "LICENSE"
20
22
  ],
21
23
  "os": [
22
24
  "darwin",