You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* docs: deprecate CLI juno use
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
* π Update LLMs.txt snapshot for PR review
* docs: remove modes now documented in cli
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
* π Update LLMs.txt snapshot for PR review
---------
Signed-off-by: David Dal Busco <david.dalbusco@outlook.com>
Co-authored-by: github-actions <41898282+github-actions[bot]@users.noreply.github.com>
Copy file name to clipboardExpand all lines: .llms-snapshots/llms-full.txt
+49-41Lines changed: 49 additions & 41 deletions
Original file line number
Diff line number
Diff line change
@@ -7371,24 +7371,6 @@ If you've previously authenticated your terminal and decide to log in again, the
7371
7371
7372
7372
This allows you to reuse your authorization, especially when creating new modules like satellites or orbiters.
7373
7373
7374
-
#### Modes
7375
-
7376
-
The CLI supports multiple environment modes (`production`, `staging`, `development`, etc.).
7377
-
7378
-
Each mode requires its own login and identity for security reasons. For example: `juno login --mode staging` or `juno login --mode development`. If no mode is specified, it defaults to `production`.
7379
-
7380
-
#### How does it work?
7381
-
7382
-
A new [principal](/docs/terminology.md#principal) is generated on your local machine and added as a administrator [access key](/docs/miscellaneous/access-keys.md) of the selected modules. This principal is then used to authenticate any CLI calls made from your terminal to your satellites, mission controls or other modules.
7383
-
7384
-
The key is saved in the OS-specific user's variables path, for example:
7385
-
7386
-
| OS | Path |
7387
-
| --- | --- |
7388
-
| Mac | `~/Library/Preferences/juno-nodejs` |
7389
-
| Windows | `%APPDATA%\juno-nodejs\Config` (for example, `C:\Users\USERNAME\AppData\Roaming\juno-nodejs\Config`) |
7390
-
| Linux | `~/.config/juno-nodejs` (or `$XDG_CONFIG_HOME/juno-nodejs`) |
7391
-
7392
7374
---
7393
7375
7394
7376
### Logout
@@ -7634,34 +7616,74 @@ Usage: juno open [options]Options: -b, --browser A particular browser t
7634
7616
7635
7617
---
7636
7618
7637
-
### Use
7619
+
### Version
7638
7620
7639
-
Switch between multiple profiles.
7621
+
Check the version of the modules and CLI.
7640
7622
7641
7623
```
7642
-
Usage: juno use [options]Options: -p, --profileThe profile that should be use. -l, --list What are the available profiles. -h, --help Output usage information.
7624
+
Usage: juno init [options]Options: -c, --cli Check only the version of the CLI. -m, --mode Choose which environment to use (production, staging, development). Defaults to production if omitted. --container-url Override a custom container URL. If not provided, defaults to production or the local container in development mode. --console-urlSpecify a custom URL to access the developer Console. -h, --help Output usage information.
7643
7625
```
7644
7626
7645
7627
---
7646
7628
7647
-
### Version
7629
+
### Who am I?
7648
7630
7649
-
Check the version of the modules and CLI.
7631
+
Display your current profile, access key, and links to your satellite.
7650
7632
7651
7633
```
7652
-
Usage: juno init [options]Options: -c, --cli Check only the version of the CLI. -m, --mode Choose which environment to use (production, staging, development). Defaults to production if omitted. --container-url Override a custom container URL. If not provided, defaults to production or the local container in development mode. --console-url Specify a custom URL to access the developer Console. -h, --help Output usage information.
7634
+
Usage: juno whoami [options]Options: -h, --helpOutput usage information. -m, --mode Choose which environment to use (production, staging, development). Defaults to production if omitted. --container-url Override a custom container URL. If not provided, defaults to production or the local container in development mode. --console-url Specify a custom URL to access the developer Console.
7653
7635
```
7654
7636
7655
7637
---
7656
7638
7657
-
### Who am I?
7639
+
## Environment
7658
7640
7659
-
Display your current profile, access key, and links to your satellite.
7641
+
Some CLI flags affect the context of your commands, such as which environment you're working in or which identity you're using. These flags are global and apply to most commands.
7642
+
7643
+
---
7644
+
7645
+
### Mode
7646
+
7647
+
The `--mode` flag lets you target a specific environment when executing CLI commands. This is useful for working across development, staging, and production setups.
7660
7648
7661
7649
```
7662
-
Usage: juno whoami [options]Options: -h, --help Output usage information. -m, --mode Choose which environment to use (production, staging, development). Defaults to production if omitted. --container-url Override a custom container URL. If not provided, defaults to production or the local container in development mode. --console-url Specify a custom URL to access the developer Console.
The value for `--mode` can be any string. If omitted, it defaults to production.
7654
+
7655
+
---
7656
+
7657
+
### Profile
7658
+
7659
+
The optional `--profile` flag lets you switch between different identities. Useful when working with multiple Mission Controls.
7660
+
7661
+
```
7662
+
juno login --profile teamjuno deploy --profile team --mode staging
7663
7663
```
7664
7664
7665
+
It accepts any string. If omitted, no profile is used.
7666
+
7667
+
---
7668
+
7669
+
### Local Persistence
7670
+
7671
+
Unless you run it in headless mode with a token, the Juno CLI stores data locally in the following OS-specific user's variables path to work properly.
7672
+
7673
+
| OS | Path |
7674
+
| --- | --- |
7675
+
| Mac | `~/Library/Preferences/juno-nodejs` |
7676
+
| Windows | `%APPDATA%\juno-nodejs\Config` (for example, `C:\Users\USERNAME\AppData\Roaming\juno-nodejs\Config`) |
7677
+
| Linux | `~/.config/juno-nodejs` (or `$XDG_CONFIG_HOME/juno-nodejs`) |
7678
+
7679
+
These config files are created based on the selected `--profile` and `--mode`:
7680
+
7681
+
| File | Encrypted | Purpose |
7682
+
| --- | --- | --- |
7683
+
| `juno[-profile][-mode]` | β | Stores the [access key](/docs/miscellaneous/access-keys.md) ([principal](/docs/terminology.md#principal)) and list of modules. |
7684
+
| `juno[-profile][-mode]-cli-settings` | | Stores CLI preferences, e.g. whether the access key file is encrypted (to avoid unnecessary prompts). |
7685
+
| `juno[-profile][-mode]-cli-state` | | Stores ephemeral state like applied config hashes. |
7686
+
7665
7687
# Configuration
7666
7688
7667
7689
When the `juno` command is run from your terminal or used in a CI environment, it will automatically attempt to locate a config file named `juno.config.ts` or `juno.config.js` or `juno.config.json` within your project's root directory.
By default, the CLI runs command for the `production` mode.
8116
-
8117
-
This means when running a `juno` command in your terminal, it will pass the mode `production` to read your configuration.
8118
-
8119
-
You can overwrite the default mode used for a command by passing the `--mode` option flag. For example, if you want to deploy your app for a `staging` mode:
8120
-
8121
-
```
8122
-
juno deploy --mode staging
8123
-
```
8124
-
8125
-
---
8126
-
8127
8135
## Multiple Environments
8128
8136
8129
8137
You might want to deploy or manage a project across different environments, such as staging and production. Juno supports this through the `ids` field, allowing you to define separate Satellite IDs for each ([mode](#modes)).
Copy file name to clipboardExpand all lines: docs/reference/cli.mdx
+52-28Lines changed: 52 additions & 28 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -61,26 +61,6 @@ If you've previously authenticated your terminal and decide to log in again, the
61
61
62
62
This allows you to reuse your authorization, especially when creating new modules like satellites or orbiters.
63
63
64
-
#### Modes
65
-
66
-
The CLI supports multiple environment modes (`production`, `staging`, `development`, etc.).
67
-
68
-
Each mode requires its own login and identity for security reasons.
69
-
For example: `juno login --mode staging` or `juno login --mode development`.
70
-
If no mode is specified, it defaults to `production`.
71
-
72
-
#### How does it work?
73
-
74
-
A new [principal] is generated on your local machine and added as a administrator [access key](../miscellaneous/access-keys.md) of the selected modules. This principal is then used to authenticate any CLI calls made from your terminal to your satellites, mission controls or other modules.
75
-
76
-
The key is saved in the OS-specific user's variables path, for example:
| Windows |`%APPDATA%\juno-nodejs\Config` (for example, `C:\Users\USERNAME\AppData\Roaming\juno-nodejs\Config`) |
82
-
| Linux |`~/.config/juno-nodejs` (or `$XDG_CONFIG_HOME/juno-nodejs`) |
83
-
84
64
---
85
65
86
66
### Logout
@@ -292,14 +272,6 @@ import Open from "./cli/open.md";
292
272
293
273
---
294
274
295
-
### Use
296
-
297
-
importUsefrom"./cli/use.md";
298
-
299
-
<Use />
300
-
301
-
---
302
-
303
275
### Version
304
276
305
277
importVersionfrom"./cli/version.md";
@@ -314,6 +286,58 @@ import WhoAmI from "./cli/whoami.md";
314
286
315
287
<WhoAmI />
316
288
289
+
---
290
+
291
+
## Environment
292
+
293
+
Some CLI flags affect the context of your commands, such as which environment you're working in or which identity you're using. These flags are global and apply to most commands.
294
+
295
+
---
296
+
297
+
### Mode
298
+
299
+
The `--mode` flag lets you target a specific environment when executing CLI commands. This is useful for working across development, staging, and production setups.
300
+
301
+
```bash
302
+
juno login --mode development
303
+
juno deploy --mode staging
304
+
```
305
+
306
+
The value for `--mode` can be any string. If omitted, it defaults to production.
307
+
308
+
---
309
+
310
+
### Profile
311
+
312
+
The optional `--profile` flag lets you switch between different identities. Useful when working with multiple Mission Controls.
313
+
314
+
```bash
315
+
juno login --profile team
316
+
juno deploy --profile team --mode staging
317
+
```
318
+
319
+
It accepts any string. If omitted, no profile is used.
320
+
321
+
---
322
+
323
+
### Local Persistence
324
+
325
+
Unless you run it in headless mode with a token, the Juno CLI stores data locally in the following OS-specific user's variables path to work properly.
By default, the CLI runs command for the `production` mode.
487
-
488
-
This means when running a `juno` command in your terminal, it will pass the mode `production` to read your configuration.
489
-
490
-
You can overwrite the default mode used for a command by passing the `--mode` option flag. For example, if you want to deploy your app for a `staging` mode:
491
-
492
-
```bash
493
-
juno deploy --mode staging
494
-
```
495
-
496
-
---
497
-
498
484
## Multiple Environments
499
485
500
486
You might want to deploy or manage a project across different environments, such as staging and production. Juno supports this through the `ids` field, allowing you to define separate Satellite IDs for each [mode](#modes).
0 commit comments