Index of dx commands

This page contains the help messages for each of the commands under dx, grouped by their primary category.

Get started

dx

help

Override environment variables

Manage your login session

Category: session in dx help

login

See also: logout, whoami

usage: dx login [-h] [--env-help] [--token TOKEN] [--noprojects] [--save]
                [--timeout TIMEOUT]

Log in interactively and acquire credentials. Use "--token" to log in with an
existing API token.

options:
  -h, --help         show this help message and exit
  --env-help         Display help message for overriding environment variables
  --token TOKEN      Authentication token to use
  --noprojects       Do not print available projects
  --save             Save token and other environment variables for future
                     sessions
  --timeout TIMEOUT  Timeout for this login token (in seconds, or use suffix
                     s, m, h, d, w, M, y)

logout

See also: login, exit

usage: dx logout [-h] [--env-help] [--host HOST] [--port PORT]
                 [--protocol PROTOCOL]

Log out and remove credentials

options:
  -h, --help           show this help message and exit
  --env-help           Display help message for overriding environment
                       variables
  --host HOST          Log out of the given auth server host (port must also
                       be given)
  --port PORT          Log out of the given auth server port (host must also
                       be given)
  --protocol PROTOCOL  Used in conjunction with host and port arguments, gives
                       the protocol to use when contacting auth server

exit

usage: dx exit [-h]

Exit out of the interactive shell

options:
  -h, --help  show this help message and exit

whoami

See also: login, logout, pwd

usage: dx whoami [-h] [--env-help] [--id]

Print the username of the current user, in the form "user-USERNAME"

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables
  --id        Print user ID instead of username

env

See also: setenv, clearenv

usage: dx env [-h] [--env-help] [--bash] [--dx-flags]

Prints all environment variables in use as they have been resolved from
environment variables and configuration files.  For more details, see

https://documentation.dnanexus.com/user/helpstrings-of-sdk-command-line-utilities#overriding-environment-variables

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment
              variables
  --bash      Prints a list of bash commands to export the environment
              variables
  --dx-flags  Prints the dx options to override the environment variables

clearenv

See also: env, setenv

usage: dx clearenv [-h] [--reset]

Clears all environment variables set by dx. More specifically, it removes
local state stored in ~/.dnanexus_config/environment. Does not affect the
environment variables currently set in your shell.

options:
  -h, --help  show this help message and exit
  --reset     Reset dx environment variables to empty values. Use this to
              avoid interference between multiple dx sessions when using shell
              environment variables.

setenv

See also: env, clearenv

usage: dx setenv [-h] [--noprojects] [--save] [--current]

Sets environment variables for communication with the API server

options:
  -h, --help    show this help message and exit
  --noprojects  Do not print available projects
  --save        Save settings for future sessions. Only one set of settings
                can be saved at a time. Always set to true if login is run in
                a non-interactive session
  --current     Do not prompt for new values and just save current settings
                for future sessions. Overrides --save to be true.

Category: fs in dx help

ls

See also: tree, pwd

tree

See also: ls, pwd

usage: dx tree [-h] [--color {off,on,auto}] [--env-help] [-a] [-l] [path]

List folders and objects in a tree

positional arguments:
  path                  Folder (possibly in another project) to list the
                        contents of, default is the current directory in the
                        current project. Syntax: projectID:/folder/path

options:
  -h, --help            show this help message and exit
  --color {off,on,auto}
                        Set when color is used (color=auto is used when stdout
                        is a TTY)
  --env-help            Display help message for overriding environment
                        variables
  -a, --all             show hidden files
  -l, --long            use a long listing format

pwd

See also: cd, select

usage: dx pwd [-h] [--env-help]

Print current working directory

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables

select

See also: cd, env, pwd

cd

See also: pwd, select

usage: dx cd [-h] [--env-help] [path]

Change the current working directory

positional arguments:
  path        Folder (possibly in another project) to which to change the
              current working directory, default is "/" in the current project

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables

cp

See also: mv, download, upload

mv

See also: cp, rename

