@jelou/cli 0.2.3 → 0.2.5

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 (2) hide show
  1. package/README.md +71 -22
  2. package/package.json +6 -6
package/README.md CHANGED
@@ -52,25 +52,73 @@ jelou deploy
52
52
 
53
53
  ## Commands
54
54
 
55
- | Group | Command | Description |
56
- | ------------ | ----------------- | ----------------------------------- |
57
- | **Auth** | `jelou login` | Authenticate with your access token |
58
- | | `jelou logout` | Remove stored credentials |
59
- | | `jelou whoami` | Show current identity and scopes |
60
- | **Workflow** | `jelou init` | Scaffold a new function project |
61
- | | `jelou dev` | Local dev server with hot reload |
62
- | | `jelou deploy` | Deploy to production |
63
- | | `jelou rollback` | Roll back to a previous deployment |
64
- | | `jelou logs` | Stream or fetch function logs |
65
- | **Manage** | `jelou functions` | List, create, delete functions |
66
- | | `jelou secrets` | Manage environment secrets |
67
- | | `jelou tokens` | Manage access tokens |
68
- | | `jelou cron` | View cron schedules |
69
- | | `jelou analytics` | View request/latency metrics |
70
- | **Setup** | `jelou skill` | Install Jelou Functions agent skill |
55
+ | Group | Command | Description |
56
+ | ------------ | ------------------- | ----------------------------------- |
57
+ | **Auth** | `jelou login` | Authenticate with your access token |
58
+ | | `jelou logout` | Remove stored credentials |
59
+ | | `jelou whoami` | Show current identity and scopes |
60
+ | | `jelou auth list` | List saved profiles |
61
+ | | `jelou auth switch` | Switch active profile |
62
+ | | `jelou auth remove` | Remove a saved profile |
63
+ | **Workflow** | `jelou init` | Scaffold a new function project |
64
+ | | `jelou dev` | Local dev server with hot reload |
65
+ | | `jelou deploy` | Deploy to production |
66
+ | | `jelou rollback` | Roll back to a previous deployment |
67
+ | | `jelou logs` | Stream or fetch function logs |
68
+ | **Manage** | `jelou deployments` | List, inspect, download deployments |
69
+ | | `jelou functions` | List, create, delete functions |
70
+ | | `jelou secrets` | Manage environment secrets |
71
+ | | `jelou tokens` | Manage access tokens |
72
+ | | `jelou cron` | View cron schedules |
73
+ | **Setup** | `jelou skill` | Install Jelou Functions agent skill |
71
74
 
72
75
  Run `jelou <command> --help` for flags and usage details.
73
76
 
77
+ ## Profiles
78
+
79
+ Multiple accounts (or environments) can coexist as named profiles. No more
80
+ logging in and out when switching between staging and production.
81
+
82
+ ```bash
83
+ # First login creates a profile (you pick the name)
84
+ jelou login
85
+ # → Profile name: production
86
+
87
+ # Add a second account
88
+ jelou login --token <staging-token> --profile staging
89
+
90
+ # List profiles
91
+ jelou auth list
92
+ # Profile Identity Type Active
93
+ # production token "prod" PAT ✓
94
+ # staging jelou:42 API Key
95
+
96
+ # Switch active profile
97
+ jelou auth switch staging
98
+
99
+ # One-shot override (does not change active profile)
100
+ jelou deploy --profile production
101
+
102
+ # Remove a profile
103
+ jelou auth remove staging
104
+ ```
105
+
106
+ ### Credential Resolution
107
+
108
+ When resolving which credentials to use, the CLI checks (highest priority
109
+ first):
110
+
111
+ 1. `JELOU_TOKEN` environment variable
112
+ 2. `--profile <name>` flag (one-shot, does not persist)
113
+ 3. `JELOU_PROFILE` environment variable
114
+ 4. `activeProfile` in `~/.jelou/credentials.json`
115
+
116
+ ### Migration from Single-Account
117
+
118
+ Existing `~/.jelou/credentials.json` files are automatically migrated to the
119
+ multi-profile format on first access. A `.bak` backup is created. No action
120
+ required.
121
+
74
122
  ## CI / Non-Interactive Mode
75
123
 
76
124
  Every command works headlessly in CI pipelines.
@@ -90,12 +138,13 @@ per-command flags and GitHub Actions examples.
90
138
 
91
139
  ## Configuration
92
140
 
93
- | Source | Purpose |
94
- | --------------- | ------------------------------------------ |
95
- | `jelou.json` | Project config (function slug, entrypoint) |
96
- | `~/.jelou/` | User credentials and API URL override |
97
- | `JELOU_TOKEN` | Access token (overrides saved credentials) |
98
- | `JELOU_API_URL` | API base URL override |
141
+ | Source | Purpose |
142
+ | --------------- | --------------------------------------------------- |
143
+ | `jelou.json` | Project config (function slug, entrypoint) |
144
+ | `~/.jelou/` | User credentials (multi-profile) and API URL |
145
+ | `JELOU_TOKEN` | Access token (highest priority, overrides profiles) |
146
+ | `JELOU_PROFILE` | Select a named profile without `--profile` flag |
147
+ | `JELOU_API_URL` | API base URL override |
99
148
 
100
149
  See the
101
150
  [full configuration reference](../../docs/cli.md#configuration-reference) for
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@jelou/cli",
3
- "version": "0.2.3",
3
+ "version": "0.2.5",
4
4
  "description": "Jelou Functions CLI — deploy serverless TypeScript functions to the edge",
5
5
  "license": "SEE LICENSE IN LICENSE",
6
6
  "repository": {
@@ -18,11 +18,11 @@
18
18
  "LICENSE"
19
19
  ],
20
20
  "optionalDependencies": {
21
- "@jelou/cli-darwin-arm64": "0.2.3",
22
- "@jelou/cli-darwin-x64": "0.2.3",
23
- "@jelou/cli-linux-x64": "0.2.3",
24
- "@jelou/cli-linux-arm64": "0.2.3",
25
- "@jelou/cli-win32-x64": "0.2.3"
21
+ "@jelou/cli-darwin-arm64": "0.2.5",
22
+ "@jelou/cli-darwin-x64": "0.2.5",
23
+ "@jelou/cli-linux-x64": "0.2.5",
24
+ "@jelou/cli-linux-arm64": "0.2.5",
25
+ "@jelou/cli-win32-x64": "0.2.5"
26
26
  },
27
27
  "keywords": [
28
28
  "jelou",