viv
CLI
The viv
CLI is a command-line tool for interacting with Vivaria.
Commands are documented below, in three groups:
- Under Config, documentation for
viv config
subcommands:viv config get
,viv config list
, andviv config set
- Under Vivaria, documentation for
viv
subcommands. - Under Task, documentation for
viv task
subcommands.
viv_cli.main
viv CLI.
Config
Group within the CLI for managing configuration.
Source code in cli/viv_cli/main.py
115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 |
|
get(key)
Get the value of a config key.
Source code in cli/viv_cli/main.py
118 119 120 121 122 123 124 125 |
|
list()
Print config and config path.
Source code in cli/viv_cli/main.py
127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 |
|
set(key, value)
Set the value of a config key.
Source code in cli/viv_cli/main.py
147 148 149 150 |
|
RunBatch
Commands for managing run batches.
Source code in cli/viv_cli/main.py
567 568 569 570 571 572 573 574 575 576 577 578 |
|
update(name, concurrency_limit)
Update the concurrency limit for a run batch.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
name |
str
|
The name of the run batch. |
required |
concurrency_limit |
int
|
The new concurrency limit. |
required |
Source code in cli/viv_cli/main.py
570 571 572 573 574 575 576 577 578 |
|
Task
Task environment management.
Group within the CLI for managing task environments.
Source code in cli/viv_cli/main.py
153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 |
|
__init__()
Initialize the task command group.
Source code in cli/viv_cli/main.py
159 160 161 |
|
code(environment_name=None, user='root', aux_vm=False, editor=VSCODE)
Open a code editor (default is VS Code) window.
For container: Opens the home folder of the given user in the task environment container, and fails if the task environment has been stopped.
For aux VM: Opens the home folder of the provisioned user on the aux VM.
NOTE: This command may edit your ~/.ssh/config.
Source code in cli/viv_cli/main.py
409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 |
|
destroy(environment_name=None)
Destroy a task environment.
Source code in cli/viv_cli/main.py
280 281 282 283 |
|
grant_ssh_access(ssh_public_key_or_key_path, environment_name=None, user='agent')
Grant SSH access to a task environment.
Allow the person with the SSH private key matching the given public key to SSH into the task environment as the given user.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
ssh_public_key_or_key_path |
str
|
SSH public key or path to a file containing the public key. |
required |
environment_name |
str | None
|
Name of the task environment to grant access to. |
None
|
user |
SSHUser
|
User to grant access to. |
'agent'
|
Source code in cli/viv_cli/main.py
299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 |
|
grant_user_access(user_email, environment_name=None)
Grant another user access to a task environment.
Allow the person with the given email to run viv task
commands on this task environment.
Source code in cli/viv_cli/main.py
322 323 324 325 326 327 328 329 330 |
|
list(verbose=False, all_states=False, all_users=False)
List active task environments.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
verbose |
bool
|
Whether to print detailed information about each task environment. |
False
|
all_states |
bool
|
Whether to list running and stopped task environments, not just running ones. |
False
|
all_users |
bool
|
Whether to list all users' task environments, not just your own. |
False
|
Source code in cli/viv_cli/main.py
543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 |
|
restart(environment_name=None)
Stop (if running) and restart a task environment.
Stops the Docker container associated with a task environment (if it's running), then restarts it. Doesn't rerun any TaskFamily methods or make any changes to the container's filesystem.
If the task environment has an aux VM, Vivaria will reboot it. The command will wait until the aux VM is accessible over SSH before exiting.
Source code in cli/viv_cli/main.py
267 268 269 270 271 272 273 274 275 276 277 278 |
|
score(environment_name=None, submission=None)
Score a task environment.
Run TaskFamily#score
in a task environment, using a submission passed on the command line
or read from /home/agent/submission.txt in the environment.
Source code in cli/viv_cli/main.py
285 286 287 288 289 290 291 292 293 294 295 296 297 |
|
scp(source, destination, recursive=False, user='root', aux_vm=False)
Use scp to copy a file from your local machine to a task env/aux VM, or vice versa.
Task environment: Uses the given user, fails if the task environment isn't running.
Aux VM: Uses the provisioned user on the aux VM.
Example
viv task scp path/to/local/file environment-name:/root/path/to/remote/file viv task scp environment-name:~/path/to/remote/file . --user=agent
Parameters:
Name | Type | Description | Default |
---|---|---|---|
source |
str
|
Source file path. |
required |
destination |
str
|
Destination file path. |
required |
recursive |
bool
|
Whether to copy source recursively. |
False
|
user |
SSHUser
|
User to SSH into the task environment as. |
'root'
|
aux_vm |
bool
|
Whether to use the aux VM instead of the task environment. |
False
|
Raises:
Type | Description |
---|---|
ValueError
|
If both source and destination are local or remote paths. |
Source code in cli/viv_cli/main.py
353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 |
|
ssh(environment_name=None, user='root', aux_vm=False)
SSH into a task environment as the given user.
Fails if the task environment has been stopped.
Source code in cli/viv_cli/main.py
332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 |
|
ssh_command(environment_name=None, user='agent', aux_vm=False)
Print a ssh command to connect to a task environment as the given user, or to an aux VM.
For task environemnt: Fails if the task environment has been stopped.
For aux VM: Uses the provisioned user on the aux VM.
Source code in cli/viv_cli/main.py
439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 |
|
start(taskId, dont_cache=False, ssh=False, ssh_user='root', task_family_path=None, env_file_path=None, ignore_workdir=False, k8s=None)
Start a task environment.
Start a task environment that you can use to manually test a task, or as an environment for a QA run or a human baseline.
Builds a Docker image for a particular task, starts a container from that image, and runs TaskFamily#start in the container.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
taskId |
str
|
The task to test. |
required |
dont_cache |
bool
|
Rebuild the task environment primary machine's Docker image from scratch. |
False
|
ssh |
bool
|
SSH into the task environment after starting it. |
False
|
ssh_user |
SSHUser
|
User to SSH into the task environment as. |
'root'
|
task_family_path |
str | None
|
Path to a task family directory to use. If not provided, Vivaria may look up the task family directory from a Git repo that it's configured to use. |
None
|
env_file_path |
str | None
|
Path to a file of environment variables that Vivaria will set in some TaskFamily methods. You can only provide this argument if you also provide task_family_path. If neither task_family_path nor env_file_path is provided, Vivaria will read environment variables from a file called secrets.env in a Git repo that Vivaria is configured to use. |
None
|
ignore_workdir |
bool
|
Start task from the current commit while ignoring any uncommitted changes. |
False
|
k8s |
bool | None
|
Start the task environment in a Kubernetes cluster. |
None
|
Source code in cli/viv_cli/main.py
192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 |
|
stop(environment_name=None)
Stop a task environment.
Source code in cli/viv_cli/main.py
262 263 264 265 |
|
test(taskId, test_name='', dont_cache=False, ssh=False, ssh_user='root', verbose=False, task_family_path=None, env_file_path=None, destroy=False, ignore_workdir=False, k8s=None)
Start a task environment and run tests.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
taskId |
str
|
The task to test. |
required |
test_name |
str
|
Test file to run tests from. |
''
|
dont_cache |
bool
|
Rebuild the task environment primary machine's Docker image from scratch. |
False
|
ssh |
bool
|
SSH into the task environment after starting it. |
False
|
ssh_user |
SSHUser
|
User to SSH into the task environment as. |
'root'
|
verbose |
bool
|
Log the output of all tests, on success or failure. |
False
|
task_family_path |
str | None
|
Path to a task family directory to use. If not provided, Vivaria may look up the task family directory from a Git repo that it's configured to use. |
None
|
env_file_path |
str | None
|
Path to a file of environment variables that Vivaria will set in some TaskFamily methods. You can only provide this argument if you also provide task_family_path. If neither task_family_path nor env_file_path is provided, Vivaria will read environment variables from a file called secrets.env in a Git repo that Vivaria is configured to use. |
None
|
destroy |
bool
|
Destroy the task environment after running tests. |
False
|
ignore_workdir |
bool
|
Run tests on the current commit while ignoring any uncommitted changes. |
False
|
k8s |
bool | None
|
Start the task environment in a Kubernetes cluster. |
None
|
Source code in cli/viv_cli/main.py
463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 |
|
Vivaria
viv CLI.
CLI for running agents on tasks and managing task environments. To exit help use ctrl+\\
.
Source code in cli/viv_cli/main.py
581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 |
|
__init__(dev=False)
Initialise the CLI.
Source code in cli/viv_cli/main.py
587 588 589 590 591 592 593 594 |
|
code(run_id, user='root', aux_vm=False, editor=VSCODE)
Open a code editor (default is VSCode) window to the agent/task container or aux VM.
For container: Opens the home folder of the given user on the task/agent container for a run ID, and starts the container if necessary.
For aux VM: Opens the home folder of the provisioned user on the aux VM.
NOTE: This command may edit your ~/.ssh/config.
Source code in cli/viv_cli/main.py
1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 |
|
get_agent_state(run_id, index, agent_branch_number=0)
Get the last state of an agent run.
Source code in cli/viv_cli/main.py
841 842 843 844 |
|
get_run(run_id)
Get a run.
Source code in cli/viv_cli/main.py
786 787 788 789 |
|
get_run_status(run_id)
Get the status of a run.
Source code in cli/viv_cli/main.py
791 792 793 794 |
|
get_run_usage(run_id, branch_number=0)
Get the time and token usage of an agent run.
Source code in cli/viv_cli/main.py
846 847 848 849 |
|
grant_ssh_access(run_id, ssh_public_key_or_key_path, user='agent')
Grant SSH access to a run.
Allow the person with the SSH private key matching the given public key to SSH into the run as the given user.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
run_id |
int
|
ID of the run to grant access to. |
required |
ssh_public_key_or_key_path |
str
|
SSH public key or path to a file containing the public key. |
required |
user |
SSHUser
|
User to grant access to. |
'agent'
|
Source code in cli/viv_cli/main.py
899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 |
|
kill(run_id)
Kill a run.
Source code in cli/viv_cli/main.py
1091 1092 1093 1094 |
|
print_git_details(path='.', dont_commit_new_changes=False)
Print the git details for the current directory and optionally push the latest commit.
Source code in cli/viv_cli/main.py
1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 |
|
query(query=None, output_format='jsonl', output=None)
Query vivaria database.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
query |
str | None
|
The query to execute, or the path to a query. If not provided, runs the default query. |
None
|
output_format |
Literal['csv', 'json', 'jsonl']
|
The format to output the runs in. Either "csv" or "json". |
'jsonl'
|
output |
str | Path | None
|
The path to a file to output the runs to. If not provided, prints to stdout. |
None
|
Source code in cli/viv_cli/main.py
796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 |
|
register_ssh_public_key(ssh_public_key_path)
Register your SSH public key.
This id done, so that you can use viv ssh and viv scp on agent containers you create.
Source code in cli/viv_cli/main.py
851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 |
|
run(task, path=None, yes=False, verbose=False, open_browser=False, max_tokens=300000, max_actions=1000, max_total_seconds=60 * 60 * 24 * 7, max_cost=100, checkpoint_tokens=None, checkpoint_actions=None, checkpoint_total_seconds=None, checkpoint_cost=None, intervention=False, agent_starting_state=None, agent_starting_state_file=None, agent_settings_override=None, agent_settings_pack=None, name=None, metadata={}, repo=None, branch=None, commit=None, low_priority=False, parent=None, batch_name=None, batch_concurrency_limit=None, dangerously_ignore_global_limits=False, keep_task_environment_running=False, agent_path=None, task_family_path=None, env_file_path=None, k8s=None)
Construct a task environment and run an agent in it.
You can either run this command from a clone of an agent repo on your computer, or you can specify the repo, branch, and commit to use.
Parameters:
Name | Type | Description | Default |
---|---|---|---|
task |
str
|
The task to run. Specified as |
required |
path |
str | None
|
The path to the git repo containing the agent code. Defaults to the current
directory. Should not be specified if the |
None
|
yes |
bool
|
Whether to skip the confirmation prompt before starting the agent. |
False
|
verbose |
bool
|
Whether to print verbose output. |
False
|
open_browser |
bool
|
Whether to open the agent run page in the default browser. |
False
|
max_tokens |
int
|
The maximum number of tokens the agent can use. |
300000
|
max_actions |
int
|
The maximum number of actions the agent can take. |
1000
|
max_total_seconds |
int
|
The maximum number of seconds the agent can run for. |
60 * 60 * 24 * 7
|
max_cost |
float
|
The maximum cost of the tokens the agent can use. The currency depends on the Vivaria installation you're using. |
100
|
checkpoint_tokens |
int | None
|
If provided, the agent will pause and wait for human input after using this many tokens. |
None
|
checkpoint_actions |
int | None
|
If provided, the agent will pause and wait for human input after taking this many actions. |
None
|
checkpoint_total_seconds |
int | None
|
If provided, the agent will pause and wait for human input after running for this many seconds. |
None
|
checkpoint_cost |
float | None
|
If provided, the agent will pause and wait for human input after spending this much on tokens. The currency depends on the Vivaria installation you're using. |
None
|
intervention |
bool
|
Whether the agent requires human intervention. |
False
|
agent_starting_state |
str | dict | None
|
The starting state of the agent, as a JSON string. |
None
|
agent_starting_state_file |
str | None
|
The path to a file containing the starting state of the agent. |
None
|
agent_settings_override |
str | dict | None
|
The agent settings to override, as a JSON string. |
None
|
agent_settings_pack |
str | None
|
The agent settings pack to use. |
None
|
name |
str | None
|
The name of the agent run. |
None
|
metadata |
dict[str, str]
|
Metadata to attach to the agent run. |
{}
|
repo |
str | None
|
The git repo containing the agent code. |
None
|
branch |
str | None
|
The branch of the git repo containing the agent code. |
None
|
commit |
str | None
|
The commit of the git repo containing the agent code. |
None
|
low_priority |
bool
|
Whether to run the agent in low priority mode. |
False
|
parent |
int | None
|
The ID of the parent run. |
None
|
batch_name |
str | None
|
The name of the batch to run the agent in. |
None
|
batch_concurrency_limit |
int | None
|
The maximum number of agents that can run in the batch at the same time. |
None
|
dangerously_ignore_global_limits |
bool
|
A flag to allow arbitrarily high values for max_tokens, max_actions, and max_total_seconds. |
False
|
keep_task_environment_running |
bool
|
A flag to keep the task environment running if the agent or task crashes. Can still be killed by user. |
False
|
agent_path |
str | None
|
Optionally specify a path to an agent folder rather than using the content of a git repo |
None
|
task_family_path |
str | None
|
Path to a task family directory to use. If not provided, Vivaria may look up the task family directory from a Git repo that it's configured to use. |
None
|
env_file_path |
str | None
|
Path to a file of environment variables that Vivaria will set in some TaskFamily methods. You can only provide this argument if you also provide task_family_path. If neither task_family_path nor env_file_path is provided, Vivaria will read environment variables from a file called secrets.env in a Git repo that Vivaria is configured to use. |
None
|
k8s |
bool | None
|
Run the agent in a Kubernetes cluster. |
None
|
Source code in cli/viv_cli/main.py
596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 |
|
score(run_id, submission)
Score a run.
Run TaskFamily#score
in a run's agent container, using a submission passed on the command
line.
Source code in cli/viv_cli/main.py
890 891 892 893 894 895 896 897 |
|
scp(source, destination, recursive=False, user='root', aux_vm=False)
SCP.
Use scp to copy a file from your local machine to the agent container/aux VM for a run ID, or vice versa.
For agent container: Starts the agent container if necessary and SSHes into the agent container as the given user, defaulting to root.
For aux VM: Uses the provisioned aux VM user.
Example
viv scp path/to/local/file 12345:/root/path/to/remote/file viv scp 67890:~/path/to/remote/file . --user=agent
Parameters:
Name | Type | Description | Default |
---|---|---|---|
source |
str
|
Source file path. |
required |
destination |
str
|
Destination file path. |
required |
recursive |
bool
|
Whether to copy source recursively. |
False
|
user |
SSHUser
|
User to SSH into the agent container as. |
'root'
|
aux_vm |
bool
|
Whether to SCP to the aux VM. |
False
|
Raises:
Type | Description |
---|---|
ValueError
|
If both source and destination are local or remote paths. |
Source code in cli/viv_cli/main.py
959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 |
|
ssh(run_id, user='root', aux_vm=False)
SSH into the agent container or aux VM for a run ID.
For agent containers: Starts the agent container if necessary and uses the given user (defaulting to root).
For aux VMs: Uses the provisioned aux VM user.
Source code in cli/viv_cli/main.py
917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 |
|
ssh_command(run_id, user='agent', aux_vm=False)
Print a ssh command to connect to an agent container as the given user, or to an aux VM.
For agent container: Fails if the agent container has been stopped.
For aux VM: Uses the provisioned user on the aux VM.
Source code in cli/viv_cli/main.py
938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 |
|
unkill(run_id, branch_number=0)
Unkill a run.
Source code in cli/viv_cli/main.py
1096 1097 1098 1099 |
|
upgrade()
Upgrade the CLI.
Source code in cli/viv_cli/main.py
1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 |
|
main()
Main entry point for the CLI.
Source code in cli/viv_cli/main.py
1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 |
|