Skip to content

Commit 2f7452a

Browse files
authored
specify-port-on-run (#124)
1 parent cdf1d45 commit 2f7452a

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

langstream-cli/langstream-cli-commands.md

+5-4
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ To configure the CLI, see [Configuration](langstream-cli-configuration.md).
2828
| download | Download LangStream application code | Example: langstream apps download myapp -o /myfile.zip |
2929
| update | Update an existing application | Example: langstream apps update my-app-id --app “./my-app-files” --i “./instances.yaml” --s “./secrets.yaml” |
3030
| logs | Get application logs | Example: langstream apps logs my-app-id -f “some-app-worker, another-app-worker” |
31-
| ui | Start the UI for the application | Example: langstream apps ui my-app-id |
31+
| ui | Start the UI for the application | Example: langstream apps ui my-app-id --port="8092" (if set to 0, a random port will be used) |
3232

3333
## configure
3434

@@ -49,7 +49,7 @@ Configuration is deprecated. Use [langstream profiles](langstream-cli-commands.m
4949
`docker run` is a command with no subcommands, so this table has arguments that are passed to the `docker run` command.
5050
{% endhint %}
5151

52-
| Arguments | Description | Example |
52+
| Arguments | Description | Example |
5353
| ------------------- | ----------------------------- | ---------------------------------------------------------------------------------------------------- |
5454
| --application, -app | Application directory path | Example: --application="./app-files" Path where the application files are located. Required. |
5555
| --instance, -i | Instance file path | Example: --instance="./instance.yaml" Optional; path to the instance file. |
@@ -62,8 +62,9 @@ Configuration is deprecated. Use [langstream profiles](langstream-cli-commands.m
6262
| --secrets, -s | Secrets file path | Example: --secrets="./secrets.yaml" Optional; path to the secrets file. |
6363
| --memory | Memory for Docker | Example: --memory="4G" Memory allocated to the Docker container. |
6464
| --cpus | CPU for Docker | Example: --cpus="2" CPU cores allocated to the Docker container. |
65-
| --docker-args | Additional Docker arguments | Example: --docker-args "--add-host=example.com:192.168.1.10" Additional arguments to pass to Docker. |
66-
| --docker-command | Command to run Docker | Example: --docker-command="docker-compose" Command used to run |
65+
| --docker-args | Additional Docker arguments | Example: --docker-args "--add-host=example.com:192.168.1.10" |
66+
| --docker-command | Command to run Docker | Example: --docker-command="docker-compose" |
67+
| --ui-port, -up | Port for the local webserver and UI. If 0, a random port is used. | Example: --ui-port="8092" |
6768

6869
## gateway
6970

0 commit comments

Comments
 (0)