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
That's it. On first run, SML will guide you through a one-time setup. After that, running `sml` again will take you straight to launching a model.
31
30
32
-
### Initialization
31
+
The rest of this section documents subcommands and CLI arguments for advanced or automated use cases.
33
32
34
-
The first time you run `sml` command, you will be prompted to do the initialization, which includes providing necessary credentials and configurations.
33
+
### Subcommands
35
34
36
-
There is three ways to initialize the mean of launching commands for the CLI as listed below.
|`sml quickstart`| Launch a model with guided prompts |
39
+
|`sml advanced`| Launch a model with advanced configuration (coming soon) |
37
40
38
-
- FirecREST: You will be able to run the CLI on your local machine and the CLI will use FirecREST to submit jobs. You will need to provide your FirecREST credentials during the initialization. If you don't have the credentials, you can follow the instructions in the [Appendix](#acquiring-firecrest-credentials) to acquire them.
41
+
### Initialization (`sml init`)
42
+
43
+
Run `sml init` to configure SML. You will be prompted to provide necessary credentials and configurations.
44
+
45
+
There are three ways to initialize the launcher:
46
+
47
+
- FirecREST: Run the CLI on your local machine; jobs are submitted via FirecREST. You will need to provide your FirecREST credentials. If you don't have them, follow the instructions in the [Appendix](#acquiring-firecrest-credentials).
39
48
- Remote Launcher: Not operational yet.
40
49
- SLURM: Not operational yet.
41
50
42
-
For health check, you will be prompted to provide your CSCS API key. If you don't have the API key, you can follow the instructions in the [Appendix](#acquiring-cscs-api-key) to acquire it.
51
+
For health check, you will be prompted to provide your CSCS API key. If you don't have the API key, follow the instructions in the [Appendix](#acquiring-cscs-api-key).
52
+
53
+
All prompts can be pre-filled via CLI arguments to skip interactive prompts:
|`--remote-launcher-address`| Remote launcher address (if using `remote`) |
63
+
|`--remote-launcher-auth-token`| Remote launcher auth token (if using `remote`) |
64
+
|`--cscs-api-key`| CSCS API key for health checks |
65
+
|`--telemetry-endpoint`| Endpoint for telemetry reports |
66
+
67
+
### Launching a Model (`sml quickstart`)
43
68
44
-
### Launching a Model
69
+
After completing initialization, run `sml quickstart` (or just `sml`). The CLI will guide you through selecting a model and providing the necessary launch configuration.
45
70
46
-
After completing the initialization, you can simply run the `sml` command. The CLI will guide you through the process of launching a model, which includes selecting a model, providing necessary information for the launch, and confirming the launch.
71
+
All prompts can be pre-filled via CLI arguments to skip interactive prompts:
This file will be sourced when running the tests with `make test`, and the environment variables will be available for the tests.
111
+
65
112
### Common Commands
66
113
67
114
There is a `Makefile` with common development commands.
@@ -94,7 +141,7 @@ There is a `Makefile` with common development commands.
94
141
95
142
### Acquiring FirecREST Credentials
96
143
97
-
Please follow the instructions in the [FirecREST documentation](https://docs.cscs.ch/services/devportal/#manage-your-applications) to acquire the necessary credentials for authentication.
144
+
Please follow the instructions in the [FirecREST documentation](https://docs.cscs.ch/services/devportal/#manage-your-applications) to acquire the necessary credentials for authentication from [Developer Portal](https://developer.svc.cscs.ch/devportal/apis).
0 commit comments