Forum Discussion
Question using Fabric-CLI. How to Switch to interactive mode?
- 1 year ago
Hi alfBI,
Thanks for the response, the version you are currently using is 1.0.0 which still does not yet include the interactive shell feature.
The interactive shell (fab:/ >) was officially introduced in version 1.0.6 and above.
Clear pip cache and upgrade to Fabric CLI version 1.0.6 or newer specifically from the new fabri cli package on PyPI that includes the interactive shell.
Uninstall the existing version and install the latest version explicitly:
pip install fabric-cli --upgrade --force-reinstall
Then after Verify the version and run the shell
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
No, i don't mean to access the python shell. I refer to the fab shell that is mentioned on the documentation
Alfons
- v-achippa1 year ago
Community Support
Hi alfBI,
The interactive shell does not automatically open just by setting the mode to 'interactive, and logging in. The command only sets the CLI behavior to support interactive command once you are inside the shell, but it does not open the interactive shell itself.
We must explicitly start the interactive shell by running “fab”. This will drop you into the Fabric CLI shell with the prompt: fab:/ >. From there you can use interactive commands like ls, cd, help, etc..
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa
- alfBI1 year ago
Responsive Resident
Hi, Yes, this would be the expected behaviour, but after seting the interactive mode and logging the shell does not open after typing "fab". See below screenshoot. Instead of shell, list of fab options are displayed
- v-achippa1 year ago
Community Support
Hi alfBI,
Based on the screenshot, it looks like the Fabric CLI is showing the help menu instead of entering the interactive shell. This usually happens when the CLI version is outdated or missing the interactive shell feature.
- First check your current Fabric CLI version, if it is below 1.0.6 please upgrade it.
- If you are already using the latest version but still facing the issue, try reinstalling it and then try running the commands. This should open the interactive shell with the fab prompt.
If this post helps, then please consider Accepting as solution to help the other members find it more quickly, don't forget to give a "Kudos" – I’d truly appreciate it!
Thanks and regards,
Anjan Kumar Chippa