usage: dx mv [-h] [--env-help] [-a] [--target-file-relocation]
             source [source ...] destination

Move or rename data objects and/or folders inside a single project.  To copy
data between different projects, use 'dx cp' instead.

positional arguments:
  source                Objects and/or folder names to move
  destination           Folder into which to move the sources or new pathname (if only
                        one source is provided).  Must be in the same project/container
                        as all source paths.

options:
  -h, --help            show this help message and exit
  --env-help            Display help message for overriding environment
                        variables
  -a, --all             Apply to all results with the same name without
                        prompting
  --target-file-relocation
                        Allow symlink target file relocation in external storage while moving a symlink.

mkdir

See also: rmdir, new project

usage: dx mkdir [-h] [--env-help] [-p] path [path ...]

Create a new folder

positional arguments:
  path           Paths to folders to create

options:
  -h, --help     show this help message and exit
  --env-help     Display help message for overriding environment variables
  -p, --parents  no error if existing, create parent directories as needed

rmdir

See also: mkdir, rm

usage: dx rmdir [-h] [--env-help] path [path ...]

Remove a folder

positional arguments:
  path        Paths to folders to remove

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables

rm

See also: rmdir, rmproject

usage: dx rm [-h] [--env-help] [-a] [-r] [-f] path [path ...]

Remove data objects and folders.

positional arguments:
  path             Paths to remove

options:
  -h, --help       show this help message and exit
  --env-help       Display help message for overriding environment variables
  -a, --all        Apply to all results with the same name without prompting
  -r, --recursive  Recurse into a directory
  -f, --force      Force removal of files

rmproject

See also: new project, rm

usage: dx rmproject [-h] [--env-help] [-y] [-q] project [project ...]

Delete projects and all their associated data

positional arguments:
  project      Projects to remove

options:
  -h, --help   show this help message and exit
  --env-help   Display help message for overriding environment variables
  -y, --yes    Do not ask for confirmation
  -q, --quiet  Do not print purely informational messages

archive

See also: unarchive

unarchive

See also: archive

list database files

View, download, and upload data

Category: data in dx help

File transfer

upload

See also: download, new

download

See also: upload, make_download_url

make_download_url

See also: download

usage: dx make_download_url [-h] [--duration DURATION] [--filename FILENAME]
                            path

Creates a pre-authenticated link that can be used to download a file without
logging in.

positional arguments:
  path                 Project-qualified data object ID or name, e.g. project-
                       xxxx:file-yyyy, or project-xxxx:/path/to/file.txt

options:
  -h, --help           show this help message and exit
  --duration DURATION  Time for which the URL will remain valid (in seconds,
                       or use suffix s, m, h, d, w, M, y). Default: 1 day
  --filename FILENAME  Name that the server will instruct the client to save
                       the file as (default is the filename)

View data

describe

See also: get_details, ls, find data

cat

See also: head, download

usage: dx cat [-h] [--env-help] [--unicode] path [path ...]

positional arguments:
  path        File ID or name(s) to print to stdout

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables
  --unicode   Display the characters as text/unicode when writing to stdout

See also: cat, download

usage: dx head [-h] [--color {off,on,auto}] [--env-help] [-n N] path

Print the first part of a file. By default, prints the first 10 lines.

positional arguments:
  path                  File ID or name to access

options:
  -h, --help            show this help message and exit
  --color {off,on,auto}
                        Set when color is used (color=auto is used when stdout
                        is a TTY)
  --env-help            Display help message for overriding environment
                        variables
  -n, --lines N         Print the first N lines (default 10)

Create data objects

new

See also: new project, new record, new workflow, upload

usage: dx new [-h] class ...

Use this command with one of the available subcommands (classes) to create a
new project or data object from scratch. Not all data types are supported. See
'dx upload' for files and 'dx build' for applets.

positional arguments:
  class
    user      Create a new user account
    org       Create new non-billable org
    project   Create a new project
    record    Create a new record
    workflow  Create a new workflow

options:
  -h, --help  show this help message and exit

new project

