Skip to content

Commit 30c87ed

Browse files
Update cookbook to use 'contract upload' instead of 'install' (#2277)
### What Use `stellar contract upload` instead of `install` in the cookbook ### Why `install` has been deprecated ### Known limitations n/a
1 parent 6f9bdd5 commit 30c87ed

File tree

4 files changed

+24
-20
lines changed

4 files changed

+24
-20
lines changed

cookbook/deploy-contract.mdx

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
2-
title: Deploy a contract from installed Wasm bytecode
2+
title: Deploy a contract from uploaded Wasm bytecode
33
hide_table_of_contents: true
4-
description: Deploy an instance of a compiled contract that is already installed on the network
4+
description: Deploy an instance of a compiled contract that has already been uploaded on the network
55
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/deploy-contract.mdx
66
---
77

8-
To deploy an instance of a compiled smart contract that has already been installed onto the Stellar network, use the `stellar contract deploy` command:
8+
To deploy an instance of a compiled smart contract that has already been uploaded onto the Stellar network, use the `stellar contract deploy` command:
99

1010
```bash
1111
stellar contract deploy \
@@ -15,4 +15,8 @@ stellar contract deploy \
1515
--alias <alias>
1616
```
1717

18-
:::tip Optionally assign an alias by replacing `<alias>` with your desired alias name for the contract. The alias is a locally stored mapping to the contract address, and can be used in other stellar-cli commands in place of the address. :::
18+
:::tip
19+
20+
Optionally assign an alias by replacing `<alias>` with your desired alias name for the contract. The alias is a locally stored mapping to the contract address, and can be used in other stellar-cli commands in place of the address.
21+
22+
:::

cookbook/install-deploy.mdx

Lines changed: 0 additions & 15 deletions
This file was deleted.

cookbook/upload-deploy.mdx

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
---
2+
title: Upload and deploy a smart contract
3+
hide_table_of_contents: true
4+
description: Combine the upload and deploy commands in the Stellar CLI to accomplish both tasks
5+
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/upload-deploy.mdx
6+
---
7+
8+
You can combine the `upload` and `deploy` commands of the Stellar CLI to accomplish both tasks:
9+
10+
```bash
11+
stellar contract deploy \
12+
--source S... \
13+
--network testnet \
14+
--wasm ../relative/path/to/soroban_contract.wasm
15+
```
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
title: Upload Wasm bytecode
33
hide_table_of_contents: true
44
description: Use the Stellar CLI to upload a compiled smart contract on the ledger
5-
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/install-wasm.mdx
5+
custom_edit_url: https://github.com/stellar/stellar-cli/edit/main/cookbook/upload-wasm.mdx
66
---
77

88
To use the Stellar CLI to upload a compiled smart contract on the ledger, use the `stellar contract upload` command:

0 commit comments

Comments
 (0)