Square brackets (ex,
[--dataset <dataset-name>]
) indicate optional arguments.
In order for other commands to work, you must have a running daemon to connect to, and execute the commands against.
> ./delta-dm daemon
Note: you must have DELTA_API="http://url-to-delta"
in your environment, or it will default to http://localhost:1414
Note Please ensure you have DELTA_AUTH=DEL-XXX-TA
auth key in your environment before running any of these commands below.
> ./delta-dm wallet import --file <path-to-file>
Example:
./delta-dm wallet import --file ~/.lotus/keystore/O5QWY3DFOQWWMMLNNVRDG3DYG5WG46TLO5ZXM2DSNFSHM4DVM5XHK6TPGRWXCMTYNJWWC53WNZTGS
> ./delta-dm wallet import --hex <wallet hex>
Example: Import directly from lotus wallet export (hex)
> ./delta-dm wallet import --hex $(lotus wallet export f1mmb3lx7lnzkwsvhridvpugnuzo4mq2xjmawvnfi)
> ./delta-dm wallet delete <address>
Example:
./delta-dm wallet delete f1mmb3lx7lnzkwsvhridvpugnuzo4mq2xjmawvnfi
> ./delta-dm wallet associate --address <address> --datasets <dataset-name-1>,<dataset-name-2>
Example:
./delta-dm wallet associate --address f1mmb3lx7lnzkwsvhridvpugnuzo4mq2xjmawvnfi --datasets delta-test,delta-test-2
> ./delta-dm wallet list [--dataset <dataset-name>]
> ./delta-dm provider add --id <sp-actor-id> [--name <friendly-name>]
Example:
./delta-dm provider add --id f01000 --name "My Provider"
> ./delta-dm provider modify --id <sp-actor-id> [--name <friendly-name>] [--allowed-datasets <datasets>] [--allow-self-service <on|off>]
Example:
./delta-dm provider modify --id f01000 --name "My Provider" --allowed-datasets delta-test,delta-test-2 --allow-self-service on
> ./delta-dm provider list
> ./delta-dm dataset add --name <dataset-name> [--replication-quota <quota>] [--duration <deal-duration-days>]
Example:
./delta-dm dataset add --name delta-test --replication-quota 6 --duration 540
> ./delta-dm dataset list
> ./delta-dm replication create --provider <sp-actor-id> -num <num-deals-to-make> [--dataset <dataset-id>] [--delay-start <delay-start-days>]
Example:
./delta-dm replication create --provider f01000 --num 3 --dataset 1 --delay-start 3
> ./delta-dm content import --dataset <dataset-id> [--json <path-to-json-file>] [--csv <path-to-csv-file>] [--singularity <path-to-singularity-export-json-file>]
One of --json
, --csv
, or --singularity
must be provided.
For the expected file format, see the api docs
Example:
./delta-dm content import --dataset 1 --json ./content.json
> ./delta-dm content list --dataset <dataset-id>
- Note:
replication-profile
/rp
commands take adataset id
, you can rundataset list
to get the id for a dataset.
> ./delta-dm rp add --spid <sp-id> --dataset <dataset-id> [--unsealed] [--indexed]
Example:
./delta-dm rp add --spid f01000 --dataset 1 --unsealed --indexed
> ./delta-dm rp modify --spid <sp-id> --dataset <dataset-id> [--unsealed] [--indexed]
> ./delta-dm rp delete --spid <sp-id> --dataset <dataset-id>
> ./delta-dm rp list