Heroku database migration fail

While migrating database from Heroku, following this blog : Migrate from Heroku · Fly Docs

The transfer is not working:

fly ssh console -a keep-in-touch-branch-db
Connecting to fdaa:0:cecd:a7b:5b66:e660:9e38:2... complete
root@17814d9c53d089:/# createdb --maintenance-db $DATABASE_URL keep-in-touch-branch
root@17814d9c53d089:/# pg_dump -Fc --no-acl --no-owner -d $HEROKU_DATABASE_URL | pg_restore --verbose --clean --no-acl --no-owner -d $DATABASE_URL/keep-in-touch-branch
/usr/lib/postgresql/14/bin/pg_dump: option requires an argument -- 'd'
Try "pg_dump --help" for more information.
pg_restore: error: input file is too short (read 0, expected 5)

Any help?