See also: new, rmproject, find projects

new record

See also: new, close

new workflow

See also: new, add stage, find globalworkflows

Data object operations

close

See also: wait

usage: dx close [-h] [--env-help] [-a] [--wait] path [path ...]

Close a remote data object or set of objects.

positional arguments:
  path        Path to a data object to close

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables
  -a, --all   Apply to all results with the same name without prompting
  --wait      Wait for the object(s) to close

wait

See also: close, watch

usage: dx wait [-h] [--env-help] [--from-file] path [path ...]

Polls the state of specified data object(s) or job(s) until they are all in
the desired state. Waits until the "closed" state for a data object, and for
any terminal state for a job ("terminated", "failed", or "done"). Exits with a
non-zero code if a job reaches a terminal state that is not "done". Can also
provide a local file containing a list of data object(s) or job(s), one per
line; the file will be read if "--from-file" argument is added.

positional arguments:
  path         Path to a data object, job ID, or file with IDs to wait for

options:
  -h, --help   show this help message and exit
  --env-help   Display help message for overriding environment variables
  --from-file  Read the list of objects to wait for from the file provided in
               path

get

See also: describe, download

Searching

find data

See also: find projects, ls, describe

find projects

See also: find data, new project, find org projects

Project management

update project

See also: find projects, new project, rmproject

Datasets and cohorts

create_cohort

extract_dataset

extract_assay expression

extract_assay germline

extract_assay somatic

Manage metadata

Category: metadata in dx help

set_details

usage: dx set_details [-h] [--env-help] [-a] [-f DETAILS_FILE] path [details]

Set the JSON details of a data object.

positional arguments:
  path                  ID or path to data object to modify
  details               JSON to store as details

options:
  -h, --help            show this help message and exit
  --env-help            Display help message for overriding environment
                        variables
  -a, --all             Apply to all results with the same name without
                        prompting
  -f, --details-file DETAILS_FILE
                        Path to local file containing JSON to store as details

get_details

See also: describe

usage: dx get_details [-h] [--env-help] path

Get the JSON details of a data object.

positional arguments:
  path        ID or path to data object to get details for

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables

set_visibility

usage: dx set_visibility [-h] [--env-help] [-a] path {hidden,visible}

Set visibility on a data object.

positional arguments:
  path              ID or path to data object to modify
  {hidden,visible}  Visibility that the object should have

options:
  -h, --help        show this help message and exit
  --env-help        Display help message for overriding environment variables
  -a, --all         Apply to all results with the same name without prompting

add_types

usage: dx add_types [-h] [--env-help] [-a] path type [type ...]

Add types to a data object. See
https://documentation.dnanexus.com/developer/api/data-object-lifecycle/types
for a list of DNAnexus types.

positional arguments:
  path        ID or path to data object to modify
  type        Types to add

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables
  -a, --all   Apply to all results with the same name without prompting

remove_types

usage: dx remove_types [-h] [--env-help] [-a] path type [type ...]

Remove types from a data object. See
https://documentation.dnanexus.com/developer/api/data-object-lifecycle/types
for a list of DNAnexus types.

positional arguments:
  path        ID or path to data object to modify
  type        Types to remove

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables
  -a, --all   Apply to all results with the same name without prompting

tag

See also: untag, set_properties

usage: dx tag [-h] [--env-help] [-a] [--try T] path tag [tag ...]

Tag a project, data object, or execution. Note that a project context must be
either set or specified for data object IDs or paths.

positional arguments:
  path        ID or path to project, data object, or execution to modify
  tag         Tags to add

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables
  -a, --all   Apply to all results with the same name without prompting
  --try T     When modifying a job that was restarted, apply the change to try
              T of the restarted job. T=0 refers to the first try. Default is
              the last job try.

untag

See also: tag

usage: dx untag [-h] [--env-help] [-a] [--try T] path tag [tag ...]

Untag a project, data object, or execution. Note that a project context must
be either set or specified for data object IDs or paths.

positional arguments:
  path        ID or path to project, data object, or execution to modify
  tag         Tags to remove

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables
  -a, --all   Apply to all results with the same name without prompting
  --try T     When modifying a job that was restarted, apply the change to try
              T of the restarted job. T=0 refers to the first try. Default is
              the last job try.

rename

See also: mv

usage: dx rename [-h] [--env-help] [-a] path name

Rename a project or data object. To rename folders, use 'dx mv' instead. Note
that a project context must be either set or specified to rename a data
object. To specify a project or a project context, append a colon character
":" after the project ID or name.

positional arguments:
  path        Path to project or data object to rename
  name        New name

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables
  -a, --all   Apply to all results with the same name without prompting

set_properties

See also: unset_properties, tag

usage: dx set_properties [-h] [--env-help] [-a] [--try T]
                         path propertyname=value [propertyname=value ...]

Set properties of a project, data object, or execution. Note that a project
context must be either set or specified for data object IDs or paths.

positional arguments:
  path                ID or path to project, data object, or execution to
                      modify
  propertyname=value  Key-value pairs of property names and their new values

options:
  -h, --help          show this help message and exit
  --env-help          Display help message for overriding environment
                      variables
  -a, --all           Apply to all results with the same name without
                      prompting
  --try T             When modifying a job that was restarted, apply the
                      change to try T of the restarted job. T=0 refers to the
                      first try. Default is the last job try.

unset_properties

See also: set_properties

usage: dx unset_properties [-h] [--env-help] [-a] [--try T]
                           path propertyname [propertyname ...]

Unset properties of a project, data object, or execution. Note that a project
context must be either set or specified for data object IDs or paths.

positional arguments:
  path          ID or path to project, data object, or execution to modify
  propertyname  Property names to unset

options:
  -h, --help    show this help message and exit
  --env-help    Display help message for overriding environment variables
  -a, --all     Apply to all results with the same name without prompting
  --try T       When modifying a job that was restarted, apply the change to
                try T of the restarted job. T=0 refers to the first try.
                Default is the last job try.

Build and modify workflows

Category: workflow in dx help

add stage

See also: remove stage, update stage, list stages

remove stage

See also: add stage, list stages

usage: dx remove stage [-h] [--brief | --verbose] [--env-help] workflow stage

Remove a stage from a workflow. The stage should be indicated either by an
integer (0-indexed, i.e. "0" for the first stage), or a stage ID.

positional arguments:
  workflow    Name or ID of a workflow
  stage       Stage (index or ID) of the workflow to remove

options:
  -h, --help  show this help message and exit
  --brief     Display a brief version of the return value; for most commands,
              prints a DNAnexus ID per line
  --verbose   If available, displays extra verbose output
  --env-help  Display help message for overriding environment variables

update stage

See also: add stage, list stages

update workflow

See also: new workflow, add stage

list stages

See also: add stage, remove stage, update stage

usage: dx list stages [-h] [--env-help] workflow

List the stages in a workflow.

positional arguments:
  workflow    Name or ID of a workflow

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables

Run and manage apps

Category: exec in dx help

Build and publish

build

See also: publish, run

publish

See also: build, add users

usage: dx publish [-h] [--no-default] executable

Release a version of the executable (app or global workflow) to authorized
users.

positional arguments:
  executable    ID or name and version of an app/global workflow, e.g.
                myqc/1.0.0

options:
  -h, --help    show this help message and exit
  --no-default  Do not set a "default" alias on the published version

Manage app access

See also: invite and uninvite for project-level sharing.

add

See also: remove, list

usage: dx add [-h] list_type ...

Use this command with one of the availabile subcommands to perform various
actions such as adding other users or orgs to the list of developers or
authorized users of an app

positional arguments:
  list_type
    users       Add authorized users for an app
    developers  Add developers for an app
    stage       Add a stage to a workflow
    member      Grant a user membership to an org

options:
  -h, --help    show this help message and exit

add users

See also: remove users, list users, invite

usage: dx add users [-h] [--env-help] app authorizedUser [authorizedUser ...]

Add users or orgs to the list of authorized users of an app. Published
versions of the app will only be accessible to users represented by this list
and to developers of the app. Unpublished versions are restricted to the
developers.

positional arguments:
  app             Name or ID of an app
  authorizedUser  One or more users or orgs to add

options:
  -h, --help      show this help message and exit
  --env-help      Display help message for overriding environment variables

add developers

See also: remove developers, list developers

usage: dx add developers [-h] [--env-help] app developer [developer ...]

Add users or orgs to the list of developers for an app. Developers are able to
build and publish new versions of the app, and add or remove others from the
list of developers and authorized users.

positional arguments:
  app         Name or ID of an app
  developer   One or more users or orgs to add

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables

list

usage: dx list [-h] list_type ...

Use this command with one of the availabile subcommands to perform various
actions such as printing the list of developers or authorized users of an app.

positional arguments:
  list_type
    users       List authorized users for an app
    developers  List developers for an app
    stages      List the stages in a workflow
    database    List entities associated with a specific database. For
                example, "dx list database files" lists database files
                associated with a specific database. Please execute "dx list
                database -h" for more information.

options:
  -h, --help    show this help message and exit

list users

See also: add users, remove users

usage: dx list users [-h] [--env-help] app

List the authorized users of an app. Published versions of the app will only
be accessible to users represented by this list and to developers of the app.
Unpublished versions are restricted to the developers

positional arguments:
  app         Name or ID of an app

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables

list developers

usage: dx list developers [-h] [--env-help] app

List the developers for an app. Developers are able to build and publish new
versions of the app, and add or remove others from the list of developers and
authorized users.

positional arguments:
  app         Name or ID of an app

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables

remove

See also: add, list

usage: dx remove [-h] list_type ...

Use this command with one of the available subcommands to perform various
actions such as removing other users from the list of developers or authorized
users of an app.

positional arguments:
  list_type
    users       Remove authorized users for an app
    developers  Remove developers for an app
    stage       Remove a stage from a workflow
    member      Revoke the org membership of a user

options:
  -h, --help    show this help message and exit

remove users

See also: add users, list users

usage: dx remove users [-h] [--env-help]
                       app authorizedUser [authorizedUser ...]

Remove users or orgs from the list of authorized users of an app. Published
versions of the app will only be accessible to users represented by this list
and to developers of the app. Unpublished versions are restricted to the
developers

positional arguments:
  app             Name or ID of an app
  authorizedUser  One or more users or orgs to remove

options:
  -h, --help      show this help message and exit
  --env-help      Display help message for overriding environment variables

remove developers

See also: add developers, list developers

usage: dx remove developers [-h] [--env-help] app developer [developer ...]

Remove users or orgs from the list of developers for an app. Developers are
able to build and publish new versions of the app, and add or remove others
from the list of developers and authorized users.

positional arguments:
  app         Name or ID of an app
  developer   One or more users to remove

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables

install

usage: dx install [-h] [--env-help] app

Install an app by name. To see a list of apps you can install, hit <TAB> twice
after "dx install" or run "dx find apps" to see a list of available apps.

positional arguments:
  app         ID or name of app to install

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables

uninstall

usage: dx uninstall [-h] [--env-help] app

Uninstall an app by name.

positional arguments:
  app         ID or name of app to uninstall

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables

Run and monitor

run

See also: watch, terminate, find jobs

run --input-help

run --instance-type-help

watch

See also: run, terminate, describe

watch --metrics-help

terminate

See also: run, watch

usage: dx terminate [-h] [--env-help] jobid [jobid ...]

Terminate one or more jobs or analyses

positional arguments:
  jobid       ID of a job or analysis to terminate

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables

ssh

See also: ssh_config, run

ssh_config

See also: ssh

usage: dx ssh_config [-h] [--env-help] [--revoke] ...

Configure SSH access credentials for your DNAnexus account

positional arguments:
  ssh_keygen_args  Command-line arguments to pass to ssh-keygen

options:
  -h, --help       show this help message and exit
  --env-help       Display help message for overriding environment variables
  --revoke         Revoke SSH public key associated with your DNAnexus
                   account; you will no longer be able to SSH into any jobs.

Search for executables and executions

find

find apps

See also: find globalworkflows, find org apps, build

find globalworkflows

See also: find apps, new workflow

find jobs

See also: find analyses, find executions, watch

find analyses

See also: find jobs, find executions

find executions

See also: find jobs, find analyses

Batch operations

generate_batch_inputs

usage: dx generate_batch_inputs [-h] [-i INPUT] [--path PROJECT:FOLDER]
                                [-o OUTPUT_PREFIX]

Generate a table of input files matching desired regular expressions for each
input.

options:
  -h, --help            show this help message and exit
  -i, --input INPUT     An input to be batch-processed "-i<input name>=<input
                        pattern>" where <input_pattern> is a regular
                        expression with a group corresponding to the desired
                        region to match (e.g. "-iinputa=SRR(.*)_1.gz"
                        "-iinputb=SRR(.*)_2.gz")
  --path PROJECT:FOLDER
                        Project and/or folder to which the search for input
                        files will be restricted
  -o, --output_prefix OUTPUT_PREFIX
                        Prefix for output file

Manage organizations

Category: org in dx help

Organization setup

new org

See also: find orgs

new user

See also: add member, invite

Manage members

add member

See also: remove member, update member, find org members, invite

remove member

See also: add member, update member, find org members, uninvite

update

usage: dx update [-h] target ...

Use this command with one of the available targets listed below to update
their metadata that are not covered by the other subcommands.

positional arguments:
  target
    org       Update information about an org
    workflow  Update the metadata for a workflow
    stage     Update the metadata for a stage in a workflow
    member    Update the membership of a user in an org
    project   Updates a specified project with the specified options

options:
  -h, --help  show this help message and exit

update org

See also: find orgs, new org

update member

See also: add member, remove member, find org members

Searching

find org

See also: find orgs, find org members

usage: dx find org [-h] entities ...

List entities within a specific org.

positional arguments:
  entities
    members   List members in the specified org
    projects  List projects billed to the specified org
    apps      List apps billed to the specified org

options:
  -h, --help  show this help message and exit

find orgs

See also: find org, new org

find org members

See also: add member, remove member, find org

find org projects

See also: find projects, find org

find org apps

See also: find apps, find org

Share projects and data

Category: Not in dx help categories (under other)

Share projects and collaborate with other users.

invite

See also: uninvite, add member

usage: dx invite [-h] [--env-help] [--no-email]
                 invitee [project] [{VIEW,UPLOAD,CONTRIBUTE,ADMINISTER}]

Invite a DNAnexus entity to a project. If the invitee is not recognized as a
DNAnexus ID, it will be treated as a username, i.e. "dx invite alice : VIEW"
is equivalent to inviting the user with user ID "user-alice" to view your
current default project.

positional arguments:
  invitee               Entity to invite
  project               Project to invite the invitee to
  {VIEW,UPLOAD,CONTRIBUTE,ADMINISTER}
                        Permissions level the new member should have

options:
  -h, --help            show this help message and exit
  --env-help            Display help message for overriding environment
                        variables
  --no-email            Disable email notifications to invitee

uninvite

See also: invite, remove member

usage: dx uninvite [-h] [--env-help] entity [project]

Revoke others' permissions on a project you administer. If the entity is not
recognized as a DNAnexus ID, it will be treated as a username, i.e. "dx
uninvite alice :" is equivalent to revoking the permissions of the user with
user ID "user-alice" to your current default project.

positional arguments:
  entity      Entity to uninvite
  project     Project to revoke permissions from

options:
  -h, --help  show this help message and exit
  --env-help  Display help message for overriding environment variables

Additional tools

Category: other in dx help

Advanced utilities for API access and asset management.

api

build_asset

usage: dx build_asset [-h] [-d DESTINATION] [--json] [--no-watch] [src_dir]

Build an asset from a local source directory. The directory must have a file
called "dxasset.json" containing valid JSON. For more details, see   https://d
ocumentation.dnanexus.com/developer/apps/dependency-management/asset-build-pro
cess

positional arguments:
  src_dir               Asset source directory (default: current directory)

options:
  -h, --help            show this help message and exit
  -d, --destination DESTINATION
                        Specifies the destination project and destination folder for the asset, in the
                        form [PROJECT_NAME_OR_ID:][/[FOLDER/][NAME]]
  --json                Show ID of resulting asset bundle in JSON format
  --no-watch            Don't watch the real-time logs of the asset-builder job.

upgrade

dx upgrade was removed in v0.379.0. See upgrading dxpy for guidance on installing and upgrading dxpy using pip3.

General purpose dx utilities

dx-app-wizard

usage: dx-app-wizard [-h] [--json-file JSON_FILE] [--language LANGUAGE]
                     [--template {basic,parallelized,scatter-process-gather}]
                     [name]

Create a source code directory for a DNAnexus app. You will be prompted for
various metadata for the app as well as for its input and output
specifications.

positional arguments:
  name                  Name of your app

options:
  -h, --help            show this help message and exit
  --json-file JSON_FILE
                        Use the metadata and IO spec found in the given file
  --language LANGUAGE   Programming language of your app
  --template {basic,parallelized,scatter-process-gather}
                        Execution pattern of your app

dx-fetch-bundled-depends

usage: dx-fetch-bundled-depends [-h]

Downloads the contents of runSpec.bundledDepends of a job running in the
execution environment.

options:
  -h, --help  show this help message and exit

dx-generate-dxapp

dx-jobutil-add-output

usage: dx-jobutil-dxlink [-h] object

Creates a DNAnexus link from an object ID or "<project ID>:<object ID>"
string. The result is of the form {"$dnanexus_link": "<object ID>"} or
{"$dnanexus_link": {"project": <project ID>, "id": <object ID>}}, as
appropriate.

positional arguments:
  object      Data object ID or "<Project ID>:<Data object ID>" to package
              into a DNAnexus link

options:
  -h, --help  show this help message and exit

dx-jobutil-new-job

usage: dx-jobutil-parse-link [-h] [--no-project] dxlink

Parse a dxlink JSON hash into an object ID or project:object-id tuple

positional arguments:
  dxlink        Link to parse

options:
  -h, --help    show this help message and exit
  --no-project  Ignore project ID in an extended dxlink - just print the
                object ID

dx-jobutil-report-error

usage: dx-jobutil-report-error [-h] message [{AppInternalError,AppError}]

Creates job_error.json in your home directory, a JSON file to include the
error type and message for the running job. There are two types of errors you
may report: 1) AppError (the default) for recognized actionable errors, and 2)
AppInternalError for unexpected application errors.

positional arguments:
  message               Error message for the job
  {AppInternalError,AppError}
                        Error type

options:
  -h, --help            show this help message and exit

dx-jobutil-get-identity-token

usage: dx-jobutil-get-identity-token [-h] --aud AUD
                                     [--subject_claims <subject_claims>]

calls job-xxxx/getIdentityToken and retrieves a JWT token based on aud and
subject claims input

options:
  -h, --help            show this help message and exit
  --aud AUD             Audience URI the JWT is intended for
  --subject_claims <subject_claims>
                        Defines the subject claims to be validated by the
                        cloud provider

dx-log-stream

dx-mount-all-inputs

dx-notebook-reconnect

usage: dx-notebook-reconnect [-h] [--port PORT] job_id

Reconnect to a notebook job

positional arguments:
  job_id       Job-id of the notebook job to reconnect to.

options:
  -h, --help   show this help message and exit
  --port PORT  Local port to use for connecting.

dx-print-bash-vars

usage: dx-print-bash-vars [-h]

Parses $HOME/job_input.json and prints the bash variables that would be
available in the execution environment.

options:
  -h, --help  show this help message and exit

Utilities useful in writing bash apps and applets

dx-download-all-inputs

dx-upload-all-outputs

Last updated

Was this helpful?