{"_id":"@0xobelisk/initia-cli","_rev":"2-7c21ac78953f8818dbbb43a4c95ff367","name":"@0xobelisk/initia-cli","dist-tags":{"latest":"0.0.3"},"versions":{"0.0.1":{"name":"@0xobelisk/initia-cli","version":"0.0.1","keywords":["initia","obelisk labs","move","blockchain"],"author":{"name":"team@obelisk.build"},"license":"Apache-2.0","_id":"@0xobelisk/initia-cli@0.0.1","maintainers":[{"name":"vladilenaksana","email":"vladilenaksana@gmail.com"},{"name":"web3henry","email":"zombiesliu@gmail.com"}],"homepage":"https://github.com/0xobelisk/dubhe/tree/main/packages/initia-cli#readme","bugs":{"url":"https://github.com/0xobelisk/dubhe/issues"},"bin":{"dubhe":"dist/dubhe.js"},"dist":{"shasum":"430d25f691c7da7e04e41db6ca86dada6dce4140","tarball":"https://registry.npmjs.org/@0xobelisk/initia-cli/-/initia-cli-0.0.1.tgz","fileCount":26,"integrity":"sha512-KqTpumeDgN4fAdw4X0oFGBFkEU/yuZM4n3kLWS0XiV1gYtc502lYSFwUW9sxkgX0F1riSh9F3GLIOYEFrzVteg==","signatures":[{"sig":"MEUCIER7VYm2qdiAIBmgAAUsWdhidManl1y5n7ieE3HrC5hFAiEAkppNoMwPW1iS2IRmYJh7xQ10oyKe1nkQF8CFK5opuLY=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":105571},"type":"module","_from":"file:0xobelisk-initia-cli-0.0.1.tgz","types":"src/index.ts","engines":{"node":">=18"},"exports":{".":"./dist/index.js"},"scripts":{"dev":"tsup --watch","lint":"eslint . --ext .ts","build":"pnpm run build:js","clean":"pnpm run clean:js","build:js":"tsup && chmod +x ./dist/dubhe.js","clean:js":"rimraf dist"},"_npmUser":{"name":"vladilenaksana","email":"vladilenaksana@gmail.com"},"_resolved":"/private/var/folders/pm/td9f8vln6ld62q2lhqqg_98r0000gn/T/42c556677ca0965e32a15927469acad0/0xobelisk-initia-cli-0.0.1.tgz","_integrity":"sha512-KqTpumeDgN4fAdw4X0oFGBFkEU/yuZM4n3kLWS0XiV1gYtc502lYSFwUW9sxkgX0F1riSh9F3GLIOYEFrzVteg==","repository":{"url":"git+https://github.com/0xobelisk/dubhe.git","type":"git"},"_npmVersion":"8.19.2","description":"Tookit for interacting with initia framework","directories":{},"_nodeVersion":"18.12.1","dependencies":{"ejs":"^3.1.8","zod":"^3.22.3","glob":"^8.0.3","path":"^0.12.7","chalk":"^5.0.1","execa":"^7.0.0","yargs":"^17.7.1","dotenv":"^16.0.3","prettier":"^2.8.4","typescript":"5.1.6","child_process":"^1.0.2","@initia/builder.js":"^0.2.6","prettier-plugin-rust":"^0.1.9","zod-validation-error":"^1.3.0","@0xobelisk/sui-common":"^0.5.21","@roochnetwork/rooch-sdk":"^0.2.8","@0xobelisk/initia-client":"0.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^3.12.6","tsup":"^6.7.0","vitest":"0.31.4","ts-node":"^10.9.1","@types/ejs":"^3.1.1","@types/glob":"^7.2.0","@types/node":"^18.15.11","@types/yargs":"^17.0.10"},"_npmOperationalInternal":{"tmp":"tmp/initia-cli_0.0.1_1733566042784_0.2470690725075122","host":"s3://npm-registry-packages"}},"0.0.2":{"name":"@0xobelisk/initia-cli","version":"0.0.2","keywords":["initia","obelisk labs","move","blockchain"],"author":{"name":"team@obelisk.build"},"license":"Apache-2.0","_id":"@0xobelisk/initia-cli@0.0.2","maintainers":[{"name":"vladilenaksana","email":"vladilenaksana@gmail.com"},{"name":"web3henry","email":"zombiesliu@gmail.com"}],"homepage":"https://github.com/0xobelisk/dubhe/tree/main/packages/initia-cli#readme","bugs":{"url":"https://github.com/0xobelisk/dubhe/issues"},"bin":{"dubhe":"dist/dubhe.js"},"dist":{"shasum":"0640a4116157c6481e6b107942110088168dab2a","tarball":"https://registry.npmjs.org/@0xobelisk/initia-cli/-/initia-cli-0.0.2.tgz","fileCount":26,"integrity":"sha512-flG6gWfCDNvVxuRcBxz9nqVSR8850Fp5Q7ER2w9pyk57KhLkeFNaVk+hC6i6mwEmeowygmu7loNGdrbmLe1keQ==","signatures":[{"sig":"MEYCIQCkx4eyfRk4Oj8+oPYrz5Wo1Wqa3EwsmSoZw4qs3cu8KwIhAPcq1VaGwXU5AXM8Cndyiz1jqpVqSr9yzdlF5uzUSSTC","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":105433},"type":"module","_from":"file:0xobelisk-initia-cli-0.0.2.tgz","types":"src/index.ts","engines":{"node":">=18"},"exports":{".":"./dist/index.js"},"scripts":{"dev":"tsup --watch","lint":"eslint . --ext .ts","build":"pnpm run build:js","clean":"pnpm run clean:js","build:js":"tsup && chmod +x ./dist/dubhe.js","clean:js":"rimraf dist"},"_npmUser":{"name":"vladilenaksana","email":"vladilenaksana@gmail.com"},"_resolved":"/private/var/folders/pm/td9f8vln6ld62q2lhqqg_98r0000gn/T/078a8ee02f84d8a2ec6b7d31b9bef4a7/0xobelisk-initia-cli-0.0.2.tgz","_integrity":"sha512-flG6gWfCDNvVxuRcBxz9nqVSR8850Fp5Q7ER2w9pyk57KhLkeFNaVk+hC6i6mwEmeowygmu7loNGdrbmLe1keQ==","repository":{"url":"git+https://github.com/0xobelisk/dubhe.git","type":"git"},"_npmVersion":"8.19.2","description":"Tookit for interacting with initia framework","directories":{},"_nodeVersion":"18.12.1","dependencies":{"ejs":"^3.1.8","zod":"^3.22.3","glob":"^8.0.3","path":"^0.12.7","chalk":"^5.0.1","execa":"^7.0.0","yargs":"^17.7.1","dotenv":"^16.0.3","prettier":"^2.8.4","typescript":"5.1.6","child_process":"^1.0.2","@initia/builder.js":"^0.2.6","prettier-plugin-rust":"^0.1.9","zod-validation-error":"^1.3.0","@0xobelisk/sui-common":"^0.5.21","@roochnetwork/rooch-sdk":"^0.2.8","@0xobelisk/initia-client":"0.0.1"},"publishConfig":{"access":"public"},"_hasShrinkwrap":false,"devDependencies":{"tsx":"^3.12.6","tsup":"^6.7.0","vitest":"0.31.4","ts-node":"^10.9.1","@types/ejs":"^3.1.1","@types/glob":"^7.2.0","@types/node":"^18.15.11","@types/yargs":"^17.0.10"},"_npmOperationalInternal":{"tmp":"tmp/initia-cli_0.0.2_1733568389629_0.18763448203549205","host":"s3://npm-registry-packages"}},"0.0.3":{"name":"@0xobelisk/initia-cli","version":"0.0.3","description":"Tookit for interacting with initia framework","keywords":["initia","obelisk labs","move","blockchain"],"type":"module","author":{"name":"team@obelisk.build"},"homepage":"https://github.com/0xobelisk/dubhe/tree/main/packages/initia-cli#readme","bugs":{"url":"https://github.com/0xobelisk/dubhe/issues"},"repository":{"type":"git","url":"git+https://github.com/0xobelisk/dubhe.git"},"license":"Apache-2.0","publishConfig":{"access":"public"},"engines":{"node":">=18"},"exports":{".":"./dist/index.js"},"types":"src/index.ts","bin":{"dubhe":"dist/dubhe.js"},"dependencies":{"@roochnetwork/rooch-sdk":"^0.2.8","@initia/builder.js":"^0.2.6","@0xobelisk/sui-common":"^0.5.21","chalk":"^5.0.1","child_process":"^1.0.2","dotenv":"^16.0.3","ejs":"^3.1.8","execa":"^7.0.0","glob":"^8.0.3","path":"^0.12.7","prettier":"^2.8.4","prettier-plugin-rust":"^0.1.9","typescript":"5.1.6","yargs":"^17.7.1","zod":"^3.22.3","zod-validation-error":"^1.3.0","@0xobelisk/initia-client":"0.0.3"},"devDependencies":{"@types/ejs":"^3.1.1","@types/glob":"^7.2.0","@types/node":"^18.15.11","@types/yargs":"^17.0.10","ts-node":"^10.9.1","tsup":"^6.7.0","tsx":"^3.12.6","vitest":"0.31.4"},"scripts":{"build":"pnpm run build:js","build:js":"tsup && chmod +x ./dist/dubhe.js","clean":"pnpm run clean:js","clean:js":"rimraf dist","dev":"tsup --watch","lint":"eslint . --ext .ts"},"_id":"@0xobelisk/initia-cli@0.0.3","_integrity":"sha512-iKCUPdB3rHiwt66ecYmYgKfaYybTRx5AR9OE49Kh0DgnRDQ+zGTBJfRGXP1FhU1VdrF6HT2Lfy66YLBTH7kXmw==","_resolved":"/private/var/folders/pm/td9f8vln6ld62q2lhqqg_98r0000gn/T/7df0115966dd6a538f157d3c33b1cd7a/0xobelisk-initia-cli-0.0.3.tgz","_from":"file:0xobelisk-initia-cli-0.0.3.tgz","_nodeVersion":"18.12.1","_npmVersion":"8.19.2","dist":{"integrity":"sha512-iKCUPdB3rHiwt66ecYmYgKfaYybTRx5AR9OE49Kh0DgnRDQ+zGTBJfRGXP1FhU1VdrF6HT2Lfy66YLBTH7kXmw==","shasum":"70cbbdfc561e887c1f6a6b94b4fd4e65fa365b87","tarball":"https://registry.npmjs.org/@0xobelisk/initia-cli/-/initia-cli-0.0.3.tgz","fileCount":26,"unpackedSize":108433,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDUpjtN5qw1rwcSVPLhy/Zg00OesbHOvIAcxAJ6C2/1dAIhAIlAjjcD+z2DoaaCLAO7bAbMzQdSSXRb2JMIutmw7BdQ"}]},"_npmUser":{"name":"vladilenaksana","email":"vladilenaksana@gmail.com"},"directories":{},"maintainers":[{"name":"vladilenaksana","email":"vladilenaksana@gmail.com"},{"name":"web3henry","email":"zombiesliu@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/initia-cli_0.0.3_1733590306540_0.7635076208603973"},"_hasShrinkwrap":false}},"time":{"created":"2024-12-07T10:07:22.652Z","modified":"2024-12-07T16:51:46.947Z","0.0.1":"2024-12-07T10:07:22.973Z","0.0.2":"2024-12-07T10:46:29.803Z","0.0.3":"2024-12-07T16:51:46.712Z"},"bugs":{"url":"https://github.com/0xobelisk/dubhe/issues"},"author":{"name":"team@obelisk.build"},"license":"Apache-2.0","homepage":"https://github.com/0xobelisk/dubhe/tree/main/packages/initia-cli#readme","keywords":["initia","obelisk labs","move","blockchain"],"repository":{"type":"git","url":"git+https://github.com/0xobelisk/dubhe.git"},"description":"Tookit for interacting with initia framework","maintainers":[{"name":"vladilenaksana","email":"vladilenaksana@gmail.com"},{"name":"web3henry","email":"zombiesliu@gmail.com"}],"readme":"## The Dubhe CLI\n\nThe Dubhe CLI is used for building and developing a Dubhe project.\n\nIt comes with\n\n\n1. `schemagen`: Autogenerate Dubhe schemas based on the store schemas config file\n2. `publish`: Deploy your own project on the specified sui network.\n3. `upgrade`: Upgrade your own project on the specified sui network.\n4. `localnode`: Start a local Sui node for development\n5. `faucet`: An interface to the Devnet/Localnet faucet. It makes it easy to fund addresses on the Devnet/localnet\n\n## Installation\n\nWe don’t recommend installing the CLI globally.\n\nInstead, you should add the CLI as a dev dependency to your project (done automatically if you start from a starter kit using `pnpm create dubhe`), and use it with `pnpm build` inside your project directory.\n\n## Using the CLI\n\nSome commands expect a Dubhe config in the same folder where the CLI is being executed. This includes `schemagen` and `publish`.\n\n`faucet`, and `localnode` can be executed anywhere.\n\n## Commands\n\n### `schemagen`\n\nGenerates Store libraries from a `dubhe.config.ts` file. See the [Store Config and `schemagen` documentation](../schemas/config) in the Store section for more details.\n\n```bash\n# in a folder with a dubhe.config.ts\ndubhe schemagen --config-path dubhe.config.ts\n```\n\n### `publish`\n\nDeploy a Dubhe contract project with the dubhe framework.\n\nThis tool will use the `dubhe.config.ts` to detect all systems, schemas and projectName in the project and will deploy them to the chain specified.\n\nWhen using the deployer, you must set the private key of the deployer using the `PRIVATE_KEY` environment variable. You can make this easier by using [`dotenv`](https://www.npmjs.com/package/dotenv) before running `dubhe publish` in your deployment script.\n\nTo set up the target network for deploying the contract (mainnet/testnet/devnet/localnet), before deploying the contract, please make sure that you have some tokens in your account, which will be used for some fees when deploying the contract. (If you choose devnet/localnet, you can get some test tokens via `dubhe faucet`), if you need to deploy the contract on localnet, please make sure you have started localnode.\n\n```bash\n# to deploy sui locally\ndubhe publish --network localnet\n# to deploy to sui devnet\ndubhe publish --network devnet\n# to deploy to sui testnet\ndubhe publish --network testnet\n# to deploy to sui mainnet\ndubhe publish --network mainnet\n```\n\n\n### `upgrade`\n\nUpgrade Dubhe contract project.\n\nWhen you add a new schema or modify the system code, you need to upgrade the contract through the `upgrade` method. ([Contract upgrade specification](../migrating-from-others))\n\n```bash\ndubhe upgrade --network <network:mainnet/testnet/devnet/localnet>\n```\n\n### `localnode`\n\nThe localnode uses the official `sui-test-validator` binary provided by sui to start the localnode.\n\nThe local rpc is `http://127.0.0.1:9000`\n\n```bash\ndubhe localnode\n```\n\n### `faucet`\n\nConnects to a Dubhe faucet service to fund an address.\n\n```bash\ndubhe faucet --network <network:devnet/localnet>\ndubhe faucet --network <network:devnet/localnet> --recipient <address>\n```\n\nThe default faucet service automatically gives test tokens to accounts in [`dotenv`](https://www.npmjs.com/package/dotenv).\n\nTo fund an address on the devnet/localnet, run `dubhe faucet --recipient <address>`\n","readmeFilename":"README.md"}