-
Notifications
You must be signed in to change notification settings - Fork 38
docs: Document --env flag for serverless create command #627
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
2ecd418
Add --env flag documentation for serverless create
promptless[bot] 2866332
Merge branch 'main' into promptless/serverless-create-env-flag
promptless[bot] df0856e
Merge branch 'main' into promptless/serverless-create-env-flag
promptless[bot] 5a0875b
Merge branch 'main' into promptless/serverless-create-env-flag
promptless[bot] b7b48ba
Merge branch 'main' into promptless/serverless-create-env-flag
promptless[bot] 66079cf
Merge branch 'main' into promptless/serverless-create-env-flag
promptless[bot] 64e6a44
Merge branch 'main' into promptless/serverless-create-env-flag
promptless[bot] 00129af
Merge branch 'main' into promptless/serverless-create-env-flag
promptless[bot] 5a2413f
Merge branch 'main' into promptless/serverless-create-env-flag
promptless[bot] a21ee30
Merge branch 'main' into promptless/serverless-create-env-flag
promptless[bot] 6f58304
Merge branch 'main' into promptless/serverless-create-env-flag
gwestersf File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -68,9 +68,14 @@ runpodctl serverless create --name "my-endpoint" --template-id "tpl_abc123" | |
| # Create from a Hub repo | ||
| runpodctl hub search vllm # Find the hub ID | ||
| runpodctl serverless create --hub-id cm8h09d9n000008jvh2rqdsmb --name "my-vllm" | ||
|
|
||
| # Create from a Hub repo with custom environment variables | ||
| runpodctl serverless create --hub-id cm8h09d9n000008jvh2rqdsmb --name "my-vllm" \ | ||
| --env MODEL_NAME=meta-llama/Llama-3.1-8B-Instruct \ | ||
| --env MAX_TOKENS=4096 | ||
| ``` | ||
|
|
||
| When using `--hub-id`, GPU IDs and container disk size are automatically pulled from the Hub release config. You can override the GPU type with `--gpu-id`. | ||
| When using `--hub-id`, GPU IDs and container disk size are automatically pulled from the Hub release config. You can override the GPU type with `--gpu-id`. Environment variables from the Hub release are included automatically, and you can override or add to them with `--env`. | ||
|
|
||
| <Note> | ||
|
|
||
|
|
@@ -150,6 +155,10 @@ Enable or disable flash boot for faster worker startup. When enabled, workers st | |
| Execution timeout in seconds. Jobs that exceed this duration are terminated. The CLI accepts seconds but converts to milliseconds internally. | ||
| </ResponseField> | ||
|
|
||
| <ResponseField name="--env" type="string"> | ||
|
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Added Source: runpod/runpodctl#262 |
||
| Environment variable in `KEY=VALUE` format. Use multiple `--env` flags to set multiple variables. When deploying from `--hub-id`, these values override the Hub release defaults. | ||
| </ResponseField> | ||
|
|
||
| ### Update an endpoint | ||
|
|
||
| Update endpoint configuration: | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Added client-side filtering note for
--typeflag based on PR #262 in runpod/runpodctl. The code incmd/hub/list.go:198andcmd/hub/search.go:274shows the filter is applied client-side after API results are fetched.Source: runpod/runpodctl#262