Skip to content

Commit

Permalink
Merge pull request #68 from onflow/supun/emulator-migration
Browse files Browse the repository at this point in the history
Add CLI installation instructions to the emulator migration guide
  • Loading branch information
turbolent committed Mar 14, 2024
2 parents bf3a09b + 08437c7 commit ec6e7b0
Showing 1 changed file with 24 additions and 1 deletion.
25 changes: 24 additions & 1 deletion docs/cadence_migration_guide/emulator-state-migration-guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,30 @@ Such contracts are required for the migration.

### Migrating the state

Download and install the latest CLI, that runs Cadence 1.0.
#### Download and install CLI

Download and install the latest CLI, that runs Cadence 1.0, by running the below command.

- Linux/macOS
```shell
sudo sh -ci "$(curl -fsSL https://raw.githubusercontent.com/onflow/flow-cli/feature/stable-cadence/install.sh)"
```

- Windows (in PowerShell):
```shell
iex "& { $(irm 'https://raw.githubusercontent.com/onflow/flow-cli/feature/stable-cadence/install.ps1') }"
```

The Cadence 1.0 CLI will now be available on your system as `flow-c1`.
You can interact with this CLI using this command, i.e.

```shell
flow-c1 help
```

_Note: Any existing previous Flow CLI installation will still remain available via the `flow` command._

#### Run migration

- Run `flow-c1 migrate` against the previously created state.

Expand Down

0 comments on commit ec6e7b0

Please sign in to comment.