shortcuts

Commands:

attach

Attach terminal to a job

Usage

neuro attach [OPTIONS] JOB

Attach terminal to a job

Attach local standard input, output, and error streams to a running job.

Options

cp

Copy files and directories

Usage

neuro cp [OPTIONS] [SOURCES]... [DESTINATION]

Copy files and directories.

Either SOURCES or DESTINATION should have storage:// scheme. If scheme is omitted, file:// scheme is assumed.

Use /dev/stdin and /dev/stdout file names to copy a file from terminal and print the content of file on the storage to console.

Any number of --exclude and --include options can be passed. The filters that appear later in the command take precedence over filters that appear earlier in the command. If neither --exclude nor --include options are specified the default can be changed using the storage.cp-exclude configuration variable documented in "neuro help user- config".

Examples


# copy local files into remote storage root
$ neuro cp foo.txt bar/baz.dat storage:
$ neuro cp foo.txt bar/baz.dat -t storage:

# copy local directory `foo` into existing remote directory `bar`
$ neuro cp -r foo -t storage:bar

# copy the content of local directory `foo` into existing remote
# directory `bar`
$ neuro cp -r -T storage:foo storage:bar

# download remote file `foo.txt` into local file `/tmp/foo.txt` with
# explicit file:// scheme set
$ neuro cp storage:foo.txt file:///tmp/foo.txt
$ neuro cp -T storage:foo.txt file:///tmp/foo.txt
$ neuro cp storage:foo.txt file:///tmp
$ neuro cp storage:foo.txt -t file:///tmp

# download other project's remote file into the current directory
$ neuro cp storage:/{project}/foo.txt .

# download only files with extension `.out` into the current directory
$ neuro cp storage:results/*.out .

Options

exec

Execute command in a running job

Usage

neuro exec [OPTIONS] JOB -- CMD...

Execute command in a running job.

Examples


# Provides a shell to the container:
$ neuro exec my-job -- /bin/bash

# Executes a single command in the container and returns the control:
$ neuro exec --no-tty my-job -- ls -l

Options

images

List images

Usage

neuro images [OPTIONS]

List images.

Options

kill

Kill job(s)

Usage

neuro kill [OPTIONS] JOBS...

Kill job(s).

Options

login

Log into Neuro Platform

Usage

neuro login [OPTIONS] [URL]

Log into Neuro Platform.

URL is a platform entrypoint URL.

Options

logout

Log out

Usage

neuro logout [OPTIONS]

Log out.

Options

logs

Print the logs for a job

Usage

neuro logs [OPTIONS] JOB

Print the logs for a job.

Options

ls

List directory contents

Usage

neuro ls [OPTIONS] [PATHS]...

List directory contents.

By default PATH is equal project's dir (storage:)

Options

mkdir

Make directories

Usage

neuro mkdir [OPTIONS] PATHS...

Make directories.

Options

mv

Move or rename files and directories

Usage

neuro mv [OPTIONS] [SOURCES]... [DESTINATION]

Move or rename files and directories.

SOURCE must contain path to the file or directory existing on the storage, and DESTINATION must contain the full path to the target file or directory.

Examples


# move and rename remote file
$ neuro mv storage:foo.txt storage:bar/baz.dat
$ neuro mv -T storage:foo.txt storage:bar/baz.dat

# move remote files into existing remote directory
$ neuro mv storage:foo.txt storage:bar/baz.dat storage:dst
$ neuro mv storage:foo.txt storage:bar/baz.dat -t storage:dst

# move the content of remote directory into other existing
# remote directory
$ neuro mv -T storage:foo storage:bar

# move remote file into other project's directory
$ neuro mv storage:foo.txt storage:/{project}/bar.dat

# move remote file from other project's directory
$ neuro mv storage:/{project}/foo.txt storage:bar.dat

Options

port-forward

Forward port(s) of a job

Usage

neuro port-forward [OPTIONS] JOB LOCAL_PORT:REMOTE_RORT...

Forward port(s) of a job.

Forwards port(s) of a running job to local port(s).

Examples


# Forward local port 2080 to port 80 of job's container.
# You can use http://localhost:2080 in browser to access job's served http
$ neuro job port-forward my-fastai-job 2080:80

# Forward local port 2222 to job's port 22
# Then copy all data from container's folder '/data' to current folder
# (please run second command in other terminal)
$ neuro job port-forward my-job-with-ssh-server 2222:22
$ rsync -avxzhe ssh -p 2222 root@localhost:/data .

# Forward few ports at once
$ neuro job port-forward my-job 2080:80 2222:22 2000:100

Options

ps

List all jobs

Usage

neuro ps [OPTIONS]

List all jobs.

Examples


$ neuro ps -a
$ neuro ps -a --owner=user-1 --owner=user-2
$ neuro ps --name my-experiments-v1 -s failed -s succeeded
$ neuro ps --description=my favourite job
$ neuro ps -s failed -s succeeded -q
$ neuro ps -t tag1 -t tag2

Options

pull

Pull an image from platform registry

Usage

neuro pull [OPTIONS] REMOTE_IMAGE [LOCAL_IMAGE]

Pull an image from platform registry.

Remote image name must be URL with image:// scheme. Image names can contain tag.

Examples


$ neuro pull image:myimage
$ neuro pull image:/other-project/alpine:shared
$ neuro pull image:/project/my-alpine:production alpine:from-registry

Options

push

Push an image to platform registry

Usage

neuro push [OPTIONS] LOCAL_IMAGE [REMOTE_IMAGE]

Push an image to platform registry.

Remote image must be URL with image:// scheme. Image names can contain tag. If tags not specified 'latest' will be used as value.

Examples


$ neuro push myimage
$ neuro push alpine:latest image:my-alpine:production
$ neuro push alpine image:/other-project/alpine:shared

Options

rm

Remove files or directories

Usage

neuro rm [OPTIONS] PATHS...

Remove files or directories.

Examples


$ neuro rm storage:foo/bar
$ neuro rm storage:/{project}/foo/bar
$ neuro rm storage://{cluster}/{project}/foo/bar
$ neuro rm --recursive storage:/{project}/foo/
$ neuro rm storage:foo/**/*.tmp

