Access app name within a container

How can I access the name of the current aptible app within my container?

I see from Container Environment that aptible injects an env var called $APTIBLE_APP_HREF, but inside the container I’m not sure how to get an app name from that.