Mokhtar Naamani 2f05da0c6d types v0.17.2 | 2 years ago | |
---|---|---|
.. | ||
bin | 3 years ago | |
src | 2 years ago | |
.eslintignore | 3 years ago | |
.gitignore | 3 years ago | |
.prettierignore | 2 years ago | |
README.md | 2 years ago | |
package.json | 2 years ago | |
tsconfig.json | 3 years ago |
Joystream migrations scripts
$ npm install -g migration-scripts
$ migration-scripts COMMAND
running command...
$ migration-scripts (-v|--version|version)
migration-scripts/0.1.0 linux-x64 node-v14.16.1
$ migration-scripts --help [COMMAND]
USAGE
$ migration-scripts COMMAND
...
migration-scripts help [COMMAND]
display help for migration-scripts
USAGE
$ migration-scripts help [COMMAND]
ARGUMENTS
COMMAND command to show help for
OPTIONS
--all see all commands in CLI
See code: @oclif/plugin-help
migration-scripts sumer-giza:migrateContent
USAGE
$ migration-scripts sumer-giza:migrateContent
OPTIONS
-c, --channelIds=channelIds (required) Channel ids to migrate
--channelBatchSize=channelBatchSize [default: 20] Channel batch size
--dataDir=dataDir [default: /tmp/joystream/sumer-giza-migration] Directory
for storing data objects to upload
--forceChannelOwnerMemberId=forceChannelOwnerMemberId Can be used to force a specific channel owner for all
channels, allowing to test the script in dev environment
--migrationStatePath=migrationStatePath [default:
/home/leszek/projects/joystream/joystream-ws-2/utils/migr
ation-scripts/results/sumer-giza] Path to migration
results directory
--preferredDownloadSpEndpoints=preferredDownloadSpEndpoints [default: https://storage-1.joystream.org/storage]
Preferred storage node endpoints when downloading data
objects
--queryNodeUri=queryNodeUri [default: https://hydra.joystream.org/graphql] Query node
uri
--sudoUri=sudoUri [default: //Alice] Sudo key Substrate uri
--uploadSpBucketId=uploadSpBucketId [default: 0] Giza storage bucket id
--uploadSpEndpoint=uploadSpEndpoint [default: http://localhost:3333] Giza storage node
endpoint to use for uploading
--videoBatchSize=videoBatchSize [default: 20] Video batch size
--wsProviderEndpointUri=wsProviderEndpointUri [default: ws://localhost:9944] WS provider endpoint uri
(Giza)
See code: src/commands/sumer-giza/migrateContent.ts
migration-scripts sumer-giza:retryFailedUploads
USAGE
$ migration-scripts sumer-giza:retryFailedUploads
OPTIONS
-f, --failedUploadsPath=failedUploadsPath (required) Path to failed uploads file
--dataDir=dataDir [default: /tmp/joystream/sumer-giza-migration] Directory where data
objects to upload are stored
--uploadSpBucketId=uploadSpBucketId [default: 0] Giza storage bucket id
--uploadSpEndpoint=uploadSpEndpoint [default: http://localhost:3333] Giza storage node endpoint to use for
uploading
--wsProviderEndpointUri=wsProviderEndpointUri [default: ws://localhost:9944] WS provider endpoint uri (Giza)