Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/docs/reference/profiles.yml.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Profiles can be defined on the repository level (via the `.dstack/profiles.yml`
repository) or on the global level (via the `~/.dstack/profiles.yml` file).

Any profile can be marked as default so that it will be applied automatically for any run. Otherwise, you can refer to a specific profile
via `--profile NAME` in `dstack run`.
via `--profile NAME` in `dstack apply`.

### Example

Expand Down
2 changes: 1 addition & 1 deletion examples/deployment/ollama/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
The following command deploys Mixtral 8x7B as a service:

```shell
dstack run . -f examples/deployment/ollama/serve.dstack.yml
dstack apply . -f examples/deployment/ollama/serve.dstack.yml
```

See the configuration at [serve.dstack.yml](serve.dstack.yml).
Expand Down
2 changes: 1 addition & 1 deletion examples/fine-tuning/alignment-handbook/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@ Here's how the multi-node task is different from the single-node one:

## Fleets

> By default, `dstack run` reuses `idle` instances from one of the existing [fleets](https://dstack.ai/docs/fleets).
> By default, `dstack apply` reuses `idle` instances from one of the existing [fleets](https://dstack.ai/docs/fleets).
If no `idle` instances meet the requirements, it creates a new fleet using one of the configured backends.

The example folder includes two cloud fleet configurations: [`examples/fine-tuning/alignment-handbook/fleet.dstack.yml`](https://github.com/dstackai/dstack/blob/master/examples/fine-tuning/alignment-handbook/fleet.dstack.yml) (a single node with a `24GB` GPU),
Expand Down
2 changes: 1 addition & 1 deletion examples/fine-tuning/trl/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ resources:

## Fleets

By default, `dstack run` reuses `idle` instances from one of the existing [fleets](https://dstack.ai/docs/fleets).
By default, `dstack apply` reuses `idle` instances from one of the existing [fleets](https://dstack.ai/docs/fleets).
If no `idle` instances meet the requirements, it creates a new fleet using one of the configured backends.

Use [fleets](https://dstack.ai/docs/fleets.md) configurations to create fleets manually. This reduces startup time for dev environments,
Expand Down
2 changes: 1 addition & 1 deletion runner/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ DSTACK_LOCAL_BACKEND_ENABLED= dstack server --log-level=debug
The `local` backend will submit the run to the locally started shim and runner. The CLI will attach to the container just as if it were any other cloud backend:

```shell
✗ dstack run .
✗ dstack apply .
Configuration .dstack.yml
Project main
User admin
Expand Down
75 changes: 0 additions & 75 deletions src/dstack/_internal/cli/commands/run.py

This file was deleted.

4 changes: 1 addition & 3 deletions src/dstack/_internal/cli/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
from dstack._internal.cli.commands.init import InitCommand
from dstack._internal.cli.commands.logs import LogsCommand
from dstack._internal.cli.commands.ps import PsCommand
from dstack._internal.cli.commands.run import RunCommand
from dstack._internal.cli.commands.server import ServerCommand
from dstack._internal.cli.commands.stats import StatsCommand
from dstack._internal.cli.commands.stop import StopCommand
Expand All @@ -39,7 +38,7 @@ def main():
parser = argparse.ArgumentParser(
description=(
"Not sure where to start? Call [code]dstack init[/].\n"
"Define a [code].dstack.yml[/] configuration file and run it via [code]dstack run[/]\n"
"Define a [code].dstack.yml[/] configuration file and run it via [code]dstack apply[/]\n"
),
formatter_class=RichHelpFormatter,
epilog=(
Expand Down Expand Up @@ -67,7 +66,6 @@ def main():
InitCommand.register(subparsers)
LogsCommand.register(subparsers)
PsCommand.register(subparsers)
RunCommand.register(subparsers)
ServerCommand.register(subparsers)
StatsCommand.register(subparsers)
StopCommand.register(subparsers)
Expand Down
4 changes: 2 additions & 2 deletions src/dstack/_internal/core/models/profiles.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,11 +270,11 @@ class ProfileProps(CoreModel):
name: Annotated[
str,
Field(
description="The name of the profile that can be passed as `--profile` to `dstack run`"
description="The name of the profile that can be passed as `--profile` to `dstack apply`"
),
]
default: Annotated[
bool, Field(description="If set to true, `dstack run` will use this profile by default.")
bool, Field(description="If set to true, `dstack apply` will use this profile by default.")
] = False


Expand Down