cloudhop 0.0.0-stage → 0.0.1
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.
- package/LICENSE +21 -0
- package/README.md +27 -2
- package/bin/cloudhop.js +26 -0
- package/package.json +34 -4
package/LICENSE
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 dayepesb
|
|
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,3 +1,28 @@
|
|
|
1
|
-
#
|
|
1
|
+
# cloudhop
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
> 🚧 Early preview. The CLI is under active development.
|
|
4
|
+
|
|
5
|
+
Hop between cloud accounts, roles and regions with one command.
|
|
6
|
+
|
|
7
|
+
```bash
|
|
8
|
+
npm i -g cloudhop
|
|
9
|
+
|
|
10
|
+
hop pragma1 s3 ls # runs `aws s3 ls` with the right account, role and region
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
## Why
|
|
14
|
+
|
|
15
|
+
Working with several AWS SSO portals plus personal accounts means copying
|
|
16
|
+
access keys, editing `~/.aws/config` by hand and logging in again and again.
|
|
17
|
+
cloudhop is a thin proxy over the AWS CLI that:
|
|
18
|
+
|
|
19
|
+
- Adds SSO portals and personal accounts interactively (CLI or local web UI).
|
|
20
|
+
- Discovers every account and role you have access to and creates aliases.
|
|
21
|
+
- Logs you in automatically, only when a session has expired.
|
|
22
|
+
- Never stores long-lived secrets: it uses AWS SSO and `aws login` temporary credentials.
|
|
23
|
+
|
|
24
|
+
Support for other clouds (Azure, Google Cloud) is planned.
|
|
25
|
+
|
|
26
|
+
## License
|
|
27
|
+
|
|
28
|
+
MIT
|
package/bin/cloudhop.js
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
import { readFileSync } from 'node:fs';
|
|
3
|
+
|
|
4
|
+
const { version } = JSON.parse(
|
|
5
|
+
readFileSync(new URL('../package.json', import.meta.url), 'utf8'),
|
|
6
|
+
);
|
|
7
|
+
|
|
8
|
+
const arg = process.argv[2];
|
|
9
|
+
|
|
10
|
+
if (arg === '--version' || arg === '-v') {
|
|
11
|
+
console.log(version);
|
|
12
|
+
process.exit(0);
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
console.log(`cloudhop v${version}
|
|
16
|
+
|
|
17
|
+
Hop between cloud accounts, roles and regions with one command.
|
|
18
|
+
|
|
19
|
+
This is an early preview: the CLI is under active development.
|
|
20
|
+
Follow progress at https://github.com/dayepesb/cloudhop
|
|
21
|
+
|
|
22
|
+
Usage (coming soon):
|
|
23
|
+
cloudhop add Add an AWS SSO portal or personal account
|
|
24
|
+
cloudhop <alias> <args...> Run the aws CLI as <alias>
|
|
25
|
+
hop <alias> <args...> Short alias for cloudhop
|
|
26
|
+
`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,36 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "cloudhop",
|
|
3
|
-
"version": "0.0.
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"version": "0.0.1",
|
|
4
|
+
"description": "Hop between cloud accounts, roles and regions with one command. Automatic login, no copied credentials.",
|
|
5
|
+
"keywords": [
|
|
6
|
+
"cli",
|
|
7
|
+
"aws",
|
|
8
|
+
"sso",
|
|
9
|
+
"iam-identity-center",
|
|
10
|
+
"multi-account",
|
|
11
|
+
"profiles",
|
|
12
|
+
"credentials",
|
|
13
|
+
"cloud"
|
|
14
|
+
],
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"author": "dayepesb",
|
|
17
|
+
"homepage": "https://github.com/dayepesb/cloudhop#readme",
|
|
18
|
+
"repository": {
|
|
19
|
+
"type": "git",
|
|
20
|
+
"url": "git+https://github.com/dayepesb/cloudhop.git"
|
|
21
|
+
},
|
|
22
|
+
"bugs": {
|
|
23
|
+
"url": "https://github.com/dayepesb/cloudhop/issues"
|
|
24
|
+
},
|
|
25
|
+
"type": "module",
|
|
26
|
+
"bin": {
|
|
27
|
+
"cloudhop": "bin/cloudhop.js",
|
|
28
|
+
"hop": "bin/cloudhop.js"
|
|
29
|
+
},
|
|
30
|
+
"files": [
|
|
31
|
+
"bin"
|
|
32
|
+
],
|
|
33
|
+
"engines": {
|
|
34
|
+
"node": ">=20"
|
|
35
|
+
}
|
|
36
|
+
}
|