Skip to content

Commit

Permalink
sharing exp: document studio.token
Browse files Browse the repository at this point in the history
  • Loading branch information
skshetry committed Apr 17, 2023
1 parent 46e5578 commit 321235b
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 1 deletion.
4 changes: 4 additions & 0 deletions content/docs/command-reference/exp/push.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,10 @@ to see experiments in the remote.
This command will also try to `dvc push` all <abbr>cached</abbr> data associated
with the experiments to [remote storage], unless `--no-cache` is used.

If `studio.token` config or `DVC_STUDIO_TOKEN` environment variable is set, DVC
will notify Studio about new experiments, and display a Studio project URL to
view experiments.

## Options

- `-A`, `--all-commits` - push all experiments in the repository (overrides
Expand Down
6 changes: 5 additions & 1 deletion content/docs/command-reference/exp/remove.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ With `--queue`, the list of experiments awaiting execution is cleared instead.
include all first-parent commits (similar to `git log -n`).

- `-g`, `--git-remote` - Name or URL of the Git remote to remove the experiment
from
from.

If `studio.token` config or `DVC_STUDIO_TOKEN` environment variable is set,
DVC will ping Studio to remove experiments. Studio automatically removes
experiment removed from the Git remote, but this expedites the removal.

- `-h`, `--help` - shows the help message and exit.

Expand Down
17 changes: 17 additions & 0 deletions content/docs/user-guide/project-structure/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ within:
- [`plots`](#plots) - options for configuring `dvc plots`.
- [`state`](#state) - see [Internal directories and files][internals] to learn
more about the state database.
- [`studio`](#studio) - options for configuring Studio token
- [`index`](#index) - see [Internal directories and files][internals] to learn
more about remote index files.

Expand Down Expand Up @@ -378,6 +379,22 @@ Composition].

<details>

## studio

- `studio.token` - Studio access token to use. When this is set, DVC uses this
to notify Studio of new experiments, and provide live updates of metrics and
plots to Studio. Alternatively, this can also be specified through
`DVC_STUDIO_TOKEN` environment variable. For security reasons, we advise
setting token to either a local config or a global config. Note that the above
functionality is disabled if the config or the environment variable is not
set.

- `studio.url` - URL of Studio to use (in case of self-hosted Studio instance).

</details>

<details>

## index

- `index.dir` - specify a custom location for the directory where remote index
Expand Down

0 comments on commit 321235b

Please sign in to comment.