Options

run

Run a job

Usage

neuro run [OPTIONS] IMAGE [-- CMD...]

Run a job

IMAGE docker image name to run in a job.

CMD list will be passed as arguments to the executed job's image.

Examples


# Starts a container pytorch/pytorch:latest on a machine with smaller GPU resources
# (see exact values in `neuro config show`) and with two volumes mounted:
#   storage:/<home-directory>   --> /var/storage/home (in read-write mode),
#   storage:/neuromation/public --> /var/storage/neuromation (in read-only mode).
$ neuro run --preset=gpu-small --volume=storage::/var/storage/home:rw \
$ --volume=storage:/neuromation/public:/var/storage/home:ro pytorch/pytorch:latest

# Starts a container using the custom image my-ubuntu:latest stored in neuro
# registry, run /script.sh and pass arg1 and arg2 as its arguments:
$ neuro run -s cpu-small --entrypoint=/script.sh image:my-ubuntu:latest -- arg1 arg2

Options

save

Save job's state to an image

Usage

neuro save [OPTIONS] JOB IMAGE

Save job's state to an image.

Examples

$ neuro job save job-id image:ubuntu-patched
$ neuro job save my-favourite-job image:ubuntu-patched:v1
$ neuro job save my-favourite-job image://bob/ubuntu-patched

Options

share

Shares resource with another user

Usage

neuro share [OPTIONS] URI USER {read|write|manage}

Shares resource with another user.

URI shared resource.

USER username to share resource with.

PERMISSION sharing access right: read, write, or manage.

Examples

$ neuro acl grant storage:///sample_data/ alice manage
$ neuro acl grant image:resnet50 bob read
$ neuro acl grant job:///my_job_id alice write

Options

status

Display status of a job

Usage

neuro status [OPTIONS] JOB

Display status of a job.

Options

top

Display GPU/CPU/Memory usage

Usage

neuro top [OPTIONS] [JOBS]...

Display GPU/CPU/Memory usage.

Examples


$ neuro top
$ neuro top job-1 job-2
$ neuro top --owner=user-1 --owner=user-2
$ neuro top --name my-experiments-v1
$ neuro top -t tag1 -t tag2

Options

Last updated