Running ipa console SCRIPTFILE should execute SCRIPTFILE with the api object in globals. This would allow using a #!/usr/bin/ipa console shebang, and in general it'd make writing simple scripts easier.
ipa console SCRIPTFILE
api
#!/usr/bin/ipa console
master:
Metadata Update from @pviktori: - Issue assigned to pviktori - Issue set to the milestone: FreeIPA 4.0 Backlog
Login to comment on this ticket.