Package: tiledb-cli
TileDB-CLITileDB-CLI is a hierarchical command-line interface to the TileDB Storage Engine.InstallationTileDB-CLI can be installed usingpipwith:pipinstalltiledb-cliFor development mode, in the top level directory run:pipinstall.[dev]This will createtiledb(in/usr/local/bin, or other paths specific tovenvorcondaif you are using those), which you can run.CommandsAll commands begin withtiledband are grouped into the following subgroups:cloud: Perform TileDB Cloud tasks.convert_from: Convert to and from TileDB arrays and other common file formats.consolidate: Consolidate TileDB array fragments, fragment metadata, or and array metadata.dump: Output information about TileDB arrays.fragments: Perform various tasks on TileDB array fragments.vacuum: Vacuum TileDB array fragments, fragment metadata, or and array metadata that have already been consolidated.cloudarrayregister: Register an array to the TileDB cloud service.deregister: Deregister an array to the TileDB cloud service. This does not physically delete the array. It will remain in your bucket. All access to the array and could metadata will be removed.share: Share the TileDB array to the user at a given namespace. At least one of the persmission flags must be supplied.unshare: Revokes access to a TileDB array for the user at a given namespace.dumpactivity: Dump the array activity of an array located at a TileDB uri.arrays: List array properties and their associated values for arrays in a TileDB user account.orgs: List organization properties and their associated values for each organization a TileDB user account is a part of.profile: Output the current logged in namespace's profile information.task: List last task from TileDB cloud.login: Login into TileDB cloud under a given credential using either a token or username. By default, credential is read from the environmental variableTILEDB_REST_TOKEN.retry-task  Retry running the task with the given id.convert_fromcsv: Convert a csv_file into a TileDB array.consolidatearray-metadata: Consolidate the array metadata in an array.fragment-metadata: Consolidate the fragments in an array.fragments: Consolidate the fragments in an array.dumparray: Output the data of a TileDB array.config: Output TileDB's default configuration parameters and values.fragments: Output the fragment information of a TileDB array.mbrs: Output the minimum bounding rectangle for a sparse TileDB array.metadata: Output the metadata of a TileDB array.nonempty-domain`: Output the non-empty domain of a TileDB array.schema: Output the schema of a TileDB array.versions: Output the version information for the embedded library and Python package.fragmentscopy: Copy a range of fragments from an already existing array to another array.delete: Delete a range of fragments from an array.vacuumarray-metadata: Vacuum the already consolidated array metadata in an array.fragment-metadata: Vacuum the already consolidated fragments in an array.fragments: Vacuum the already consolidated fragments in an array.Basic UsageCreate an array from a CSV file.> cat example.csv
a,b
1,dog
2,cat
8,bird
20,elephant
> tiledb convert-from csv example.csv example.tdbOutput the array's schema.> tiledb dump schema example.tdb
ArraySchema(
  domain=Domain(*[
    Dim(name='__tiledb_rows', domain=(0, 3), tile='3', dtype='uint64'),
  ]),
  attrs=[
    Attr(name='a', dtype='int64', var=False, nullable=False),
    Attr(name='b', dtype='<U0', var=True, nullable=False),
  ],
  cell_order='row-major',
  tile_order='row-major',
  capacity=10000,
  sparse=False,
)Output data from the array.> tiledb dump array example.tdb 0:4
OrderedDict([('__tiledb_rows', array([0, 1, 2, 3], dtype=uint64)),
             ('a', array([ 1,  2,  8, 20])),
             ('b', array(['dog', 'cat', 'bird', 'elephant'], dtype=object))])