web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Answered

Create a package with a script

(5) ShareShare
ReportReport
Posted on by 34

Hello everyone,

I'm looking to automate part of my Business Central development workflow and I'm wondering if it's possible to generate the extension package (.app file) that needs to be uploaded to Business Central through a script or command line tool, rather than manually through VS Code.

Specifically, I'd like to know:

  • Is there a command-line tool or PowerShell script that can compile AL code and generate the .app package?
  • If so, what are the requirements and how would the basic syntax look?
  • Are there any limitations compared to building through VS Code?

My goal is to integrate this into a CI/CD pipeline for automated deployments.

Any guidance or documentation references would be greatly appreciated!

Thanks in advance!!

I have the same question (2)
  • Vahid Ghafarpour Profile Picture
    12,216 Super User 2026 Season 1 on at
  • Suggested answer
    OussamaSabbouh Profile Picture
    10,875 Super User 2026 Season 1 on at
    Hello,
     
    Yes. Use ALTool (alc.exe) to build a .app from the command line.
    That’s what VS Code uses under the hood and it’s CI/CD-ready.
     
    Example
     
    alc.exe compile --project app.json --packagecachepath .alpackages --out .output
     
    Docs:
    https://learn.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-al-tool
     
    Regards,
    Oussama Sabbouh
  • Gerardo Rentería García Profile Picture
    25,545 Most Valuable Professional on at

    Hi, good day
    I hope this can help you, and give you some hints.

    Meet the compiler's little friend ALTOOL.EXE for AL and Business Central

    Best Regards
    Gerardo

  • Verified answer
    Khushbu Rajvi. Profile Picture
    21,573 Super User 2026 Season 1 on at
  • Verified answer
    YUN ZHU Profile Picture
    97,970 Super User 2026 Season 1 on at

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,155 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,043 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 955 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans