LogoLogo
  • Overview
  • Setup and Configuration
  • Other Data Versioning Systems
  • Examples
    • Tutorial
      • Creating Bundles with the Python API
      • Push/Pull using S3
      • Simple Pipeline
      • Run the Pipeline
      • Dockerize a Pipeline
      • Run the Pipeline Container (locally)
      • Run the Pipeline Container (AWS)
    • Examples
      • MNIST and TensorFlow
      • Spacy Task
  • Basic Concepts
    • Bundles
      • Naming
      • Bundle Data Types
      • Tags and Parameters
      • Lineage (or Bundle Metadata)
    • Data Contexts
  • Reference
    • CLI Reference
      • dsdt add
      • dsdt apply
      • dsdt cat
      • dsdt context
      • dsdt commit
      • dsdt dockerize
      • dsdt init
      • dsdt lineage
      • dsdt ls
      • dsdt pull
      • dsdt push
      • dsdt remote
      • dsdt rm
      • dsdt rmr
      • dsdt switch
    • Python API
  • Details
  • Building Pipelines
  • Running Pipelines on AWS
  • Admin
    • Contact / Slack
Powered by GitBook
On this page
  • Description
  • Usage
  • Options
  • Examples

Was this helpful?

  1. Reference
  2. CLI Reference

dsdt add

Easy bundle making from the CLI (or API)

Description

Create a bundle from a file or directory of files (recurses by default). Presents bundle as either a single file or a list of files. See api.add()

Usage

usage: dsdt add [-h] [-t TAG] bundle path_name

Options

positional arguments:
  bundle             The destination bundle in the current context
  path_name          File or directory of files to add to the bundle

optional arguments:
  -h, --help         show this help message and exit
  -t TAG, --tag TAG  Set one or more tags: 'dsdt add -t authoritative:True -t
                     version:0.7.1'

Examples

Create a bundle from a single file README.md

$dsdt add my.bundle README.md
$dsdt ls -v
NAME                	PROC_NAME           	OWNER   	DATE              	COMMITTED	UUID                                    	TAGS
my.bundle           	BundleWrapperTask_my_bundle____e1908ea6e8	kyocum  	01-12-20 21:30:45 	False   	386f13cf-5b51-4237-b649-8549eff30004
$ dsdt cat my.bundle   
/Users/kyocum/.disdat/context/examples/objects/386f13cf-5b51-4237-b649-8549eff30004/README.md

Create a bundle from a directory

$dsdt add configs $DISDAT_HOME/examples/config
$dsdt cat configs
['/Users/kyocum/.disdat/context/examples/objects/b279ac44-406b-4b82-95bd-7cb74f8fd7ea/ubuntu-14.04/deb.txt'
 '/Users/kyocum/.disdat/context/examples/objects/b279ac44-406b-4b82-95bd-7cb74f8fd7ea/ubuntu-14.04/tesseract.deb.txt']
PreviousCLI ReferenceNextdsdt apply

Last updated 5 years ago

Was this helpful?